We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent effe63c commit 1035404Copy full SHA for 1035404
amr-wind/ocean_waves/relaxation_zones/waves2amr_ops.H
@@ -354,7 +354,8 @@ struct ReadInputsOp<W2AWaves>
354
wdata.n1_sp = wdata.r_rmodes.get_second_spatial_dimension();
355
// Get resolution (slightly different for NWT)
356
wdata.dx0 = wdata.r_rmodes.get_xlen() / (wdata.n0_sp - 1);
357
- wdata.dx1 = wdata.r_rmodes.get_ylen() / (wdata.n1_sp - 1);
+ wdata.dx1 =
358
+ wdata.r_rmodes.get_ylen() / amrex::max(wdata.n1_sp - 1, 1);
359
// Get depth
360
depth = wdata.r_rmodes.get_depth();
361
// Get dimensional length
0 commit comments