-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add jupiter_crm to test case
- Loading branch information
Showing
40 changed files
with
685 additions
and
368 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,23 @@ | ||
# A small macro used for setting up the build of a problem. | ||
# | ||
# Usage: setup_problem(name) | ||
|
||
string(TOLOWER ${CMAKE_BUILD_TYPE} buildl) | ||
string(TOUPPER ${CMAKE_BUILD_TYPE} buildu) | ||
|
||
macro(setup_problem namel) | ||
add_executable(${namel}.${buildl} ${namel}.cpp | ||
${CMAKE_BINARY_DIR}/main_${TASK}.cpp) | ||
|
||
set_target_properties( | ||
${namel}.${buildl} | ||
PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" | ||
COMPILE_FLAGS ${CMAKE_CXX_FLAGS_${buildu}}) | ||
|
||
target_link_libraries(${namel}.${buildl} ${CANOE_LIBRARY_${buildu}}) | ||
|
||
target_include_directories( | ||
${namel}.${buildl} | ||
PRIVATE ${CMAKE_BINARY_DIR} ${CANOE_INCLUDE_DIR} ${EIGEN3_INCLUDE_DIR} | ||
${MPI_CXX_INCLUDE_PATH} ${NETCDF_INCLUDES} ${PNETCDF_INCLUDE_DIR}) | ||
endmacro() |
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,31 @@ | ||
# A small macro used for setting up the build of a test. | ||
# | ||
# Usage: setup_test(name) | ||
|
||
macro(setup_test namel) | ||
string(TOLOWER ${CMAKE_BUILD_TYPE} buildl) | ||
string(TOUPPER ${CMAKE_BUILD_TYPE} buildu) | ||
|
||
add_executable(${namel}.${buildl} ${namel}.cpp globals.cpp) | ||
|
||
set_target_properties(${namel}.${buildl} | ||
PROPERTIES COMPILE_FLAGS ${CMAKE_CXX_FLAGS_${buildu}}) | ||
|
||
target_include_directories( | ||
${namel}.${buildl} | ||
PRIVATE $<$<BOOL:${PVFMM}>:${PVFMM_SOURCE_DIR}/SCTL/include> | ||
${CMAKE_BINARY_DIR} | ||
${CANOE_INCLUDE_DIR} | ||
${EIGEN3_INCLUDE_DIR} | ||
${MPI_CXX_INCLUDE_PATH} | ||
${NETCDF_INCLUDES} | ||
${PNETCDF_INCLUDE_DIR} | ||
${OpenMP_CXX_INCLUDE_DIR} | ||
${FFTW_INCLUDE_DIRS}) | ||
|
||
target_link_libraries( | ||
${namel}.${buildl} gtest_main $<$<BOOL:${PVFMM}>:pvfmmStatic> | ||
${CANOE_LIBRARY_${buildu}}) | ||
|
||
add_test(NAME ${namel}.${buildl} COMMAND ${namel}.${buildl}) | ||
endmacro() |
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
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,99 @@ | ||
<comment> | ||
problem = test jupiter | ||
|
||
<job> | ||
problem_id = jupiter2d # problem ID: basename of output filenames | ||
|
||
<output0> | ||
file_type = rst | ||
dt = 10.E5 | ||
|
||
<output1> | ||
file_type = hst # History data dump | ||
dt = 2.E4 # time increment between outputs | ||
|
||
<output2> | ||
file_type = netcdf # Netcdf format output | ||
variable = prim # variables to be output | ||
dt = 1.E4 # time increment between outputs | ||
|
||
<output3> | ||
file_type = netcdf # Netcdf format output | ||
variable = uov # diagnostic variables | ||
dt = 1.E4 # time increment | ||
|
||
<time> | ||
cfl_number = 0.9 | ||
nlim = -1 # cycle limit | ||
tlim = 2.E5 | ||
xorder = 5 # horizontal reconstruction order | ||
integrator = rk3 # integration method | ||
|
||
<mesh> | ||
nx1 = 80 # Number of zones in X1-direction | ||
x1min = -320.E3 # minimum value of X1 | ||
x1max = 40.E3 # maximum value of X1 | ||
ix1_bc = reflecting # Inner-X1 boundary condition flag | ||
ox1_bc = reflecting # Outer-X1 boundary condition flag | ||
|
||
nx2 = 320 # Number of zones in X2-direction | ||
x2min = 0. # minimum value of X2 | ||
x2max = 3200.E3 # maximum value of X2 | ||
ix2_bc = periodic # Inner-X2 boundary condition flag | ||
ox2_bc = periodic # Outer-X2 boundary condition flag | ||
|
||
nx3 = 1 # Number of zones in X3-direction | ||
x3min = -0.5 # minimum value of X3 | ||
x3max = 0.5 # maximum value of X3 | ||
ix3_bc = periodic # Inner-X3 boundary condition flag | ||
ox3_bc = periodic # Outer-X3 boundary condition flag | ||
|
||
<meshblock> | ||
nx1 = 80 | ||
nx2 = 40 | ||
nx3 = 1 | ||
|
||
<hydro> | ||
gamma = 1.42 | ||
grav_acc1 = -24.79 | ||
implicit_flag = 1 | ||
|
||
#<species> | ||
#vapor = H2O, NH3 | ||
#cloud = H2O(c), NH3(c), H2O(p), NH3(p) | ||
|
||
<species> | ||
vapor = H2O | ||
cloud = H2O(c), H2O(p) | ||
|
||
<chemistry> | ||
microphysics_config = water_ammonia.yaml | ||
|
||
<thermodynamics> | ||
Rd = 3777. # mu = 2.3175 g/mol | ||
eps1 = 8.18 8.18 8.18 | ||
beta1 = 0. 24.845 24.845 | ||
rcp1 = 0.15 0.33 0.33 | ||
Ttriple1 = 273.16 | ||
Ptriple1 = 611.7 | ||
|
||
eps2 = 7.72 7.72 7.72 | ||
rcp2 = 0.078 0.16 0.16 | ||
beta2 = 0. 23.67 23.67 | ||
Ttriple2 = 195.4 | ||
Ptriple2 = 6060. | ||
|
||
sa.relax = 1.0 | ||
sa.max_iter = 4 | ||
sa.ftol = 1.e-2 | ||
|
||
<problem> | ||
qH2O.ppmv = 25000. | ||
qNH3.ppmv = 320. | ||
|
||
P0 = 1.E5 | ||
T0 = 169. | ||
Tmin = 110. | ||
hrate = -100. | ||
prad = 2.e5 | ||
init_Ttol = 2. |
Oops, something went wrong.