Wave Gauge sampling Rate

Hi Giuseppe,

Could you please tell me how can I change the sampling rate of the wave gauges? My understanding is that the “add_gage” only gets 3 values (x,y, and z location).

Regards,
Alireza

Hello @AlirezaZarei,

wave gage output is written by the “common writer”, that by default writes when any other writer writes. You should be able to override this explicitly with addWriter(COMMONWRITER, sampling_rate). Note that you can also override a specific writer rate from the command-line, with --add-writer, so something like: ./YourSimulation --add-writer common:0.01 would run the simulation with the common writer firing every 0.01 simulated seconds, without a need to change the source file.