source: trunk/libIGCM/libIGCM_sys/libIGCM_sys_cesium.ksh @ 218

Last change on this file since 218 was 217, checked in by sdipsl, 14 years ago

Avoid side effect with user environment. Do not define read-only varible potentially defined by system environment.

  • Property svn:keywords set to Date Author Revision
File size: 34.4 KB
Line 
1#!/bin/ksh
2
3#**************************************************************
4# Author: Sebastien Denvil, Martial Mancip
5# Contact: Martial.Mancip_ipsl.jussieu.fr
6# $Date$
7# $Author$
8# $Revision$
9# IPSL (2006)
10#  This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC
11# History:
12# Modification:
13#
14#**************************************************************
15
16#=========================================================
17# The documentation of this file can be automatically generated
18# if you use the prefix #D- for comments to be extracted.
19# Extract with command: cat lib* | grep "^#D-" | cut -c "4-"
20#=========================================================
21
22#D-#==================================================
23#D-LibIGCM_sys for Cesium
24#D-#==================================================
25#D-
26#D- This ksh library if a layer under some usefull
27#D-environment variables and shell commands.
28#D-All those definitions depend on host particularities.
29#D-It manages a stack mechanism and test validity of operations.
30#D-All function described bellow must be prefixed by IGCM_sys.
31
32#====================================================
33# libIGCM_sys PARAMETERS
34#====================================================
35
36#====================================================
37# set DEBUG_sys to true to output calls of function
38typeset -r DEBUG_sys=${DEBUG_sys:=true}
39
40#====================================================
41# Turn in dry run mode ? (sys_Put_Rest, sys_Put_Out, sys_Get)
42typeset -r DRYRUN=${DRYRUN:=0}
43
44# YOU MUST COMPILE YOUR EXE FILES FOR DRYRUN MODE !
45# -------------------------------------------------------------------------------------
46# | DRYRUN=  |  Date computations, | sys_Get    |  Exe    | sys_Put_Out; sys_Put_Rest |
47# |          |  Cp/Exe param files |            |  Chmod  |                           |
48# |          |      Qsub           |            |         |                           |
49# -------------------------------------------------------------------------------------
50# |    0     |       yes           |    yes     |  yes    |      yes                  |
51# -------------------------------------------------------------------------------------
52# |    1     |       yes           |    yes     |  yes    |      no                   |
53# -------------------------------------------------------------------------------------
54# |    2     |       yes           |    yes     |  no     |      no                   |
55# -------------------------------------------------------------------------------------
56# |    3     |       yes           |    no      |  no     |      no                   |
57# -------------------------------------------------------------------------------------
58
59#=====================================================
60# Global Variables :
61#=====================================================
62# Language : "fr" or "en"
63typeset -r MYLANG="fr"
64
65#=====================================================
66# Host and user names
67# $hostname ou hostname
68typeset  HOST=${HOST:=$( hostname ) }
69# $username ou whoami
70typeset  LOGIN=${LOGIN:=$( whoami ) }
71
72#D-
73#D-#==================================================
74#D-Program used in libIGCM
75#D-#==================================================
76
77# rsync with path
78typeset -r RSYNC=/usr/bin/rsync
79# RSYNC_opt args to rsync
80typeset -r RSYNC_opt="-va"
81# ie storage filesystem
82typeset -r RHOST=cesium
83
84#====================================================
85# Source and load what we need
86#====================================================
87. /etc/profile
88
89#====================================================
90# Source Ferret
91#====================================================
92. /home/cont003/p86ipsl/.atlas_env_cesium_ksh
93
94#====================================================
95# NCO netCDF3
96#====================================================
97module load netcdf/3.6.3
98module load antlr/2.7.7
99module load dap++/3.8.2
100module load gsl/1.12
101module load hdf5/1.8.2
102module load udunits/2.1.5
103module load nc-dap/3.7.3
104module load nco/3.9.8_netcdf3
105
106#------------------------------------------------------
107# CDO netCDF3
108#------------------------------------------------------
109module load cdo/1.3.2
110
111#------------------------------------------------------
112# CDAT
113#------------------------------------------------------
114module load cdat/5.1.0
115
116#====================================================
117# Specific for ocean additionnal diagnostic
118export FER_GO="$FER_GO /home/cont003/p86denv/IGCM_POST_UTIL/JNL /home/cont003/p86denv/GRAF /home/cont003/p86denv/GRAF/GO"
119export FER_PALETTE="$FER_PALETTE /home/cont003/p86denv/GRAF/PALET"
120
121#====================================================
122# Host specific DIRECTORIES
123#====================================================
124
125#====================================================
126#- R_EXE   (==> BIN_DIR = ${MODIPSL}/bin )
127typeset -r R_EXE="${MODIPSL}/bin"
128
129#====================================================
130# For interactive jobs on cesium
131PBS_O_WORKDIR=${PBS_O_WORKDIR:=$(pwd)}
132
133#====================================================
134#- SUBMIT_DIR : submission dir
135typeset SUBMIT_DIR=${SUBMIT_DIR:=${PBS_O_WORKDIR}}
136
137#====================================================
138#- ARCHIVE
139typeset -r ARCHIVE=${DMFDIR}
140
141#====================================================
142#- IN
143typeset -r R_IN=${R_IN:=/dmnfs/cont003/p86ipsl/IGCM}
144
145#====================================================
146#- OUT
147typeset -r R_OUT=${ARCHIVE}/IGCM_OUT
148
149#====================================================
150#- OUT_SCR (ONLY FOR double copy an scratch)
151typeset -r R_OUT_SCR=${SCRATCHDIR}/IGCM_OUT
152
153#====================================================
154#- OUT_POST
155typeset -r R_OUT_POST=${SCRATCHDIR}/IGCM_OUT
156
157#====================================================
158#- RUN_DIR_PATH : Temporary working directory (=> TMP)
159typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=${SCRATCHDIR}/${PBS_JOBID}}
160
161#====================================================
162#- Max number of arguments passed to nco operator or demigration command
163UNIX_MAX_LIMIT=360
164
165#D-#==================================================
166#D-function IGCM_sys_RshMaster
167#D-* Purpose: Just a fake command to wrapp
168#D-           IGCM_card call in post-treatment
169#D-           Ulam do not see brodie filesystem
170#D-           Cesium do not see all mercure filesystem
171#D-           That's why we need this hack.
172#D-* Examples:
173#D-
174function IGCM_sys_RshMaster {
175    #set -vx
176    IGCM_debug_PushStack "IGCM_sys_RshMaster" $@
177    ssh ${MASTER} exec /bin/ksh <<-EOF
178    export libIGCM=${libIGCM_SX}
179    export DEBUG_debug=${DEBUG_debug}
180    . ${libIGCM_SX}/libIGCM_debug/libIGCM_debug.ksh
181    . ${libIGCM_SX}/libIGCM_card/libIGCM_card.ksh
182    ${@}
183EOF
184    if [ $? -gt 0 ] ; then
185        echo "IGCM_sys_RshMaster : erreur."
186        IGCM_debug_Exit "IGCM_sys_RshMaster"
187    fi
188    IGCM_debug_PopStack "IGCM_sys_RshMaster"
189}
190
191#D-#==================================================
192#D-function IGCM_sys_RshArchive
193#D-* Purpose: Archive rsh command
194#D-* Examples:
195#D-
196function IGCM_sys_RshArchive {
197    IGCM_debug_PushStack "IGCM_sys_RshArchive" $@
198    /bin/ksh <<-EOF
199    ${@}
200EOF
201    if [ $? -gt 0 ] ; then
202        echo "IGCM_sys_RshArchive : erreur."
203        IGCM_debug_Exit "IGCM_sys_RshArchive"
204    fi
205    IGCM_debug_PopStack "IGCM_sys_RshArchive"
206}
207
208#D-#==================================================
209#D-function IGCM_sys_RshPost
210#D-* Purpose: Master rsh command
211#D-* Examples:
212#D-
213function IGCM_sys_RshPost {
214    IGCM_debug_PushStack "IGCM_sys_RshPost" $@
215    if ( $DEBUG_sys ) ; then
216        echo "IGCM_sys_RshPost :" $@
217    fi
218    /bin/ksh ${@}
219    if [ $? -gt 0 ] ; then
220        echo "IGCM_sys_RshPost : erreur."
221        IGCM_debug_Exit "IGCM_sys_RshPost"
222    fi
223    IGCM_debug_PopStack "IGCM_sys_RshPost"
224}
225
226#D-#==================================================
227#D-function IGCM_sys_Mkdir
228#D-* Purpose: Master locale mkdir command
229#D-* Examples:
230#D-
231function IGCM_sys_Mkdir {
232    IGCM_debug_PushStack "IGCM_sys_Mkdir" $@
233    if ( $DEBUG_sys ) ; then
234        echo "IGCM_sys_Mkdir :" $@
235    fi
236    if [ ! -d ${1} ]; then
237        \mkdir -p $1
238        if [ $? -gt 0 ] ; then
239            echo "IGCM_sys_Mkdir : erreur."
240            IGCM_debug_Exit "IGCM_sys_Mkdir"
241        fi
242    fi
243    # vérification :
244    if [ ! -d ${1} ] ; then
245        echo "IGCM_sys_Mkdir : erreur."
246        IGCM_debug_Exit "IGCM_sys_Mkdir"
247    fi
248    IGCM_debug_PopStack "IGCM_sys_Mkdir"
249}
250
251#D-#==================================================
252#D-function IGCM_sys_MkdirArchive
253#D-* Purpose: Mkdir on Archive
254#D-* Examples:
255#D-
256function IGCM_sys_MkdirArchive {
257    IGCM_debug_PushStack "IGCM_sys_MkdirArchive" $@
258    if ( $DEBUG_sys ) ; then
259        echo "IGCM_sys_MkdirArchive :" $@
260    fi
261    #- creation de repertoire sur le serveur fichier
262    if [ ! -d ${1} ]; then 
263        \mkdir -p $1
264        if [ $? -gt 0 ] ; then
265            echo "IGCM_sys_MkdirArchive : erreur."
266            IGCM_debug_Exit "IGCM_sys_MkdirArchive"
267        fi
268    fi
269    IGCM_debug_PopStack "IGCM_sys_MkdirArchive"
270}
271
272#D-#==================================================
273#D-function IGCM_sys_MkdirWork
274#D-* Purpose: Mkdir on Work
275#D-* Examples:
276#D-
277function IGCM_sys_MkdirWork {
278    IGCM_debug_PushStack "IGCM_sys_MkdirWork" $@
279    if ( $DEBUG_sys ) ; then
280        echo "IGCM_sys_MkdirWork :" $@
281    fi
282    #- creation de repertoire sur le serveur fichier
283    if [ ! -d ${1} ]; then 
284        \mkdir -p $1
285        if [ $? -gt 0 ] ; then
286            echo "IGCM_sys_MkdirWork : erreur."
287            IGCM_debug_Exit "IGCM_sys_MkdirWork"
288        fi
289    fi
290    IGCM_debug_PopStack "IGCM_sys_MkdirWork"
291}
292
293#D-#==================================================
294#D-function IGCM_sys_Cd
295#D-* Purpose: master cd command
296#D-* Examples:
297#D-
298function IGCM_sys_Cd {
299    IGCM_debug_PushStack "IGCM_sys_Cd" $@
300    if ( $DEBUG_sys ) ; then
301        echo "IGCM_sys_Cd :" $@
302    fi
303    \cd $1
304    if [ $? -gt 0 ] ; then
305        echo "IGCM_sys_Cd : erreur."
306        IGCM_debug_Exit "IGCM_sys_Cd"
307    fi
308    IGCM_debug_PopStack "IGCM_sys_Cd"
309}
310
311#D-#==================================================
312#D-function IGCM_sys_Chmod
313#D-* Purpose: Chmod
314#D-* Examples:
315#D-
316function IGCM_sys_Chmod {
317    IGCM_debug_PushStack "IGCM_sys_Chmod" -- $@
318    if ( $DEBUG_sys ) ; then
319        echo "IGCM_sys_Chmod :" $@
320    fi
321    if [ $DRYRUN -le 1 ]; then
322        \chmod $@
323        if [ $? -gt 0 ] ; then
324            echo "IGCM_sys_Chmod : erreur."
325            IGCM_debug_Exit "IGCM_sys_Chmod"
326        fi
327    else
328        ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack
329    fi
330    IGCM_debug_PopStack "IGCM_sys_Chmod"
331}
332
333#D-#==================================================
334#D-function IGCM_sys_FileSize
335#D-* Purpose: Filesize
336#D-* Examples:
337#D-
338function IGCM_sys_FileSize {
339    IGCM_debug_PushStack "IGCM_sys_FileSize" $@
340
341    typeset sizeF
342    set +A sizeF -- $( ls -la ${1} )
343    if [ $? -gt 0 ] ; then
344        IGCM_debug_Exit "IGCM_sys_FileSize"
345    fi
346    eval ${2}=${sizeF[4]}
347
348    IGCM_debug_PopStack "IGCM_sys_FileSize"
349}
350
351#D-#==================================================
352#D-function IGCM_sys_TestDir
353#D-* Purpose: Test Directory that must exists
354#D-* Examples:
355#D-
356function IGCM_sys_TestDir {
357    IGCM_debug_PushStack "IGCM_sys_TestDir" $@
358    if ( $DEBUG_sys ) ; then
359        echo "IGCM_sys_TestDir :" $@
360    fi
361    typeset ExistFlag
362    ExistFlag=$( [ -d $1 ] && echo 0 || echo 1 )
363    IGCM_debug_PopStack "IGCM_sys_TestDir"
364
365    return ${ExistFlag}
366}
367
368#D-#==================================================
369#D-function IGCM_sys_TestDirArchive
370#D-* Purpose: Test Directory that must exists on Archive
371#D-* Examples:
372#D-
373function IGCM_sys_TestDirArchive {
374    IGCM_debug_PushStack "IGCM_sys_TestDirArchive" $@
375    if ( $DEBUG_sys ) ; then
376        echo "IGCM_sys_TestDirArchive :" $@
377    fi
378    typeset ExistFlag
379    ExistFlag=$( [ -d $1 ] && echo 0 || echo 1 )
380    IGCM_debug_PopStack "IGCM_sys_TestDirArchive"
381
382    return ${ExistFlag}
383}
384
385#D-#==================================================
386#D-function IGCM_sys_TestFileArchive
387#D-* Purpose: Test file that must NOT EXISTS on Archive
388#D-* Examples:
389#D-
390function IGCM_sys_TestFileArchive {
391    IGCM_debug_PushStack "IGCM_sys_TestFileArchive" $@
392    if ( $DEBUG_sys ) ; then
393        echo "IGCM_sys_TestFileArchive :" $@
394    fi
395    typeset ExistFlag
396    ExistFlag=$( [ -f $1 ] && echo 0 || echo 1 )
397    IGCM_debug_PopStack "IGCM_sys_TestFileArchive"
398
399    return ${ExistFlag}
400}
401
402#D-#==================================================
403#D-function IGCM_sys_CountFileArchive
404#D-* Purpose: Count files on Archive filesystem
405#D-* Examples:
406#D-
407function IGCM_sys_CountFileArchive {
408    IGCM_debug_PushStack "IGCM_sys_CountFileArchive" $@
409    ls ${@} 2>/dev/null | wc -l
410    if [ $? -gt 0 ] ; then
411        echo "IGCM_sys_CountFileArchive : erreur."
412    fi
413    IGCM_debug_PopStack "IGCM_sys_CountFileArchive"
414}
415
416#D-#==================================================
417#D-function IGCM_sys_Tree
418#D-* Purpose: Tree directories with files on ${ARCHIVE}
419#D-* Examples: IGCM_sys_Tree ${R_IN} ${R_OUT}
420#D-
421function IGCM_sys_Tree {
422    IGCM_debug_PushStack "IGCM_sys_Tree" $@
423    if ( $DEBUG_sys ) ; then
424        echo "IGCM_sys_Tree :" $@
425    fi
426
427    \tree -f $@
428
429    IGCM_debug_PopStack "IGCM_sys_Tree"
430}
431
432#D-#==================================================
433#D-function IGCM_sys_Tar
434#D-* Purpose: master un-tar command
435#D-* Examples:
436#D-
437function IGCM_sys_Tar {
438    IGCM_debug_PushStack "IGCM_sys_Tar" $@
439    if ( $DEBUG_sys ) ; then
440        echo "IGCM_sys_Tar :" $@
441    fi
442    \tar cvf $@
443    if [ $? -gt 0 ] ; then
444        echo "IGCM_sys_Tar : erreur."
445        IGCM_debug_Exit "IGCM_sys_Tar"
446    fi
447    \tar tvf $1
448
449    IGCM_debug_PopStack "IGCM_sys_Tar"
450}
451
452#D-#==================================================
453#D-function IGCM_sys_UnTar
454#D-* Purpose: master un-tar command
455#D-* Examples:
456#D-
457function IGCM_sys_UnTar {
458    IGCM_debug_PushStack "IGCM_sys_UnTar" $@
459    if ( $DEBUG_sys ) ; then
460        echo "IGCM_sys_UnTar :" $@
461    fi
462    \tar xvf $1
463    if [ $? -gt 0 ] ; then
464        echo "IGCM_sys_UnTar : erreur."
465        IGCM_debug_Exit "IGCM_sys_UnTar"
466    fi
467    IGCM_debug_PopStack "IGCM_sys_UnTar"
468}
469
470#D-#==================================================
471#D-function IGCM_sys_QsubPost
472#D-* Purpose: Qsub new job on scalaire
473#D-* Examples:
474#D-
475function IGCM_sys_QsubPost {
476    IGCM_debug_PushStack "IGCM_sys_QsubPost" $@
477    if ( $DEBUG_sys ) ; then
478        echo "IGCM_sys_QsubPost :" $@
479    fi
480    /usr/local/bin/ccc_msub -o ${POST_DIR}/$1.${PeriodDateEnd}.${TsTask}.${CompToRead}.${FlagToRead}.out -e ${POST_DIR}/$1.${PeriodDateEnd}.${TsTask}.${CompToRead}.${FlagToRead}.e.out -E "-v ${listVarEnv}" ${libIGCM}/$1.job
481    if [ $? -gt 0 ] ; then
482        echo "IGCM_sys_QsubPost : erreur " $@
483        IGCM_debug_Exit "IGCM_sys_QsubPost"
484    fi
485    IGCM_debug_PopStack "IGCM_sys_QsubPost"
486}
487
488#D-*************************
489#D- File transfer functions
490#D-*************************
491#D-
492
493#D-#==================================================
494#D-function IGCM_sys_Rsync_out
495#D-* Purpose: treat return val of rsync
496#D-* Examples: IGCM_sys_Rsync_out out_RET_rsync
497#D-  Error values and explanations can depend on your system version.
498function IGCM_sys_Rsync_out {
499    RET=$1
500    if [ ! $RET ] ; then
501        echo "rsync error !"
502    fi
503
504    if [ $MYLANG = "fr" ]; then
505        case $RET in
506            0)  return ;;
507            1)  echo "Erreur de rsync ; RERR_SYNTAX : "
508                echo "Erreur de syntaxe ou d'utilisation."
509                return;;
510            2)  echo "Erreur de rsync ; RERR_PROTOCOL : "
511                echo "Incompatibilité de protocole."
512                return;;
513            3)  echo "Erreur de rsync ; RERR_FILESELECT 3"
514                echo "Erreurs  lors  de  la  sélection des fichiers d'entrée sortie et"
515                echo "répertoires"
516                return;;
517            4)  echo "Erreur de rsync ; RERR_UNSUPPORTED"
518                echo "Action demandée non supportée : une tentative de manipulation de"
519                echo "fichiers  64-bits  sur une plate-forme qui ne les supporte pas a"
520                echo "été faite ; ou une option qui est supportée par le  client  mais"
521                echo "pas par le serveur a été spécifiée."
522                return;;
523            10) echo "Erreur de rsync ; RERR_SOCKETIO"
524                echo "Erreur dans le socket d'entrée sortie"
525                return;;
526            11) echo "Erreur de rsync ; RERR_FILEIO"
527                echo "Erreur d'entrée sortie fichier"
528                return;;
529            12) echo "Erreur de rsync ; RERR_STREAMIO"
530                echo "Erreur dans flux de donnée du protocole rsync"
531                return;;
532            13) echo "Erreur de rsync ; RERR_MESSAGEIO"
533                echo "Erreur avec les diagnostics du programme"
534                return;;
535            14) echo "Erreur de rsync ; RERR_IPC"
536                echo "Erreur dans le code IPC"
537                return;;
538            20) echo "Erreur de rsync ; RERR_SIGNAL"
539                echo "SIGUSR1 ou SIGINT reçu"
540                return;;
541            21) echo "Erreur de rsync ; RERR_WAITCHILD"
542                echo "Une erreur retournée par waitpid()"
543                return;;
544            22) echo "Erreur de rsync ; RERR_MALLOC"
545                echo "Erreur lors de l'allocation des tampons de mémoire de coeur"
546                return;;
547            23) echo ""
548                echo "Erreur fichier inexistant"
549                return;;
550            30) echo "Erreur de rsync ; RERR_TIMEOUT"
551                echo "Temps d'attente écoulé dans l'envoi/réception de données"
552                return;;
553            *)  echo "Erreur de rsync : code de retour de rsync inconnu :" $RET
554                return;;
555        esac
556    elif [ $MYLANG = "en" ] ; then
557        case $RET in
558            0)  return;;               
559            1)  echo "rsync error : Syntax or usage error "
560                return;;
561            2)  echo "rsync error : Protocol incompatibility "
562                return;;
563            3)  echo "rsync error : Errors selecting input/output files, dirs"
564                return;;
565            4)  echo "rsync error : Requested action not supported: an attempt"
566                echo "was made to manipulate 64-bit files on a platform that cannot support"
567                echo "them; or an option was specified that is supported by the client and"
568                echo "not by the server."
569                return;;
570            5)  echo "rsync error : Error starting client-server protocol"
571                return;;
572            10) echo "rsync error : Error in socket I/O "
573                return;;
574            11) echo "rsync error : Error in file I/O "
575                return;;
576            12) echo "rsync error : Error in rsync protocol data stream "
577                return;;
578            13) echo "rsync error : Errors with program diagnostics "
579                return;;
580            14) echo "rsync error : Error in IPC code "
581                return;;
582            20) echo "rsync error : Received SIGUSR1 or SIGINT "
583                return;;
584            21) echo "rsync error : Some error returned by waitpid() "
585                return;;
586            22) echo "rsync error : Error allocating core memory buffers "
587                return;;
588            23) echo "rsync error : Partial transfer due to error"
589                return;;
590            24) echo "rsync error : Partial transfer due to vanished source files"
591                return;;
592            30) echo "rsync error : Timeout in data send/receive "
593                return;;
594            *)  echo "rsync error : return code of rsync unknown :" $RET
595                return;;
596        esac
597    else
598        echo "unknown language $MYLANG."
599        return
600    fi
601}
602   
603#D-#==================================================
604#D-function IGCM_sys_Cp
605#D-* Purpose: generic cp
606#D-* Examples:
607#D-
608function IGCM_sys_Cp {
609    IGCM_debug_PushStack "IGCM_sys_Cp" $@
610    if ( $DEBUG_sys ) ; then
611        echo "IGCM_sys_Cp :" $@
612    fi
613
614    typeset RET
615
616    echo cp $@ > out_rsync 2>&1
617    \cp $@ >> out_rsync 2>&1
618    RET=$?
619
620    if [ ${RET} -gt 0 ] ; then
621        echo "IGCM_sys_Cp : error."
622        cat out_rsync
623        IGCM_debug_Exit "IGCM_sys_Cp"
624    fi
625    IGCM_debug_PopStack "IGCM_sys_Cp"
626}
627
628#D-#==================================================
629#D-function IGCM_sys_Rm
630#D-* Purpose: generic rm
631#D-* Examples:
632#D-
633function IGCM_sys_Rm {
634    IGCM_debug_PushStack "IGCM_sys_Rm" -- $@
635    if ( $DEBUG_sys ) ; then
636        echo "IGCM_sys_Rm :" $@
637    fi
638
639    typeset RET
640
641    echo rm $@ > out_rsync 2>&1
642    \rm $@ >> out_rsync 2>&1
643    RET=$?
644
645    if [ ${RET} -gt 0 ] ; then
646        echo "IGCM_sys_Rm : error."
647        cat out_rsync
648        IGCM_debug_Exit "IGCM_sys_Rm"
649    fi
650    IGCM_debug_PopStack "IGCM_sys_Rm"
651}
652
653#D-#==================================================
654#D-function IGCM_sys_RmRunDir
655#D-* Purpose: rm tmpdir (dummy function most of the time batch
656#D-                      scheduler will do the job)
657#D-* Examples:
658#D-
659function IGCM_sys_RmRunDir {
660    IGCM_debug_PushStack "IGCM_sys_RmRunDir" -- $@
661    if ( $DEBUG_sys ) ; then
662        echo "IGCM_sys_RmRunDir :" $@
663    fi
664
665    typeset RET
666
667    echo rm $@ > out_rsync 2>&1
668    \rm $@ >> out_rsync 2>&1
669    RET=$?
670
671    if [ ${RET} -gt 0 ] ; then
672        echo "IGCM_sys_Rm : error."
673        cat out_rsync
674        IGCM_debug_Exit "IGCM_sys_Rm"
675    fi
676
677    IGCM_debug_PopStack "IGCM_sys_RmRunDir"
678}
679
680#D-#==================================================
681#D-function IGCM_sys_Mv
682#D-* Purpose: generic move
683#D-* Examples:
684#D-
685function IGCM_sys_Mv {
686    IGCM_debug_PushStack "IGCM_sys_Mv" $@
687    if ( $DEBUG_sys ) ; then
688        echo "IGCM_sys_Mv :" $@
689    fi
690
691    if [ $DRYRUN = 0 ]; then
692
693        typeset RET
694           
695        echo mv $@ > out_rsync 2>&1
696        \mv $@ >> out_rsync 2>&1
697        RET=$?
698   
699        if [ ${RET} -gt 0 ] ; then
700            echo "IGCM_sys_Mv : error in mv."
701            cat out_rsync
702            IGCM_debug_Exit "IGCM_sys_Mv"
703        fi
704    else
705        ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack
706    fi
707
708    IGCM_debug_PopStack "IGCM_sys_Mv"
709}
710
711#D-#==================================================
712#D-function IGCM_sys_Put_Dir
713#D-* Purpose: Copy a complete directory on $(ARCHIVE)
714#D-* Examples:
715#D-
716function IGCM_sys_Put_Dir {
717    IGCM_debug_PushStack "IGCM_sys_Put_Dir" $@
718    if ( $DEBUG_sys ) ; then
719        echo "IGCM_sys_Put_Dir :" $@
720    fi
721    if [ $DRYRUN = 0 ]; then
722        if [ ! -d ${1} ] ; then
723            echo "WARNING : IGCM_sys_Put_Dir ${1} DOES NOT EXIST ."
724            IGCM_debug_PopStack "IGCM_sys_Put_Dir"
725            return
726        fi
727
728        typeset RET
729
730        # Only if we use rsync
731        #IGCM_sys_TestDirArchive $( dirname $2 )
732        #
733        #USUAL WAY
734        \cp -r $1 $2 > out_rsync 2>&1
735        RET=$?
736
737        if [ ${RET} -gt 0 ] ; then
738            echo "IGCM_sys_Put_Dir : error."
739            cat out_rsync
740            IGCM_debug_Exit "IGCM_sys_Put_Dir"
741        fi
742    else
743        ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack
744    fi
745    IGCM_debug_PopStack "IGCM_sys_Put_Dir"
746}
747
748#D-#==================================================
749#D-function IGCM_sys_Get_Dir
750#D-* Purpose: Copy a complete directory from $(ARCHIVE)
751#D-* Examples:
752#D-
753function IGCM_sys_Get_Dir {
754    IGCM_debug_PushStack "IGCM_sys_Get_Dir" $@
755    if ( $DEBUG_sys ) ; then
756        echo "IGCM_sys_Get_Dir :" $@
757    fi
758    if [ $DRYRUN = 0 ]; then
759#       if [ ! -d ${1} ] ; then
760#           echo "WARNING : IGCM_sys_Get_Dir ${1} DOES NOT EXIST ."
761#           IGCM_debug_PopStack "IGCM_sys_Get_Dir"
762#           return
763#       fi
764
765        typeset RET
766
767        # Only if we use rsync
768        #IGCM_sys_TestDirArchive $( dirname $2 )
769        #
770        #USUAL WAY
771        \cp -r $1 $2 > out_rsync 2>&1
772        RET=$?
773
774        if [ ${RET} -gt 0 ] ; then
775            echo "IGCM_sys_Get_Dir : error."
776            cat out_rsync
777            IGCM_debug_Exit "IGCM_sys_Get_Dir"
778        fi
779    else
780        ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack
781    fi
782    IGCM_debug_PopStack "IGCM_sys_Get_Dir"
783}
784
785#D-#==================================================
786#D-function IGCM_sys_Get_Master
787#D-* Purpose: Copy a complete directory from MASTER filesystem
788#D-* Examples:
789#D-
790function IGCM_sys_Get_Master {
791    IGCM_debug_PushStack "IGCM_sys_Get_Master" $@
792    if ( $DEBUG_sys ) ; then
793        echo "IGCM_sys_Get_Master :" $@
794    fi
795    if [ $DRYRUN = 0 ]; then
796        TEST=$( IGCM_sys_RshMaster [ -d $1 ] && echo 1 || echo 0 )
797        if [ ${TEST} -ne 1 ] ; then
798            echo "WARNING : IGCM_sys_Get_Master ${1} DOES NOT EXIST ON ${MASTER}."
799            IGCM_debug_PopStack "IGCM_sys_Get_Master"
800            return
801        fi
802
803        typeset RET
804        sleep 60
805
806        #USUAL WAY
807        scp -r ${MASTER}:$1 $2 > out_rsync 2>&1
808        RET=$?
809
810        if [ ${RET} -gt 0 ] ; then
811            echo "IGCM_sys_Get_Master : error."
812            cat out_rsync
813            IGCM_debug_Exit "IGCM_sys_Get_Master"
814        fi
815    else
816        ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack
817    fi
818    IGCM_debug_PopStack "IGCM_sys_Get_Master"
819}
820
821#D-#==================================================
822#D-function IGCM_sys_Put_Out
823#D-* Purpose: Copy a file on $(ARCHIVE) after have chmod it in readonly
824#D-* Examples:
825#D-
826function IGCM_sys_Put_Out {
827    IGCM_debug_PushStack "IGCM_sys_Put_Out" $@
828    if ( $DEBUG_sys ) ; then
829        echo "IGCM_sys_Put_Out :" $@
830    fi
831    if [ $DRYRUN = 0 ]; then
832        if [ ! -f ${1} ] ; then
833            echo "WARNING : IGCM_sys_Put_Out ${1} DOES NOT EXIST ."
834            IGCM_debug_PopStack "IGCM_sys_Put_Out"
835            return 1
836        fi
837        #
838        IGCM_sys_MkdirArchive $( dirname $2 )
839        #
840        typeset RET
841        #
842        if [ X${JobType} = XRUN ] ; then
843            IGCM_sys_Chmod 444 ${1}
844        fi
845        #
846        # USUAL WAY
847        cp $1 $2 > out_rsync 2>&1
848        RET=$?
849
850#       #RSYNC WITH NETWORK RSH CALL
851#       echo ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${RHOST}:${2} > out_rsync 2>&1
852#       ${RSYNC} ${RSYNC_opt} -e ssh ${RUN_DIR}/$1 ${RHOST}:${2} >> out_rsync 2>&1
853
854#       #RSYNC WITH NFS USE
855#       echo ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} > out_rsync 2>&1
856#       ${RSYNC} ${RSYNC_opt} ${RUN_DIR}/$1 ${2} >> out_rsync 2>&1
857
858#       RET=$?
859#       IGCM_sys_Rsync_out $RET
860
861#       ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk out_rsync
862#       (( RET=RET+$? ))
863
864        if [ ${RET} -gt 0 ] ; then
865            echo "IGCM_sys_Put_Out : error."
866            cat out_rsync
867            IGCM_debug_Exit "IGCM_sys_Put_Out"
868        fi
869    else
870        ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack
871    fi
872    IGCM_debug_PopStack "IGCM_sys_Put_Out"
873    return 0
874}
875
876#D-#==================================================
877#D-function IGCM_sys_Get
878#D-* Purpose: Get a file from ${ARCHIVE}
879#D-* Examples: IGCM_sys_Get myfile /destpath/myfile_with_PREFIX
880#D-            IGCM_sys_Get /l Array_contain_myfiles /destpath/
881function IGCM_sys_Get {
882    IGCM_debug_PushStack "IGCM_sys_Get" $@
883
884    typeset DEST RET dm_liste ifile target file_work
885
886    if ( $DEBUG_sys ) ; then
887        echo "IGCM_sys_Get :" $@
888    fi
889    if [ $DRYRUN -le 2 ]; then
890        if [ X${1} = X'/l' ] ; then
891            # test if the first file is present in the old computation :
892            eval set +A dm_liste \${${2}}
893        else
894            eval set +A dm_liste ${1}
895        fi
896        eval DEST=\${${#}}
897
898        #=====================================================
899        #         COMMENT OUT DOUBLE COPY ON SCRATCHDIR
900        #=====================================================
901
902        # Is it an R_OUT file (not R_IN) ?
903        #echo ${dm_liste[0]} | grep "${R_OUT}" > /dev/null 2>&1
904        #if [ $? -eq 0 ] ; then
905        #    # Yes  ? then we try to get it in SCRATCHDIR
906        #    set +A file_work $( echo ${dm_liste[*]} | sed -e "s|${R_OUT}|${R_OUT_SCR}|g" )
907        #    if [ -f ${file_work[0]} ] ; then
908        #       IGCM_sys_Cp ${file_work[*]} ${DEST}
909        #       IGCM_debug_PopStack "IGCM_sys_Get"
910        #       return
911        #    fi
912        #fi
913
914        # test if the (first) file is present in the old computation :
915        IGCM_sys_TestFileArchive ${dm_liste[0]}
916        RET=$?
917        if [ ${RET} -gt 0 ] ; then
918            echo "IGCM_sys_Get, ERROR : regular file ${dm_liste[0]} DOES NOT EXIST ."
919            IGCM_debug_Exit "IGCM_sys_Get"
920            #IGCM_debug_PopStack "IGCM_sys_Get"
921            #return
922        fi
923
924        dmget ${dm_liste[*]} > out_rsync 2>&1
925        RET=$?
926        if [ ${RET} -gt 0 ] ; then
927            echo "WARNING IGCM_sys_Get : demigration error."
928            cat out_rsync
929            #IGCM_debug_Exit "IGCM_sys_Get"
930            #IGCM_debug_PopStack "IGCM_sys_Get"
931            #return
932        fi
933
934        #USUAL WAY
935        (( RET=0 ))
936        if [ X${1} = X'/l' ] ; then
937            (( RET=0 ))
938            for target in ${dm_liste[*]} ; do
939                local_file=$( basename ${target} )
940                \cp ${target} ${DEST}/${local_file} >> out_rsync 2>&1
941                (( RET = RET + $? ))
942            done
943        else
944            \cp ${dm_liste} ${DEST} >> out_rsync 2>&1
945            RET=$?
946        fi
947
948#       #RSYNC WITH NETWORK RSH CALL
949#       echo ${RSYNC} ${RSYNC_opt} -e ssh ${RHOST}:"${dm_liste}" ${RHOST}:${RUN_DIR}/${DEST} > out_rsync 2>&1
950#       ${RSYNC} ${RSYNC_opt} -e ssh ${RHOST}:"${dm_liste}" ${RHOST}:${RUN_DIR}/${DEST} >> out_rsync 2>&1
951
952#       #RSYNC WITH NFS USE
953#       echo ${RSYNC} ${RSYNC_opt} ${dm_liste} ${RUN_DIR}/${DEST} > out_rsync 2>&1
954#       ${RSYNC} ${RSYNC_opt} ${dm_liste} ${RUN_DIR}/${DEST} >> out_rsync 2>&1
955
956#       RET=$?
957#       IGCM_sys_Rsync_out $RET
958
959#       ${libIGCM}/libIGCM_sys/IGCM_analyse_rsync_out.awk out_rsync
960#       (( RET=RET+$? ))
961
962    else
963        ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack
964    fi
965    IGCM_debug_PopStack "IGCM_sys_Get"
966}
967
968#D-#==================================================
969#D-function IGCM_sys_Put_Dods
970#D-* Purpose: Put $(ARCHIVE) files on DODS internet protocole.
971#D-* Examples:
972#D-
973function IGCM_sys_Put_Dods {
974    IGCM_debug_PushStack "IGCM_sys_Put_Dods" $@
975    if ( $DEBUG_sys ) ; then
976        echo "IGCM_sys_Put_Dods :" $@
977    fi
978    if [ $DRYRUN = 0 ]; then
979        if [ ! -d ${R_SAVE}/${1} ] ; then
980            echo "WARNING : IGCM_sys_Put_Dods ${R_SAVE}/${1} DOES NOT EXIST ."
981            IGCM_debug_PopStack "IGCM_sys_Put_Dods"
982            return
983        fi
984
985        typeset RET
986        #
987        cd ${R_SAVE}
988        dods_rm public/${LOGIN}/${config_UserChoices_TagName}/${config_UserChoices_JobName}/${1} > /dev/null 2>&1
989        #/bin/chmod -R u+w  ${R_SAVE}/${1}
990        dods_cp ${1} public/${LOGIN}/${config_UserChoices_TagName}/${config_UserChoices_JobName} > /dev/null 2>&1
991        #/bin/chmod -R +rX ${R_SAVE}/${1}
992        #/bin/chmod -R a+rX /dmnfs/cont003/dods/public/${LOGIN}/${config_UserChoices_TagName}
993        #RET=$?
994        RET=0
995       
996        if [ ${RET} -gt 0 ] ; then
997            echo "IGCM_sys_Put_Dods : error."
998            IGCM_debug_Exit "IGCM_sys_Put_Dods"
999        fi
1000    else
1001        ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack
1002    fi
1003    IGCM_debug_PopStack "IGCM_sys_Put_Dods"
1004}
1005
1006############################################################## A FINIR !!
1007
1008#D-#==================================================
1009#D-function IGCM_sys_GetDate_FichWork
1010#D-* Purpose: donne la date filesys d'un fichier sur le filesystem WORK
1011#D-* Examples:
1012#D-
1013function IGCM_sys_GetDate_FichWork {
1014    IGCM_debug_PushStack "IGCM_sys_FichWork" $@
1015    if ( $DEBUG_sys ) ; then
1016        echo "IGCM_sys_GetDate_FichWork :" $@
1017    fi
1018    # donne la date filesys d'un fichier sur la machine work
1019    IGCM_debug_PopStack "IGCM_sys_FichWork"
1020}
1021
1022#D-#==================================================
1023#D-function IGCM_sys_GetDate_FichArchive
1024#D-* Purpose: donne la date filesys d'un fichier sur le filesystem ARCHIVE
1025#D-* Examples:
1026#D-
1027function IGCM_sys_GetDate_FichArchive {
1028    IGCM_debug_PushStack "IGCM_sys_FichArchive" $@
1029    if ( $DEBUG_sys ) ; then
1030        echo "IGCM_sys_GetDate_FichArchive :" $@
1031    fi
1032    IGCM_debug_PopStack "IGCM_sys_FichArchive"
1033}
1034
1035##############################################################
1036# REBUILD OPERATOR
1037
1038function IGCM_sys_rebuild {
1039    IGCM_debug_PushStack "IGCM_sys_rebuild" -- $@
1040    if ( $DEBUG_sys ) ; then
1041        echo "IGCM_sys_rebuild :" $@
1042    fi
1043    /home/cont003/p86ipsl/CESIUM/bin/rebuild -f -o $@
1044    if [ $? -gt 0 ] ; then
1045       echo "IGCM_sys_rebuild : erreur ${@}."
1046       IGCM_debug_Exit "rebuild"
1047    fi
1048
1049    IGCM_debug_PopStack "IGCM_sys_rebuild"
1050}
1051
1052##############################################################
1053# NCO OPERATOR
1054
1055function IGCM_sys_ncap {
1056    IGCM_debug_PushStack "IGCM_sys_ncap" -- $@
1057    if ( $DEBUG_sys ) ; then
1058        echo "IGCM_sys_ncap :" $@
1059    fi
1060    ncap $@
1061    if [ $? -gt 0 ] ; then
1062       echo "IGCM_sys_ncap : erreur ${@}."
1063#       IGCM_debug_Exit "ncap"
1064    fi
1065
1066    IGCM_debug_PopStack "IGCM_sys_ncap"
1067}
1068
1069ncatted=ncatted
1070# Problem with ksh and string passed in this function to ncatted !
1071# function IGCM_sys_ncatted {
1072#     IGCM_debug_PushStack "IGCM_sys_ncatted" -- $@
1073#     if ( $DEBUG_sys ) ; then
1074#       echo "IGCM_sys_ncatted :" $@
1075#     fi
1076#     ncatted $@
1077#     if [ $? -gt 0 ] ; then
1078#        echo "IGCM_sys_ncatted : erreur ${@}."
1079#        IGCM_debug_Exit "ncatted"
1080#     fi
1081
1082#     IGCM_debug_PopStack "IGCM_sys_ncatted"
1083# }
1084
1085function IGCM_sys_ncbo {
1086    IGCM_debug_PushStack "IGCM_sys_ncbo" -- $@
1087    if ( $DEBUG_sys ) ; then
1088        echo "IGCM_sys_ncbo :" $@
1089    fi
1090    ncbo $@
1091    if [ $? -gt 0 ] ; then
1092       echo "IGCM_sys_ncbo : erreur ${@}."
1093#       IGCM_debug_Exit "ncbo"
1094    fi
1095
1096    IGCM_debug_PopStack "IGCM_sys_ncbo"
1097}
1098
1099function IGCM_sys_ncdiff {
1100    IGCM_debug_PushStack "IGCM_sys_ncdiff" -- $@
1101    if ( $DEBUG_sys ) ; then
1102        echo "IGCM_sys_ncdiff :" $@
1103    fi
1104    ncdiff $@
1105    if [ $? -gt 0 ] ; then
1106       echo "IGCM_sys_ncdiff : erreur ${@}."
1107#       IGCM_debug_Exit "ncdiff"
1108    fi
1109
1110    IGCM_debug_PopStack "IGCM_sys_ncdiff"
1111}
1112
1113function IGCM_sys_ncea {
1114    IGCM_debug_PushStack "IGCM_sys_ncea" -- $@
1115    if ( $DEBUG_sys ) ; then
1116        echo "IGCM_sys_ncea :" $@
1117    fi
1118    ncea $@
1119    if [ $? -gt 0 ] ; then
1120       echo "IGCM_sys_ncea : erreur ${@}."
1121#       IGCM_debug_Exit "ncea"
1122    fi
1123
1124    IGCM_debug_PopStack "IGCM_sys_ncea"
1125}
1126
1127function IGCM_sys_ncecat {
1128    IGCM_debug_PushStack "IGCM_sys_ncecat" -- $@
1129    if ( $DEBUG_sys ) ; then
1130        echo "IGCM_sys_ncecat :" $@
1131    fi
1132    ncecat $@
1133    if [ $? -gt 0 ] ; then
1134       echo "IGCM_sys_ncecat : erreur ${@}."
1135#       IGCM_debug_Exit "ncecat"
1136    fi
1137
1138    IGCM_debug_PopStack "IGCM_sys_ncecat"
1139}
1140
1141function IGCM_sys_ncflint {
1142    IGCM_debug_PushStack "IGCM_sys_ncflint" -- $@
1143    if ( $DEBUG_sys ) ; then
1144        echo "IGCM_sys_ncflint :" $@
1145    fi
1146    ncflint $@
1147    if [ $? -gt 0 ] ; then
1148       echo "IGCM_sys_ncflint : erreur ${@}."
1149#       IGCM_debug_Exit "ncflint"
1150    fi
1151
1152    IGCM_debug_PopStack "IGCM_sys_ncflint"
1153}
1154
1155function IGCM_sys_ncks {
1156    IGCM_debug_PushStack "IGCM_sys_ncks" -- $@
1157    if ( $DEBUG_sys ) ; then
1158        echo "IGCM_sys_ncks :" $@
1159    fi
1160    ncks $@
1161    if [ $? -gt 0 ] ; then
1162       echo "IGCM_sys_ncks : erreur ${@}."
1163#       IGCM_debug_Exit "ncks"
1164    fi
1165
1166    IGCM_debug_PopStack "IGCM_sys_ncks"
1167}
1168
1169function IGCM_sys_ncpdq {
1170    IGCM_debug_PushStack "IGCM_sys_ncpdq" -- $@
1171    if ( $DEBUG_sys ) ; then
1172        echo "IGCM_sys_ncpdq :" $@
1173    fi
1174    ncpdq $@
1175    if [ $? -gt 0 ] ; then
1176       echo "IGCM_sys_ncpdq : erreur ${@}."
1177#       IGCM_debug_Exit "ncpdq"
1178    fi
1179
1180    IGCM_debug_PopStack "IGCM_sys_ncpdq"
1181}
1182
1183function IGCM_sys_ncra {
1184    IGCM_debug_PushStack "IGCM_sys_ncra" -- $@
1185    if ( $DEBUG_sys ) ; then
1186        echo "IGCM_sys_ncra :" $@
1187    fi
1188    ncra $@
1189    if [ $? -gt 0 ] ; then
1190       echo "IGCM_sys_ncra : erreur ${@}."
1191#       IGCM_debug_Exit "ncra"
1192    fi
1193
1194    IGCM_debug_PopStack "IGCM_sys_ncra"
1195}
1196
1197function IGCM_sys_ncrcat {
1198    IGCM_debug_PushStack "IGCM_sys_ncrcat" -- $@
1199    if ( $DEBUG_sys ) ; then
1200        echo "IGCM_sys_ncrcat :" $@
1201    fi
1202    ncrcat $@
1203    if [ $? -gt 0 ] ; then
1204       echo "IGCM_sys_ncrcat : erreur ${@}."
1205#       IGCM_debug_Exit "ncrcat"
1206    fi
1207
1208    IGCM_debug_PopStack "IGCM_sys_ncrcat"
1209}
1210
1211function IGCM_sys_ncrename {
1212    IGCM_debug_PushStack "IGCM_sys_ncrename" -- $@
1213    if ( $DEBUG_sys ) ; then
1214        echo "IGCM_sys_ncrename :" $@
1215    fi
1216    ncrename $@
1217    if [ $? -gt 0 ] ; then
1218       echo "IGCM_sys_ncrename : erreur ${@}."
1219#       IGCM_debug_Exit "ncrename"
1220    fi
1221
1222    IGCM_debug_PopStack "IGCM_sys_ncrename"
1223}
1224
1225function IGCM_sys_ncwa {
1226    IGCM_debug_PushStack "IGCM_sys_ncwa" -- $@
1227    if ( $DEBUG_sys ) ; then
1228        echo "IGCM_sys_ncwa :" $@
1229    fi
1230    ncwa $@
1231    if [ $? -gt 0 ] ; then
1232       echo "IGCM_sys_ncwa : erreur ${@}."
1233#       IGCM_debug_Exit "ncwa"
1234    fi
1235
1236    IGCM_debug_PopStack "IGCM_sys_ncwa"
1237}
1238
1239############################################################
1240# Activate Running Environnment Variables
1241
1242function IGCM_sys_activ_variables {
1243    IGCM_debug_PushStack "IGCM_sys_activ_variables"
1244    if ( $DEBUG_sys ) ; then
1245        echo "IGCM_sys_activ_variables"
1246    fi
1247    IGCM_debug_PopStack "IGCM_sys_activ_variables"
1248}
1249
1250############################################################
1251# Desactivate Running Environnment Variables
1252
1253function IGCM_sys_desactiv_variables {
1254    IGCM_debug_PushStack "IGCM_sys_desactiv_variables"
1255    if ( $DEBUG_sys ) ; then
1256        echo "IGCM_sys_desactiv_variables"
1257    fi
1258    IGCM_debug_PopStack "IGCM_sys_desactiv_variables"
1259}
1260
1261############################################################
1262# Build run file
1263
1264function IGCM_sys_build_run_file {
1265    IGCM_debug_PushStack "IGCM_sys_build_run_file"
1266    if ( $DEBUG_sys ) ; then
1267        echo "IGCM_sys_build_run_file"
1268    fi
1269    IGCM_debug_PopStack "IGCM_sys_build_run_file"
1270}
Note: See TracBrowser for help on using the repository browser.