-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* This ran 1 step in debug. * This runs but has odd behavior in relaxation zone. The smag viscosity becomes VERY large; remains stable with setting k_turb=10. * Fix copy error. * Fix issue with nudge zone and most aware SmnSmn. Issue with PBL now. * Runs 100 steps. Will not restart. * This will restart. --------- Co-authored-by: Ann Almgren <[email protected]>
- Loading branch information
1 parent
709d24e
commit fbe71ac
Showing
33 changed files
with
1,233 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
set(erf_exe_name LandSurfaceModel) | ||
|
||
add_executable(${erf_exe_name} "") | ||
target_sources(${erf_exe_name} | ||
PRIVATE | ||
prob.cpp | ||
) | ||
|
||
target_include_directories(${erf_exe_name} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) | ||
|
||
include(${CMAKE_SOURCE_DIR}/CMake/BuildERFExe.cmake) | ||
build_erf_exe(${erf_exe_name}) | ||
|
||
#find_package(AMReX) | ||
#target_link_libraries( ${_target} AMReX::amrex) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# AMReX | ||
COMP = gnu | ||
PRECISION = DOUBLE | ||
|
||
# Profiling | ||
PROFILE = FALSE | ||
TINY_PROFILE = FALSE | ||
COMM_PROFILE = FALSE | ||
TRACE_PROFILE = FALSE | ||
MEM_PROFILE = FALSE | ||
USE_GPROF = FALSE | ||
|
||
# Performance | ||
USE_MPI = TRUE | ||
USE_OMP = FALSE | ||
|
||
USE_CUDA = FALSE | ||
USE_HIP = FALSE | ||
USE_SYCL = FALSE | ||
|
||
# Debugging | ||
DEBUG = FALSE | ||
|
||
TEST = TRUE | ||
USE_ASSERTION = TRUE | ||
|
||
USE_NETCDF = TRUE | ||
|
||
# GNU Make | ||
Bpack := ./Make.package | ||
Blocs := . | ||
|
||
ERF_HOME := ../../.. | ||
ERF_PROBLEM_DIR = $(ERF_HOME)/Exec/DevTests/LandSurfaceModel | ||
include $(ERF_HOME)/Exec/Make.ERF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CEXE_headers += prob.H | ||
CEXE_sources += prob.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This problem setup is to test the ability of ERF to handle a land surface model. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# ------------------ INPUTS TO MAIN PROGRAM ------------------- | ||
max_step = 100 | ||
|
||
amrex.fpe_trap_invalid = 1 | ||
amrex.fpe_trap_zero = 1 | ||
amrex.fpe_trap_overflow = 1 | ||
|
||
# PROBLEM SIZE & GEOMETRY | ||
geometry.prob_extent = 2430000 2673000 12000 | ||
amr.n_cell = 90 99 50 | ||
|
||
geometry.is_periodic = 0 0 0 | ||
|
||
xlo.type = "Outflow" | ||
xhi.type = "Outflow" | ||
|
||
ylo.type = "Outflow" | ||
yhi.type = "Outflow" | ||
|
||
zlo.type = "Most" | ||
erf.most.z0 = 0.1 | ||
erf.most.zref = 120.0 | ||
zhi.type = "SlipWall" | ||
|
||
# TIME STEP CONTROL | ||
erf.fixed_dt = 0.01 | ||
erf.fixed_mri_dt_ratio = 4 | ||
|
||
# DIAGNOSTICS & VERBOSITY | ||
erf.sum_interval = -1 # timesteps between computing mass | ||
#erf.data_log = my_data my_1d_data | ||
erf.v = 1 # verbosity in ERF.cpp | ||
amr.v = 1 # verbosity in Amr.cpp | ||
|
||
# REFINEMENT / REGRIDDING | ||
amr.max_level = 0 # maximum level number allowed | ||
|
||
# CHECKPOINT FILES | ||
erf.check_file = chk # root name of checkpoint file | ||
erf.check_int = 100 # number of timesteps between checkpoints | ||
erf.restart_type = "native" | ||
# PLOTFILES | ||
erf.plot_file_1 = plt # prefix of plotfile name | ||
erf.plot_int_1 = 1 # number of timesteps between plotfiles | ||
erf.plot_vars_1 = density rhotheta rhoadv_0 x_velocity y_velocity z_velocity pressure theta scalar temp pres_hse dens_hse pert_pres pert_dens | ||
|
||
erf.plot_lsm = true | ||
|
||
# SOLVER CHOICE | ||
erf.alpha_T = 1.0 | ||
erf.alpha_C = 1.0 | ||
erf.use_gravity = true | ||
|
||
erf.molec_diff_type = "None" | ||
erf.les_type = "Smagorinsky" | ||
erf.Cs = 0.1 | ||
#erf.pbl_type = "MYNN2.5" | ||
#erf.QKE_0 = 0.5 | ||
|
||
erf.use_terrain = true | ||
erf.terrain_smoothing = 2 | ||
|
||
erf.moisture_model = "NullMoist" | ||
|
||
erf.land_surface_model = "MM5" | ||
|
||
# INITIALIZATION WITH METGRID DATA | ||
erf.metgrid_bdy_width = 5 | ||
erf.metgrid_bdy_set_width = 1 | ||
erf.init_type = "metgrid" | ||
erf.nc_init_file_0 = "met_em.d01.2016-10-06_00_00_00.nc" "met_em.d01.2016-10-06_06_00_00.nc" | ||
|
||
# NO CACHE TILING | ||
fabarray.mfiter_tile_size = 1024 1024 1024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef _PROB_H_ | ||
#define _PROB_H_ | ||
|
||
#include <string> | ||
|
||
#include "AMReX_REAL.H" | ||
|
||
#include "prob_common.H" | ||
|
||
struct ProbParm : ProbParmDefaults { | ||
}; // namespace ProbParm | ||
class Problem : public ProblemBase | ||
{ | ||
public: | ||
Problem(const amrex::Real* /*problo*/, const amrex::Real* /*probhi*/); | ||
|
||
protected: | ||
std::string name() override { return "LandSurfaceModel"; } | ||
|
||
private: | ||
ProbParm parms; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include "prob.H" | ||
|
||
using namespace amrex; | ||
|
||
std::unique_ptr<ProblemBase> | ||
amrex_probinit(const amrex_real* problo, const amrex_real* probhi) | ||
{ | ||
return std::make_unique<Problem>(problo, probhi); | ||
} | ||
|
||
Problem::Problem(const amrex::Real* /*problo*/, const amrex::Real* /*probhi*/) | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.