Experiments with Fenics_ice over Smith, Pope, and Kohler Glaciers; three narrow ∼ 10 km wide, interconnected West Antarctic ice streams (Note: this repository documentation is still a work in progress).
1
stars
0
forks
source link
potential inconsistency between paths in .toml and in bash scripts #20
and similarly can be done for output_dir (and possibly diagnostics_dir) if these need to be set to specific values in the .toml for the script to succeed.
In bash run scripts (e.g. https://github.com/bearecinos/smith_glacier/blob/main/scripts/run_experiments/run_workflow/run_inv.sh) paths are set to certain locations, for instance
which then rely on a consistent location being set in .toml files:
but these could be set inconsistently.
A suggestion is to use
sed
(a linux utility) to create a copy of the toml file with the locations set to those defined in the bash script:if
$toml
is a bash variable with the toml file location, the following should replace$toml
with a toml file containing the paths you want:and similarly can be done for
output_dir
(and possiblydiagnostics_dir
) if these need to be set to specific values in the .toml for the script to succeed.