Skip to content

Commit

Permalink
better assertion of total_depth taking eps into account
Browse files Browse the repository at this point in the history
  • Loading branch information
navidcy committed Feb 18, 2024
1 parent 167c888 commit 4a9eb28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regional_mom6/regional_mom6.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def hyperbolictan_thickness_profile(

assert np.isclose(total_depth, nlayers * (bottom_layer_thickness + top_layer_thickness) / 2, atol=atol)

if total_depth == target_depth:
if np.isclose(total_depth, target_depth, atol=atol):
return layer_thicknesses
else:
# rescaled top_layer_thickness so that total_depth == target_depth
Expand Down

0 comments on commit 4a9eb28

Please sign in to comment.