Skip to content
Snippets Groups Projects
Commit edc6574b authored by Oriol Tintó Prims's avatar Oriol Tintó Prims
Browse files

Fix bug in prepare_date scripts.

parent c1e23071
No related branches found
No related tags found
1 merge request!4Switching to the advanced configuration method and fixing spack build.
#!/bin/bash -l
IS_LOCAL=%SIMULATION.INITIAL_CONDITIONS.MEMBER%
IS_LOCAL=%SIMULATION.INITIAL_CONDITIONS.LOCAL%
if [ "${IS_LOCAL}" == "True" ]; then
# Get some variables provided by autosubmit.
......
#!/bin/bash -l
IS_LOCAL=%SIMULATION.INITIAL_CONDITIONS.MEMBER%
IS_LOCAL=%SIMULATION.INITIAL_CONDITIONS.LOCAL%
if [ "${IS_LOCAL}" == "False" ]; then
if [ "${IS_LOCAL}" == "0" ]; then
# Get some variables provided by autosubmit.
WORKDIR=%HPCROOTDIR%
STARTDATE=%SDATE%
......@@ -15,7 +15,7 @@ if [ "${IS_LOCAL}" == "False" ]; then
AN_SOURCE=$(find ${INITIAL_CONDITIONS_PATH} -name "igaf*00.m${AN_MEMBER}.grb" | sort | tail -n 1)
FG_SOURCE=$(find ${INITIAL_CONDITIONS_PATH} -name "igfff00030000.m${AN_MEMBER}.grb" | sort | tail -n 1)
AN_FILE=$(basename "${AN_SOURCE}")
FG_FILE=$(basename "${FG_SOURCE}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment