Skip to content

Exec/run2d/test_grids: all eleven shipped inputs_* decks abort at startup (no prob.probtype, unread probin files, RZ with viscosity) #250

Closed

Description

@WeiqunZhang

Location: Exec/run2d/test_grids/inputs_1_rz:29, Exec/run2d/test_grids/inputs_1_rz:106, Exec/run2d/test_grids/inputs_4:101, Source/prob/prob_init.cpp:162
Severity: Low — stale archival decks that abort immediately with a clear message; none is a regtest or tutorial deck, and nothing runs them
Category: Build-config
Based on commit bb697bf5 (line numbers refer to that tree).

Problem

The eleven decks inputs_1_rz, inputs_1_xy_xper, inputs_1_xy_xsolid, inputs_2_rz_zinflow,
inputs_2_rz_zsolid, inputs_2_xy_yinflow, inputs_2_xy_ysolid, inputs_3, inputs_4, inputs_5,
inputs_6 predate the C++ problem setup. They describe the problem through a Fortran namelist:

# Exec/run2d/test_grids/inputs_1_rz:28-29
# This will default to file "probin" if not set
amr.probin_file = probin_1

but Exec/Make.IAMR:1 sets AMREX_NO_PROBINIT=TRUE, so Amr::readProbinFile is compiled out and
probin_N is never opened. No deck sets prob.probtype, so NavierStokes::probtype keeps its static
default -1 and prob_init.cpp:162 aborts with "unknown probtype" during initData. Three further,
independent aborts: inputs_1_rz, inputs_2_rz_zsolid, inputs_2_rz_zinflow set geometry.coord_sys = 1
together with ns.vel_visc_coef = 0.01 (RZ with viscosity aborts, NavierStokesBase.cpp:246-253);
inputs_4/5/6 give ns.temp_cond_coef without ns.do_temp, which trips the
n_scal_diff_coefs+n_temp_cond_coef != NUM_SCALARS-1 check at NavierStokes.cpp:277. The decks also
carry keys read by nothing in IAMR, AMReX or AMReX-Hydro: proj.proj_2, proj.filter_factor, proj.v,
proj.Pcode, mg.v, mg.usecg, mg.nu_f, cg.v, Lp.alternateApplyBC, mac.v, godunov.v,
ns.do_MLsync_proj.

Impact

cd Exec/run2d && make && ./amr2d.gnu.ex test_grids/inputs_3 (any of the eleven) aborts at
initialization; the README's promise of "six sets of inputs ... used to test different grid
configurations" cannot be honoured. The fixed_grids_N files (amr.regrid_file) and the plt0000_N
grid pictures are still valid. Not run by CI or Test/IAMR-tests.ini; all build configurations.

Suggested fix

Either port the six probin setups to prob.* keys (probtype 6 = init_bubble, 7 = init_Euler; the
namelists give blob centre/radius/denfact) or remove the inputs/probin files and keep only the grid
files. Until then, say so in the README:

--- a/Exec/run2d/test_grids/README
+++ b/Exec/run2d/test_grids/README
@@ -1,4 +1,13 @@
 
+NOTE: the inputs_* and probin_* files here predate the C++ problem setup
+(Source/prob/prob_init.cpp) and do not run as-is: none sets prob.probtype, so
+the code aborts with "unknown probtype"; the probin_N Fortran namelists are no
+longer read (AMREX_NO_PROBINIT); inputs_1_rz and inputs_2_rz_* set viscosity
+in RZ, which aborts; inputs_4/5/6 give ns.temp_cond_coef without ns.do_temp,
+which aborts.  The legacy keys proj.*, mg.*, cg.*, Lp.*, mac.v, godunov.v and
+ns.do_MLsync_proj are read by nothing.  Only the fixed_grids_N files
+(amr.regrid_file) and the plt0000_N grid pictures remain usable.
+
 In this directory are six sets of inputs, probin and fixed_grids 
 files which are used to test different grid configurations and problem
 set-ups.  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions