@@ -48,11 +48,6 @@ struct UnitWrap::UnitTest<D>::TestShocLength : public UnitWrap::UnitTest<D>::Bas
4848 static constexpr Real thv[nlev] = {315 , 310 , 305 , 300 , 295 };
4949 // Turbulent kinetc energy [m2/s2]
5050 static constexpr Real tke[nlev] = {0.1 , 0.15 , 0.2 , 0.25 , 0.3 };
51- // Eddy viscosity [m2/s]
52- static constexpr Real tk[nlev] = {0.1 , 10.0 , 12.0 , 15.0 , 20.0 };
53-
54- // Default SHOC formulation, not 1.5 TKE closure assumptions
55- const bool shoc_1p5tke = false ;
5651
5752 // compute geometric grid mesh
5853 const auto grid_mesh = sqrt (host_dx*host_dy);
@@ -67,7 +62,7 @@ struct UnitWrap::UnitTest<D>::TestShocLength : public UnitWrap::UnitTest<D>::Bas
6762 }
6863
6964 // Initialize data structure for bridging to F90
70- ShocLengthData SDS (shcol, nlev, nlevi, shoc_1p5tke );
65+ ShocLengthData SDS (shcol, nlev, nlevi);
7166
7267 // Load up input data
7368 for (Int s = 0 ; s < shcol; ++s) {
@@ -83,8 +78,6 @@ struct UnitWrap::UnitTest<D>::TestShocLength : public UnitWrap::UnitTest<D>::Bas
8378 SDS.zt_grid [offset] = zt_grid[n];
8479 SDS.thv [offset] = thv[n];
8580 SDS.dz_zt [offset] = dz_zt[n];
86- // eddy viscosity below not relevant for default SHOC
87- SDS.tk [offset] = 0 ;
8881 }
8982
9083 // Fill in test data on zi_grid
@@ -154,50 +147,6 @@ struct UnitWrap::UnitTest<D>::TestShocLength : public UnitWrap::UnitTest<D>::Bas
154147 }
155148 }
156149
157- // Repeat this test but for 1.5 TKE closure option activated
158-
159- // Activate 1.5 TKE closure assumptions
160- SDS.shoc_1p5tke = true ;
161-
162- // We will use the same input data as above but with the SGS buoyancy
163- // flux set to zero, as will be the case with the 1.5 TKE option.
164- // Additionally, we will fill the value of the brunt vaisala frequency.
165- for (Int s = 0 ; s < shcol; ++s) {
166- for (Int n = 0 ; n < nlev; ++n) {
167- const auto offset = n + s * nlev;
168-
169- SDS.tk [offset] = tk[n];
170- }
171- }
172-
173- // Call the C++ implementation
174- shoc_length (SDS);
175-
176- // Verify output
177- for (Int s = 0 ; s < shcol; ++s) {
178- for (Int n = 0 ; n < nlev; ++n) {
179- const auto offset = n + s * nlev;
180- // Require mixing length is greater than zero and is
181- // less than geometric grid mesh length + 1 m
182- REQUIRE (SDS.shoc_mix [offset] >= minlen);
183- REQUIRE (SDS.shoc_mix [offset] <= maxlen);
184- REQUIRE (SDS.shoc_mix [offset] < 1.0 +grid_mesh);
185-
186- // Be sure brunt vaisalla frequency is reasonable
187- REQUIRE (SDS.brunt [offset] < 1 );
188-
189- // Ensure length scale is equal to dz if brunt =< 0, else
190- // length scale should be less then dz
191- if (SDS.brunt [offset] <= 0 ){
192- REQUIRE (SDS.shoc_mix [offset] == SDS.dz_zt [offset]);
193- }
194- else {
195- REQUIRE (SDS.shoc_mix [offset] < SDS.dz_zt [offset]);
196- }
197-
198- }
199- }
200-
201150 // TEST TWO
202151 // Small grid mesh test. Given a very small grid mesh, verify that
203152 // the length scale is confined to this value. Input from first
@@ -208,9 +157,6 @@ struct UnitWrap::UnitTest<D>::TestShocLength : public UnitWrap::UnitTest<D>::Bas
208157 // Defin the host grid box size y-direction [m]
209158 static constexpr Real host_dy_small = 5 ;
210159
211- // Call default SHOC closure assumptions
212- SDS.shoc_1p5tke = false ;
213-
214160 // compute geometric grid mesh
215161 const auto grid_mesh_small = sqrt (host_dx_small*host_dy_small);
216162
@@ -235,26 +181,6 @@ struct UnitWrap::UnitTest<D>::TestShocLength : public UnitWrap::UnitTest<D>::Bas
235181 }
236182 }
237183
238- // Repeat this test but for 1.5 TKE closure option activated
239-
240- // Activate 1.5 TKE closure assumptions
241- SDS.shoc_1p5tke = true ;
242-
243- // call C++ implementation
244- shoc_length (SDS);
245-
246- // Verify output
247- for (Int s = 0 ; s < shcol; ++s) {
248- for (Int n = 0 ; n < nlev; ++n) {
249- const auto offset = n + s * nlev;
250- // Require mixing length is greater than zero and is
251- // less than geometric grid mesh length + 1 m
252- REQUIRE (SDS.shoc_mix [offset] > 0 );
253- REQUIRE (SDS.shoc_mix [offset] <= maxlen);
254- REQUIRE (SDS.shoc_mix [offset] < 1.0 +grid_mesh_small);
255- }
256- }
257-
258184 }
259185
260186 void run_bfb ()
@@ -263,10 +189,10 @@ struct UnitWrap::UnitTest<D>::TestShocLength : public UnitWrap::UnitTest<D>::Bas
263189
264190 ShocLengthData SDS_baseline[] = {
265191 // shcol, nlev, nlevi
266- ShocLengthData (12 , 71 , 72 , false ),
267- ShocLengthData (10 , 12 , 13 , false ),
268- ShocLengthData (7 , 16 , 17 , false ),
269- ShocLengthData (2 , 7 , 8 , false ),
192+ ShocLengthData (12 , 71 , 72 ),
193+ ShocLengthData (10 , 12 , 13 ),
194+ ShocLengthData (7 , 16 , 17 ),
195+ ShocLengthData (2 , 7 , 8 ),
270196 };
271197
272198 // Generate random input data
0 commit comments