Skip to content

Commit

Permalink
Merge branch 'development' into thin_immersed_bndry
Browse files Browse the repository at this point in the history
  • Loading branch information
asalmgren authored Apr 6, 2024
2 parents 58b00da + 22cf6ba commit 76ae6cb
Show file tree
Hide file tree
Showing 28 changed files with 22 additions and 330 deletions.
2 changes: 1 addition & 1 deletion Docs/sphinx_doc/RegressionTests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -452,4 +452,4 @@ Test Location: `Tests/test_files/EkmanSpiral`_

Problem Location: `Exec/RegTests/EkmanSpiral`_

.. _`Exec/RegTests/EkmanSpiral`: https://github.com/erf-model/ERF/tree/development/Exec/RegTests/EkmanSpiral_ideal
.. _`Exec/RegTests/EkmanSpiral`: https://github.com/erf-model/ERF/tree/development/Exec/RegTests/EkmanSpiral
6 changes: 2 additions & 4 deletions Exec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ elseif (ERF_ENABLE_REGRESSION_TESTS_ONLY)
add_subdirectory(RegTests/Couette_Poiseuille)
add_subdirectory(RegTests/DensityCurrent)
add_subdirectory(RegTests/DynamicRefinement)
add_subdirectory(RegTests/EkmanSpiral_custom)
add_subdirectory(RegTests/EkmanSpiral)
add_subdirectory(RegTests/IsentropicVortex)
add_subdirectory(RegTests/ScalarAdvDiff)
add_subdirectory(RegTests/TaylorGreenVortex)
Expand All @@ -23,9 +23,7 @@ else ()
add_subdirectory(RegTests/Couette_Poiseuille)
add_subdirectory(RegTests/DensityCurrent)
add_subdirectory(RegTests/DynamicRefinement)
add_subdirectory(RegTests/EkmanSpiral_custom)
add_subdirectory(RegTests/EkmanSpiral_ideal)
add_subdirectory(RegTests/EkmanSpiral_input_sounding)
add_subdirectory(RegTests/EkmanSpiral)
add_subdirectory(RegTests/IsentropicVortex)
add_subdirectory(RegTests/ParticlesOverWoA)
add_subdirectory(RegTests/ScalarAdvDiff)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(erf_exe_name erf_ekman_spiral_ideal)
set(erf_exe_name erf_ekman_spiral)

add_executable(${erf_exe_name} "")
target_sources(${erf_exe_name}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ Bpack := ./Make.package
Blocs := .

ERF_HOME := ../../..
ERF_PROBLEM_DIR = $(ERF_HOME)/Exec/RegTests/EkmanSpiral_custom
ERF_PROBLEM_DIR = $(ERF_HOME)/Exec/RegTests/EkmanSpiral
include $(ERF_HOME)/Exec/Make.ERF
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ internally and at no-slip walls.
A description of the problem, including the exact solution, can be found at
https://exawind.github.io/amr-wind/developer/verification.html#ekman-spiral .

The version of the Ekman spiral test in this directory initializes the solution
When the executable here is run with inputs_custom, the solution is initialized
in prob.cpp from the exact solution.

When the executable here is run with inputs_ideal, the solution is initialized
from the wrfinput_ekman_d01 file, thus this is also a test of ERF's ability to
initialize from WPS "ideal" files.

When the executable here is run with inputs_input_sounding, the solution is initialized
from the input_sounding_file, thus this is also a test of ERF's ability to
initialize from input soundings.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ Problem::init_custom_pert(
Array4<Real const> const& /*mf_v*/,
const SolverChoice& sc)
{
//
// NOTE: this routine is only called when doing custom initialization!
//
// In the case of initializng from an input sounding or from a wrfinput file,
// this routine will not be called.
//

const bool use_moisture = (sc.moisture_type != MoistureType::None);

ParallelFor(bx, [=, parms=parms] AMREX_GPU_DEVICE(int i, int j, int k) noexcept
{
// Geometry
//const Real* prob_lo = geomdata.ProbLo();
//const auto dx = geomdata.CellSize();
//const Real x = prob_lo[0] + (i + 0.5) * dx[0];
//const Real y = prob_lo[1] + (j + 0.5) * dx[1];
//const Real z = prob_lo[2] + (k + 0.5) * dx[2];

// Set scalar = 0 everywhere
state_pert(i, j, k, RhoScalar_comp) = 0.0;

Expand Down Expand Up @@ -79,7 +79,6 @@ Problem::init_custom_pert(
const Real u_0 = abl_geo_wind[0];

const Real DE = std::sqrt(2.0 * Az / coriolis_factor);
//amrex::Print() << "Ekman depth = " << DE << " m" << std::endl;
const Real a = 1.0 / DE;

// Set the x-velocity
Expand Down
12 changes: 0 additions & 12 deletions Exec/RegTests/EkmanSpiral_custom/CMakeLists.txt

This file was deleted.

10 changes: 0 additions & 10 deletions Exec/RegTests/EkmanSpiral_custom/README

This file was deleted.

39 changes: 0 additions & 39 deletions Exec/RegTests/EkmanSpiral_ideal/GNUmakefile

This file was deleted.

2 changes: 0 additions & 2 deletions Exec/RegTests/EkmanSpiral_ideal/Make.package

This file was deleted.

50 changes: 0 additions & 50 deletions Exec/RegTests/EkmanSpiral_ideal/prob.H

This file was deleted.

45 changes: 0 additions & 45 deletions Exec/RegTests/EkmanSpiral_ideal/prob.cpp

This file was deleted.

12 changes: 0 additions & 12 deletions Exec/RegTests/EkmanSpiral_input_sounding/CMakeLists.txt

This file was deleted.

35 changes: 0 additions & 35 deletions Exec/RegTests/EkmanSpiral_input_sounding/GNUmakefile

This file was deleted.

2 changes: 0 additions & 2 deletions Exec/RegTests/EkmanSpiral_input_sounding/Make.package

This file was deleted.

10 changes: 0 additions & 10 deletions Exec/RegTests/EkmanSpiral_input_sounding/README

This file was deleted.

50 changes: 0 additions & 50 deletions Exec/RegTests/EkmanSpiral_input_sounding/prob.H

This file was deleted.

Loading

0 comments on commit 76ae6cb

Please sign in to comment.