Changeset 3634 for trunk/LMDZ.COMMON/libf/evolution/deftank
- Timestamp:
- Feb 19, 2025, 3:54:06 PM (4 months ago)
- Location:
- trunk/LMDZ.COMMON/libf/evolution/deftank
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/deftank/PCMrun.job
r3579 r3634 35 35 # Running the PCM 36 36 read i_myear n_myear convert_years iPCM iPEM nPCM nPCM_ini < info_PEM.txt 37 echo "Run PCM $iPCMis starting."37 echo "Run \"PCM $iPCM\" is starting." 38 38 cp run_PCM.def run.def 39 39 eval "$exe_cmd > out_runPCM${iPCM} 2>&1" -
trunk/LMDZ.COMMON/libf/evolution/deftank/PEMrun.job
r3584 r3634 42 42 # Running the PEM 43 43 read i_myear n_myear convert_years iPCM iPEM nPCM nPCM_ini < info_PEM.txt 44 echo "Run PEM $iPEMis starting."44 echo "Run \"PEM $iPEM\" is starting." 45 45 cp run_PEM.def run.def 46 46 eval "./$exePEM $arg_pem > out_runPEM${iPEM} 2>&1" -
trunk/LMDZ.COMMON/libf/evolution/deftank/launchPEM.sh
r3579 r3634 110 110 exec >> log_launchPEM.txt 2>&1 111 111 echo 112 echo "This is a relaunch for the PEM simulation from the run $relaunch$irelaunch."112 echo "This is a relaunch for the PEM simulation from the run \"$relaunch $irelaunch\"." 113 113 date 114 114 checklaunch -
trunk/LMDZ.COMMON/libf/evolution/deftank/lib_launchPEM.sh
r3620 r3634 172 172 fi 173 173 if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then 174 echo "Run PCM $iPCM: call $ii/$3..."174 echo "Run \"PCM $iPCM\": call $ii/$3..." 175 175 if [ $1 -eq 0 ]; then # Mode: processing scripts 176 176 sed -i "s/^k=[0-9]\+$/k=$(echo "3 - $nPCM_ini" | bc)/" PCMrun.job … … 199 199 for ((i = $ii; i <= $3; i++)); do 200 200 if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then 201 echo "Run PCM $iPCM: call $i/$3..."201 echo "Run \"PCM $iPCM\": call $i/$3..." 202 202 if [ $1 -eq 0 ]; then # Mode: processing scripts 203 203 sed -i "s/^k=[0-9]\+$/k=$(echo "$i + 2 - $nPCM_ini" | bc)/" PCMrun.job … … 227 227 submitPEM() { 228 228 if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then 229 echo "Run PEM $iPEM"229 echo "Run \"PEM $iPEM\"" 230 230 if [ $1 -eq 0 ]; then # Mode: processing scripts 231 231 ./PEMrun.job … … 257 257 # PEM run 258 258 if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then 259 echo "Run PEM $iPEM"259 echo "Run \"PEM $iPEM\"" 260 260 if [ $1 -eq 0 ]; then # Mode: processing scripts 261 261 ./PEMrun.job … … 348 348 il=$(echo "($irelaunch - $nPCM_ini + 1)%$nPCM + 1" | bc) 349 349 if [ $2 -ne 0 ]; then # Counting: PCM runs taken into account 350 i_myear=$( ($(awk "NR==$iPEM {printf \"%s\n\", \$3}" "info_PEM.txt") + $il))350 i_myear=$(echo "$(awk "NR==$iPEM {printf \"%s\n\", \$3}" "info_PEM.txt") + $il" | bc -l) 351 351 else # Counting: only PEM runs count 352 352 i_myear=$(awk "NR==$iPEM {printf \"%s\n\", \$3}" "info_PEM.txt")
Note: See TracChangeset
for help on using the changeset viewer.