source: trunk/LMDZ.COMMON/libf/evolution/deftank/lib_launchPEM.sh @ 3985

Last change on this file since 3985 was 3981, checked in by jbclement, 3 weeks ago

PEM:

  • Removing the counting method where PCM years are taken into account.
  • CO2 ice is now a PEM reservoir such as H2O ice.

JBC

  • Property svn:executable set to *
File size: 19.5 KB
Line 
1#!/bin/bash
2########################################################################
3######## Library of bash functions for the PEM launching script ########
4########################################################################
5
6# To end the launching script
7endlaunch() {
8    # Restore the previous value of LC_NUMERIC
9    LC_NUMERIC=$OLD_LC_NUMERIC
10
11    date
12    echo "Success: the launching script for the PEM simulation completed normally!"
13    exit 0
14}
15
16# To end the launching script with error
17errlaunch() {
18    # Restore the previous value of LC_NUMERIC
19    LC_NUMERIC=$OLD_LC_NUMERIC
20
21    date
22    echo "Error: an issue occured in the launching script for the PEM simulation!"
23    exit 1
24}
25
26# To check what is the job scheduler
27function job_scheduler() {
28    if command -v squeue &> /dev/null; then
29        echo "SLURM is installed on $machine."
30        scheduler="SLURM"
31        name_job="#SBATCH --job-name="
32        kill_job="scancel"
33    elif command -v qstat &> /dev/null; then
34        echo "PBS/TORQUE is installed on $machine."
35        scheduler="PBS"
36        name_job="#PBS -N "
37        kill_job="qdel"
38    else
39        echo "Error: neither SLURM nor TORQUE/PBS is installed on $machine!"
40        echo "You need to adapt the script to your job scheduler or set 'mode' to 0."
41        errlaunch
42    fi
43}
44
45# To get the number of slopes for the simulation
46get_nslope() {
47    ns=1
48    if [ -f "startfi.nc" ]; then
49        ns=$(ncdump -h startfi.nc | sed -n 's/.*nslope = \([0-9]*\) ;.*/\1/p')
50    else
51        for f in run_PCM.def callphys.def; do
52            if [[ -f "$f" ]]; then
53                while IFS= read -r line; do
54                    # Remove leading whitespace
55                    trimmed=$(echo "$line" | sed 's/^[[:space:]]*//')
56                    # Skip lines that are commented out
57                    if [[ "$trimmed" == \#* ]]; then
58                        continue
59                    fi
60                    # Check if line contains 'nslope = N'
61                    if [[ "$trimmed" =~ ^nslope[[:space:]]*=[[:space:]]*([0-9]+) ]]; then
62                        ns="${BASH_REMATCH[1]}"
63                        break
64                    fi
65                done < "$f"
66                [[ -n "$ns" ]] && break
67            fi
68        done
69    fi
70}
71
72# To modify the xml file according nslope
73modify_xml() {
74    tmp="tmp_file_def.xml"
75    in_outdaily4pem=false
76    in_outyearly4pem=false
77    in_outdaily4pem_s=false
78    in_outyearly4pem_s=false
79
80    sed -i 's/enabled="\.true\.\">/enabled=".false.">/g' file_def_physics_mars.xml
81
82    while IFS= read -r line; do
83        # Detect file blocks
84        case "$line" in
85            *'<file id="outdaily4pem"'*)
86                in_outdaily4pem=true
87                ;;
88            *'<file id="outyearly4pem"'*)
89                in_outyearly4pem=true
90                ;;
91            *'<file id="outdaily4pem_s"'*)
92                in_outdaily4pem_s=true
93                ;;
94            *'<file id="outyearly4pem_s"'*)
95                in_outyearly4pem_s=true
96                ;;
97        esac
98
99        # Handle enabled attribute
100        if [[ $line == *'enabled="'* ]]; then
101            if $in_outdaily4pem || $in_outyearly4pem; then
102                if [[ $ns -eq 1 ]]; then
103                    line='              enabled=".true.">'
104                else
105                    line='              enabled=".false.">'
106                fi
107            elif $in_outdaily4pem_s || $in_outyearly4pem_s; then
108                if [[ $ns -eq 1 ]]; then
109                    line='              enabled=".false.">'
110                else
111                    line='              enabled=".true.">'
112                fi
113            fi
114        fi
115
116        # Handle slope variables
117        if ( $in_outdaily4pem_s || $in_outyearly4pem_s ) && [[ $line =~ slope([0-9]+) ]]; then
118            slope_id="${BASH_REMATCH[1]}"
119            if (( 10#$slope_id > ns )); then
120                # Ensure the line is commented
121                if [[ $line != "<!--"* ]]; then
122                    line="<!-- $line -->"
123                fi
124            else
125                # Ensure the line is uncommented
126                if [[ $line == "<!--"* ]]; then
127                    line="${line#<!-- }" # remove leading <!--
128                    line="${line% -->}"  # remove trailing -->
129                fi
130            fi
131        fi
132
133
134        # Leaving the file block
135        case "$line" in
136            *'</file>'*)
137                in_outdaily4pem=false
138                in_outyearly4pem=false
139                in_outdaily4pem_s=false
140                in_outyearly4pem_s=false
141                ;;
142        esac
143
144        echo "$line" >> "$tmp"
145    done < file_def_physics_mars.xml
146
147    mv "$tmp" file_def_physics_mars.xml
148}
149
150# To check if a PCM run is one year
151check_runyear() {
152    if [ -f "run_PCM.def" ]; then
153        year_sol=$(ncdump -v controle startfi.nc 2>/dev/null | \
154                   sed -n '/controle =/,/;/p' | tr -d '[:space:]' | \
155                   sed 's/.*=//; s/;//' | tr ',' '\n' | sed -n '14p')
156    else
157        year_sol=669 # Length of Martian year (sols)
158    fi
159    sol_in_file=$(awk -F'=' '/^[[:space:]]*(nday|ndt)[[:space:]]*=/ {
160                  val=$2
161                  gsub(/^[[:space:]]+|[[:space:]]+$/,"",val)
162                  print val
163                  exit
164                  }' run_PCM.def)
165
166    if [ -z "$sol_in_file" ]; then
167        echo "Error: no length of year found in \"run_PCM.def\"!"
168        errlaunch
169    elif [ "$sol_in_file" -eq "$year_sol" ]; then
170        # Good: we do nothing
171        :
172    else
173        echo "Error: length of year mismatch between \"run_PCM.def\" ($sol_in_file) and \"startfi.nc\" ($year_sol)!"
174        errlaunch
175    fi
176}
177
178# To check if everything necessary for the launching script is ok
179checklaunch() {
180    # Save the current value of LC_NUMERIC and set it to a locale that uses a dot as the decimal separator
181    OLD_LC_NUMERIC=$LC_NUMERIC
182    LC_NUMERIC=en_US.UTF-8
183
184    if [ -v n_mars_years ] && [ ! -z "$n_mars_years" ]; then
185        if [ $(echo "$n_mars_years <= 0." | bc -l) -eq 1 ]; then
186            echo "Error: 'n_mars_years' must be > 0!"
187            errlaunch
188        fi
189    elif [ -v n_earth_years ] && [ ! -z "$n_earth_years" ]; then
190        if [ $(echo "$n_earth_years <= 0." | bc -l) -eq 1 ]; then
191            echo "Error: 'n_earth_years' must be > 0!"
192            errlaunch
193        fi
194    else
195        echo "Error: the number of years to be simulated is not set!"
196        errlaunch
197    fi
198    if [ $nPCM_ini -lt 2 ] || [ -z "$nPCM_ini" ]; then
199        echo "Error: 'nPCM_ini' must be >= 2!"
200        errlaunch
201    fi
202    if [ $nPCM -lt 2 ] || [ -z "$nPCM" ]; then
203        echo "Error: 'nPCM' must be >= 2!"
204        errlaunch
205    fi
206    if [ ! -f "PCMrun.job" ]; then
207        echo "Error: file \"PCMrun.job\" does not exist in $dir!"
208        errlaunch
209    fi
210    if [ ! -f "PEMrun.job" ]; then
211        echo "Error: file \"PEMrun.job\" does not exist in $dir!"
212        errlaunch
213    fi
214    if [ ! -f "run_PCM.def" ]; then
215        echo "Error: file \"run_PCM.def\" does not exist in $dir!"
216        errlaunch
217    fi
218    if [ ! -f "run_PEM.def" ]; then
219        echo "Error: file \"run_PEM.def\" does not exist in $dir!"
220        errlaunch
221    fi
222    if [ ! -f "context_lmdz_physics.xml" ]; then
223        echo "Error: file \"context_lmdz_physics.xml\" does not exist in $dir!"
224        errlaunch
225    fi
226    if [ ! -f "field_def_physics_mars.xml" ]; then
227        echo "Error: file \"field_def_physics_mars.xml\" does not exist in $dir!"
228        errlaunch
229    fi
230    if [ ! -f "file_def_physics_mars.xml" ]; then
231        echo "Error: file \"file_def_physics_mars.xml\" does not exist in $dir!"
232        errlaunch
233    fi
234    if [ ! -f "iodef.xml" ]; then
235        echo "Error: file \"iodef.xml\" does not exist in $dir!"
236        errlaunch
237    fi
238    if [ ! -d "logs" ]; then
239        mkdir logs
240    fi
241    if [ ! -d "starts" ]; then
242        mkdir starts
243    fi
244    if [ ! -d "diags" ]; then
245        mkdir diags
246    fi
247    if [ $mode -ne 0 ]; then
248        job_scheduler
249    fi
250    # Set automatically the XIOS output file for the PEM according to the number of slopes
251    get_nslope
252    modify_xml
253    # Check if a PCM run is one year
254    check_runyear
255}
256
257# To convert Earth years into Mars years
258convertyears() {
259    myear=686.9725      # Number of Earth days in Martian year
260    eyear=365.256363004 # Number of days in Earth year
261    convert_years=$(echo "$myear/$eyear" | bc -l)
262    convert_years=$(printf "%.4f" $convert_years) # Rounding to the 4th decimal to respect the precision of Martian year
263    if [ -v n_mars_years ]; then
264        n_myear=$n_mars_years
265        echo "Number of years to be simulated: $n_myear Martian years."
266    elif [ -v n_earth_years ]; then
267        n_myear=$(echo "$n_earth_years/$convert_years" | bc -l)
268        echo "Number of years to be simulated: $n_earth_years Earth years = $n_myear Martian years."
269    fi
270}
271
272# To initialize the launching script
273initlaunch() {
274    echo "This is a chained simulation for PEM and PCM runs in $dir on $machine by $user."
275    convertyears
276    i_myear=0.
277    iPEM=1
278    iPCM=1
279    if [ -f "startfi.nc" ]; then
280        cp startfi.nc starts/
281    fi
282    if [ -f "start.nc" ]; then
283        cp start.nc starts/
284    elif [ -f "start1D.txt" ]; then
285        cp start1D.txt starts/
286    fi
287    if [ -f "startpem.nc" ]; then
288        cp startpem.nc starts/
289    fi
290
291    # Create a file to manage years of the chained simulation and store some info from the PEM runs
292    echo $i_myear $n_myear $convert_years $iPCM $iPEM $nPCM $nPCM_ini > launchPEM.info
293}
294
295# To submit the PCM runs
296# arg1: launching mode
297# arg2: number of PCM runs to launch
298# arg3: local number of the PCM run from which to start (optional)
299submitPCM() {
300    find . -type f -name "PCMrun*.job" ! -name "PCMrun.job" -delete
301    ii=1
302    if [ ! -z $3 ]; then
303        ii=$3
304    fi
305    if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then
306        echo "Run \"PCM $iPCM\" ($ii/$2)"
307        if [ $1 -eq 0 ]; then # Mode: processing scripts
308            sed -i "s/^k=-\?[0-9]\+$/k=$(echo "$ii - $2 + 2" | bc)/" PCMrun.job
309            ./PCMrun.job
310            if [ $? -ne 0 ]; then
311                errlaunch
312            fi
313        else # Mode: submitting jobs
314            cp PCMrun.job PCMrun${iPCM}.job
315            sed -i -E "/^$name_job/s/(.*[^0-9])([0-9]+)(_[^0-9]*)?$/\1${iPCM}\3/" PCMrun${iPCM}.job
316            sed -i "s/^k=-\?[0-9]\+$/k=$(echo "$ii - $2 + 2" | bc)/" PCMrun${iPCM}.job
317            if [[ "$scheduler" == "SLURM" ]]; then
318                jobID=$(sbatch --parsable PCMrun${iPCM}.job)
319            elif [[ "$scheduler" == "PBS" ]]; then
320                jobID=$(qsub PCMrun${iPCM}.job | cut -d. -f1)
321            fi
322            # Create a file to cancel the dependent jobs of the cycle
323            echo "#!/bin/bash" > kill_launchPEM.sh
324            chmod +x kill_launchPEM.sh
325            echo $kill_job $jobID >> kill_launchPEM.sh
326        fi
327        ((iPCM++))
328        ((ii++))
329    else
330        endlaunch
331    fi
332    for ((i = $ii; i <= $2; i++)); do
333        if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then
334            echo "Run \"PCM $iPCM\" ($i/$2)"
335            if [ $1 -eq 0 ]; then # Mode: processing scripts
336                sed -i "s/^k=-\?[0-9]\+$/k=$(echo "$i - $2 + 2" | bc)/" PCMrun.job
337                ./PCMrun.job
338                if [ $? -ne 0 ]; then
339                    errlaunch
340                fi
341            else # Mode: submitting jobs
342                cp PCMrun.job PCMrun${iPCM}.job
343                sed -i -E "/^$name_job/s/(.*[^0-9])([0-9]+)(_[^0-9]*)?$/\1${iPCM}\3/" PCMrun${iPCM}.job
344                sed -i "s/^k=-\?[0-9]\+$/k=$(echo "$i - $2 + 2" | bc)/" PCMrun${iPCM}.job
345                if [[ "$scheduler" == "SLURM" ]]; then
346                    jobID=$(sbatch --parsable --dependency=afterok:${jobID} PCMrun${iPCM}.job)
347                elif [[ "$scheduler" == "PBS" ]]; then
348                    jobID=$(qsub -W depend=afterok:${jobID} PCMrun${iPCM}.job | cut -d. -f1)
349                fi
350                echo $kill_job $jobID >> kill_launchPEM.sh
351            fi
352            ((iPCM++))
353        else
354            endlaunch
355        fi
356    done
357}
358
359# To submit the PEM run
360# arg1: launching mode
361submitPEM() {
362    if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then
363        echo "Run \"PEM $iPEM\""
364        if [ $1 -eq 0 ]; then # Mode: processing scripts
365            ./PEMrun.job
366            if [ $? -ne 0 ]; then
367                errlaunch
368            fi
369        else # Mode: submitting jobs
370            sed -i -E "/^$name_job/s/(.*[^0-9])([0-9]+)(_[^0-9]*)?$/\1${iPEM}\3/" PEMrun.job
371            if [[ "$scheduler" == "SLURM" ]]; then
372                jobID=$(sbatch --parsable PEMrun.job)
373            elif [[ "$scheduler" == "PBS" ]]; then
374                jobID=$(qsub PEMrun.job | cut -d. -f1)
375            fi
376            # Create a file to cancel the dependent jobs of the cycle
377            echo "#!/bin/bash" > kill_launchPEM.sh
378            chmod +x kill_launchPEM.sh
379            echo $kill_job $jobID >> kill_launchPEM.sh
380        fi
381    else
382        endlaunch
383    fi
384}
385
386# To make one cycle of PCM and PEM runs
387# arg1: launching mode
388# arg2: number of PCM runs to launch
389# arg3: local number of the PCM run from which to start (optional)
390cyclelaunch() {
391    # PCM runs
392    submitPCM $1 $2 $3
393
394    # PEM run
395    if [ $(echo "$i_myear < $n_myear" | bc -l) -eq 1 ]; then
396        echo "Run \"PEM $iPEM\""
397        if [ $1 -eq 0 ]; then # Mode: processing scripts
398            ./PEMrun.job
399            if [ $? -ne 0 ]; then
400                errlaunch
401            fi
402        else # Mode: submitting jobs
403            sed -i -E "/^$name_job/s/(.*[^0-9])([0-9]+)(_[^0-9]*)?$/\1${iPEM}\3/" PEMrun.job
404            if [[ "$scheduler" == "SLURM" ]]; then
405                jobID=$(sbatch --parsable --dependency=afterok:${jobID} PEMrun.job)
406            elif [[ "$scheduler" == "PBS" ]]; then
407                jobID=$(qsub -W depend=afterok:${jobID} PEMrun.job | cut -d. -f1)
408            fi
409            echo $kill_job $jobID >> kill_launchPEM.sh
410        fi
411    else
412        endlaunch
413    fi
414}
415
416# To clean files after the starting run of the relaunch
417# arg1: file name prefix to clean
418# arg2: file name extension to clean
419# arg3: file number from which to clean
420cleanfiles() {
421    prefix=$1
422    extension=$2
423    if [ -z "$extension" ]; then
424        for file in ${prefix}*; do
425            num=${file#$prefix}
426            if [[ $num =~ ^[0-9]+$ ]] && [ $num -gt $3 ]; then
427                rm $file
428            fi
429        done
430    else
431        for file in ${prefix}*${extension}; do
432            num=${file#$prefix}
433            num=${num%$extension}
434            if [[ $num =~ ^[0-9]+$ ]] && [ $num -gt $3 ]; then
435                rm $file
436            fi
437        done
438    fi
439}
440
441# To relaunch from PCM run
442# arg1: launching mode
443relaunchPCM() {
444    iPCM=$(($irelaunch + 1))
445    cleanfiles diags/diagfi .nc $irelaunch
446    cleanfiles diags/diagsoil .nc $irelaunch
447    cleanfiles diags/Xoutdaily4pem .nc $irelaunch
448    cleanfiles diags/Xoutyearly4pem .nc $irelaunch
449    cleanfiles logs/runPCM .log $irelaunch
450    cleanfiles starts/restart1D .txt $irelaunch
451    cleanfiles starts/restart .nc $irelaunch
452    cleanfiles starts/restartfi .nc $irelaunch
453    cp starts/restartfi${irelaunch}.nc startfi.nc
454    if [ -f "starts/restart${irelaunch}.nc" ]; then
455        cp starts/restart${irelaunch}.nc start.nc
456    elif [ -f "starts/restart1D${irelaunch}.txt" ]; then
457        cp starts/restart1D${irelaunch}.txt start1D.txt
458    fi
459    if [ $irelaunch -le $nPCM_ini ]; then
460        # PCM relaunch during the initialization cycle
461        iPEM=1
462        i_myear=0
463        sed -i "1s/.*/$i_myear $n_myear $convert_years $iPCM $iPEM $nPCM $nPCM_ini/" launchPEM.info
464        cleanfiles diags/diagpem .nc $(($iPEM - 1))
465        cleanfiles diags/diagsoilpem .nc $(($iPEM - 1))
466        cleanfiles logs/runPEM .log $(($iPEM - 1))
467        cleanfiles starts/restart1D_postPEM .txt $(($iPEM - 1))
468        cleanfiles starts/restart_postPEM .nc $(($iPEM - 1))
469        cleanfiles starts/restartfi_postPEM .nc $(($iPEM - 1))
470        cleanfiles starts/restartpem .nc $(($iPEM - 1))
471        rm -f startpem.nc
472        if [ -f "starts/startpem.nc" ]; then
473            cp starts/startpem.nc .
474        fi
475        if [ $irelaunch -eq $(($nPCM_ini - 1)) ]; then
476            cp diags/Xoutdaily4pem${irelaunch}.nc Xoutdaily4pem_Y1.nc
477            cp diags/Xoutyearly4pem${irelaunch}.nc Xoutyearly4pem_Y1.nc
478            cyclelaunch $1 $nPCM_ini $iPCM
479        elif [ $irelaunch -eq $nPCM_ini ]; then
480            cp diags/Xoutdaily4pem$(($irelaunch - 1)).nc Xoutdaily4pem_Y1.nc
481            cp diags/Xoutyearly4pem$(($irelaunch - 1)).nc Xoutyearly4pem_Y1.nc
482            cp diags/Xoutdaily4pem${irelaunch}.nc Xoutdaily4pem_Y2.nc
483            cp diags/Xoutyearly4pem${irelaunch}.nc Xoutyearly4pem_Y2.nc
484            submitPEM $1 # The next job is a PEM run
485        else
486            cyclelaunch $1 $nPCM_ini $iPCM
487        fi
488    else
489        # PCM relaunch during a cycle
490        iPEM=$(echo "($iPCM - $nPCM_ini)/$nPCM + 1" | bc)
491        il=$(echo "($irelaunch - $nPCM_ini + 1)%$nPCM + 1" | bc)
492        i_myear=$(awk "NR==$iPEM {printf \"%s\n\", \$3}" "launchPEM.info")
493        sed -i "1s/.*/$i_myear $n_myear $convert_years $iPCM $iPEM $nPCM $nPCM_ini/" launchPEM.info
494        cleanfiles diags/diagpem .nc $(($iPEM - 1))
495        cleanfiles diags/diagsoilpem .nc $(($iPEM - 1))
496        cleanfiles logs/runPEM .log $(($iPEM - 1))
497        cleanfiles starts/restart1D_postPEM .txt $(($iPEM - 1))
498        cleanfiles starts/restart_postPEM .nc $(($iPEM - 1))
499        cleanfiles starts/restartfi_postPEM .nc $(($iPEM - 1))
500        cleanfiles starts/restartpem .nc $(($iPEM - 1))
501        cp starts/restartpem$(($iPEM - 1)).nc startpem.nc
502        if [ $il -eq $(($nPCM - 1)) ]; then # Second to last PCM run
503            cp diags/Xoutdaily4pem${irelaunch}.nc Xoutdaily4pem_Y1.nc
504            cp diags/Xoutyearly4pem${irelaunch}.nc Xoutyearly4pem_Y1.nc
505            cyclelaunch $1 $nPCM $(($il + 1))
506        elif [ $il -eq $nPCM ]; then # Last PCM run so the next job is a PEM run
507            cp diags/Xoutdaily4pem$(($irelaunch - 1)).nc Xoutdaily4pem_Y1.nc
508            cp diags/Xoutyearly4pem$(($irelaunch - 1)).nc Xoutyearly4pem_Y1.nc
509            cp diags/Xoutdaily4pem${irelaunch}.nc Xoutdaily4pem_Y2.nc
510            cp diags/Xoutyearly4pem${irelaunch}.nc Xoutyearly4pem_Y2.nc
511            submitPEM $1
512        else
513            cyclelaunch $1 $nPCM $(($il + 1))
514        fi
515    fi
516}
517
518# To relaunch from PEM run
519# arg1: launching mode
520relaunchPEM() {
521    iPEM=$(echo "$irelaunch + 1" | bc)
522    iPCM=$(echo "$nPCM_ini + $nPCM*($irelaunch - 1) + 1" | bc)
523    i_myear=$(awk "NR==$iPEM {printf \"%s\n\", \$3}" "launchPEM.info")
524    sed -i "1s/.*/$i_myear $n_myear $convert_years $iPCM $iPEM $nPCM $nPCM_ini/" launchPEM.info
525    cleanfiles diags/diagfi .nc $(($iPCM - 1))
526    cleanfiles diags/diagsoil .nc $(($iPCM - 1))
527    cleanfiles logs/runPCM .log $(($iPCM - 1))
528    cleanfiles starts/restart1D .txt $(($iPCM - 1))
529    cleanfiles starts/restart .nc $(($iPCM - 1))
530    cleanfiles starts/restartfi .nc $(($iPCM - 1))
531    cleanfiles diags/Xoutdaily4pem .nc $(($iPCM - 1))
532    cleanfiles diags/Xoutyearly4pem .nc $(($iPCM - 1))
533    cleanfiles diags/diagpem .nc $irelaunch
534    cleanfiles diags/diagsoilpem .nc $irelaunch
535    cleanfiles logs/runPEM .log $irelaunch
536    cleanfiles starts/restart1D_postPEM .txt $irelaunch
537    cleanfiles starts/restart_postPEM .nc $irelaunch
538    cleanfiles starts/restartfi_postPEM .nc $irelaunch
539    cleanfiles starts/restartpem .nc $irelaunch
540    cp starts/restartpem${irelaunch}.nc startpem.nc
541    cp starts/restartfi_postPEM${irelaunch}.nc startfi.nc
542    if [ -f "starts/restart_postPEM${irelaunch}.nc" ]; then
543        cp starts/restart_postPEM${irelaunch}.nc start.nc
544    elif [ -f "starts/restart1D_postPEM${irelaunch}.txt" ]; then
545        cp starts/restart1D_postPEM${irelaunch}.txt start1D.txt
546    fi
547    cyclelaunch $1 $nPCM
548}
Note: See TracBrowser for help on using the repository browser.