Skip to content

Commit f694544

Browse files
committed
Merge remote-tracking branch 'upstream/master' into ImprovedELBubblesIO
2 parents ff66bca + c86fdd9 commit f694544

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2141
-2015
lines changed

.github/workflows/frontier/submit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ sbatch <<EOT
3333
#SBATCH -A CFD154 # charge account
3434
#SBATCH -N 1 # Number of nodes required
3535
$sbatch_device_opts
36-
#SBATCH -t 04:59:00 # Duration of the job (Ex: 15 mins)
36+
#SBATCH -t 05:59:00 # Duration of the job (Ex: 15 mins)
3737
#SBATCH -o$job_slug.out # Combined output and error messages file
3838
#SBATCH -p extended # Extended partition for shorter queues
3939
#SBATCH -W # Do not exit until the submitted job terminates.

.typos.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ strang = "strang"
1919
Strang = "Strang"
2020
TKE = "TKE"
2121
HSA = "HSA"
22-
INFP = "INFP"
22+
infp = "infp"
2323

2424
[files]
2525
extend-exclude = ["docs/documentation/references*", "tests/", "toolchain/cce_simulation_workgroup_256.sh"]

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
// Enable ONLY fortls language server
5050
"fortran.enableLanguageServer": true,
5151
"fortran.languageServer": "fortls",
52-
"fortran.fortls.disabled": false,
52+
"fortran.fortls.disabled": true,
5353
"fortran.fortls.path": "fortls",
5454

5555
// Try to disable any built-in language features

CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,13 @@ macro(HANDLE_SOURCES target useCommon)
328328
"${CMAKE_BINARY_DIR}/modules/${target}/*.fpp")
329329
if (${useCommon})
330330
file(GLOB common_FPPs CONFIGURE_DEPENDS "${common_DIR}/*.fpp")
331+
332+
# If we're building post_process, exclude m_compute_levelset.fpp
333+
if("${target}" STREQUAL "post_process")
334+
list(FILTER common_FPPs EXCLUDE REGEX ".*/m_compute_levelset\.fpp$")
335+
list(FILTER common_FPPs EXCLUDE REGEX ".*/m_ib_patches\.fpp$")
336+
endif()
337+
331338
list(APPEND ${target}_FPPs ${common_FPPs})
332339
endif()
333340

@@ -443,7 +450,7 @@ function(MFC_SETUP_TARGET)
443450

444451
if (ARGS_SILO)
445452
find_package(SILO REQUIRED)
446-
target_link_libraries(${a_target} PRIVATE SILO::SILO)
453+
target_link_libraries(${a_target} PRIVATE SILO::SILO stdc++)
447454
endif()
448455

449456
if (ARGS_HDF5)

examples/1D_inert_shocktube/case.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@
7070
"mapped_weno": "T",
7171
"mp_weno": "T",
7272
"riemann_solver": 2,
73-
"wave_speeds": 2,
74-
"avg_state": 1,
73+
"wave_speeds": 1,
74+
"avg_state": 2,
7575
"bc_x%beg": -2,
7676
"bc_x%end": -3,
7777
# Chemistry
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#:def Hardcoded1DVariables()
2+
! Place any declaration of intermediate variables here
3+
real(wp) :: x_mid_diffu, width_sq, profile_shape, temp, molar_mass_inv, y1, y2, y3, y4
4+
#:enddef
5+
6+
#:def Hardcoded1D()
7+
select case (patch_icpp(patch_id)%hcid)
8+
case (170)
9+
! This hardcoded case can be used to start a simulation with initial conditions given from a known 1D profile (e.g. Cantera, SDtoolbox)
10+
@: HardcodedReadValues()
11+
12+
case (180)
13+
! This is patch is hard-coded for test suite optimization used in the
14+
! 1D_shuoser cases: "patch_icpp(2)%alpha_rho(1)": "1 + 0.2*sin(5*x)"
15+
if (patch_id == 2) then
16+
q_prim_vf(contxb + 0)%sf(i, 0, 0) = 1 + 0.2*sin(5*x_cc(i))
17+
end if
18+
19+
case (181)
20+
! This is patch is hard-coded for test suite optimization used in the
21+
! 1D_titarevtorro cases: "patch_icpp(2)%alpha_rho(1)": "1 + 0.1*sin(20*x*pi)"
22+
q_prim_vf(contxb + 0)%sf(i, 0, 0) = 1 + 0.1*sin(20*x_cc(i)*pi)
23+
24+
case (182)
25+
! This patch is a hard-coded for test suite optimization (multiple component diffusion)
26+
x_mid_diffu = 0.05_wp/2.0_wp
27+
width_sq = (2.5_wp*10.0_wp**(-3.0_wp))**2
28+
profile_shape = 1.0_wp - 0.5_wp*exp(-(x_cc(i) - x_mid_diffu)**2/width_sq)
29+
q_prim_vf(momxb)%sf(i, 0, 0) = 0.0_wp
30+
q_prim_vf(E_idx)%sf(i, 0, 0) = 1.01325_wp*(10.0_wp)**5
31+
q_prim_vf(advxb)%sf(i, 0, 0) = 1.0_wp
32+
33+
y1 = (0.195_wp - 0.142_wp)*profile_shape + 0.142_wp
34+
y2 = (0.0_wp - 0.1_wp)*profile_shape + 0.1_wp
35+
y3 = (0.214_wp - 0.0_wp)*profile_shape + 0.0_wp
36+
y4 = (0.591_wp - 0.758_wp)*profile_shape + 0.758_wp
37+
38+
q_prim_vf(chemxb)%sf(i, 0, 0) = y1
39+
q_prim_vf(chemxb + 1)%sf(i, 0, 0) = y2
40+
q_prim_vf(chemxb + 2)%sf(i, 0, 0) = y3
41+
q_prim_vf(chemxb + 3)%sf(i, 0, 0) = y4
42+
43+
temp = (320.0_wp - 1350.0_wp)*profile_shape + 1350.0_wp
44+
45+
molar_mass_inv = y1/31.998_wp + &
46+
y2/18.01508_wp + &
47+
y3/16.04256_wp + &
48+
y4/28.0134_wp
49+
50+
q_prim_vf(contxb)%sf(i, 0, 0) = 1.01325_wp*(10.0_wp)**5/(temp*8.3144626_wp*1000.0_wp*molar_mass_inv)
51+
52+
case default
53+
call s_int_to_str(patch_id, iStr)
54+
call s_mpi_abort("Invalid hcid specified for patch "//trim(iStr))
55+
end select
56+
57+
#:enddef
File renamed without changes.
File renamed without changes.

src/common/include/case.fpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44

55
! For pre-process.
66
#:def analytical()
7+
78
#:enddef

0 commit comments

Comments
 (0)