From f43150e955f28646660d4ab77a4b7f952d538140 Mon Sep 17 00:00:00 2001 From: Robert Hallberg Date: Thu, 18 Jan 2018 23:11:05 -0500 Subject: [PATCH] *Set VEL_UNDERFLOW in external_gwave Set the underflow velocity to 1e-50 in the external_gwave test case. This changes answers minorly, but with this change the answers reproduce with changes to H_RESCALE_POWER. --- ocean_only/external_gwave/MOM_input | 5 +++++ ocean_only/external_gwave/MOM_parameter_doc.all | 2 +- ocean_only/external_gwave/MOM_parameter_doc.short | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ocean_only/external_gwave/MOM_input b/ocean_only/external_gwave/MOM_input index ce2d9b7eea..7a217d398b 100644 --- a/ocean_only/external_gwave/MOM_input +++ b/ocean_only/external_gwave/MOM_input @@ -279,6 +279,11 @@ HBBL = 0.001 ! [m] MAXVEL = 10.0 ! [m s-1] default = 3.0E+08 ! The maximum velocity allowed before the velocity ! components are truncated. +VEL_UNDERFLOW = 1.0E-50 ! [m s-1] default = 0.0 + ! A negligibly small velocity magnitude below which velocity + ! components are set to 0. A reasonable value might be + ! 1e-30 m/s, which is less than an Angstrom divided by + ! the age of the universe. ! === module MOM_PointAccel === diff --git a/ocean_only/external_gwave/MOM_parameter_doc.all b/ocean_only/external_gwave/MOM_parameter_doc.all index a4f6440b86..9af594a137 100644 --- a/ocean_only/external_gwave/MOM_parameter_doc.all +++ b/ocean_only/external_gwave/MOM_parameter_doc.all @@ -848,7 +848,7 @@ CFL_TRUNCATE_RAMP_TIME = 0.0 ! [s] default = 0.0 CFL_TRUNCATE_START = 0.0 ! [nondim] default = 0.0 ! The start value of the truncation CFL number used when ! ramping up CFL_TRUNC. -VEL_UNDERFLOW = 0.0 ! [m s-1] default = 0.0 +VEL_UNDERFLOW = 1.0E-50 ! [m s-1] default = 0.0 ! A negligibly small velocity magnitude below which velocity ! components are set to 0. A reasonable value might be ! 1e-30 m/s, which is less than an Angstrom divided by diff --git a/ocean_only/external_gwave/MOM_parameter_doc.short b/ocean_only/external_gwave/MOM_parameter_doc.short index 11163a7bf2..872f743a72 100644 --- a/ocean_only/external_gwave/MOM_parameter_doc.short +++ b/ocean_only/external_gwave/MOM_parameter_doc.short @@ -308,6 +308,11 @@ HMIX_FIXED = 1.0E-10 ! [m] MAXVEL = 10.0 ! [m s-1] default = 3.0E+08 ! The maximum velocity allowed before the velocity ! components are truncated. +VEL_UNDERFLOW = 1.0E-50 ! [m s-1] default = 0.0 + ! A negligibly small velocity magnitude below which velocity + ! components are set to 0. A reasonable value might be + ! 1e-30 m/s, which is less than an Angstrom divided by + ! the age of the universe. ! === module MOM_PointAccel ===