Commit 1dbcdd6
committed
fix(codegen): exclude CASE_OPT_PARAMS from sim generated_decls.fpp
generate_decls_fpp was emitting unconditional declarations for all
sim-target variables including CASE_OPT_PARAMS (recon_type, weno_order,
nb, mapped_weno, viscous, etc.).
m_global_parameters.fpp for simulation contains a manual
#:if MFC_CASE_OPTIMIZATION / #:else block that declares these same
variables — as compile-time constants in case-opt builds and as regular
variables otherwise. The generated include + the manual block created
duplicate declarations, which is a Fortran compile error for every
./mfc.sh build --case-optimization invocation.
Fix: skip CASE_OPT_PARAMS when generating declarations for the sim target.
The manual block handles both the parameter and variable cases.1 parent 56c04f3 commit 1dbcdd6
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
| |||
0 commit comments