FORTRAN has a I/O method to define parameters from a file called namelist.
When implementing the emulator in a code that uses namelists, it would be necessary to adapt the namelist.
Specifically, when the namelist its used to specify the value of a real variable which real type has been replaced with a rpe_var, it will be necessary to add the %val statement in the namelist to specify that we are modifying the real part of the rpe_var structure.
& section var = 0.1234 /
& section var%val = 0.1234 /
Options: -h, --help show this help message and exit -v FILE, --vault=FILE Path to the vault database args: paths to the namelist that will be adapted.
- -v Path to the vault created when implementing RPE into the code that will be executed.
- args paths to the namelist that will be adapted.
The script will modify the namelists provided as arguments.
AutoRPE-AdaptNamelists -v vault.pkl namelist_cfg namelist_ref