New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
all_functions.sh in utils/CI/sette_ticket2304 – NEMO

source: utils/CI/sette_ticket2304/all_functions.sh @ 12422

Last change on this file since 12422 was 12422, checked in by mathiot, 4 years ago

merge sync_mysrc and sync_expcfg into sync_config, add a clean_config function and add option in sette.sh to activate synchronisation of MY_SCR/EXPREF with CONFIG_ST/EXP00/MY_SRC (-s option) or to clean a config with makenemo clean (-c option)

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 19.0 KB
Line 
1######################################################
2# Author : Simona Flavoni for NEMO
3# Contact : sflod@locean-ipsl.upmc.fr
4#
5# ----------------------------------------------------------------------
6# NEMO/SETTE , NEMO Consortium (2010)
7# Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt)
8# ----------------------------------------------------------------------
9#
10# Some scripts called by sette.sh
11# all_functions.sh   : all functions used by sette.sh 
12######################################################
13#set -x
14#set -o posix
15#set -u
16#set -e
17#+
18#
19# ================
20# all_functions.sh
21# ================
22#
23# ----------------------------------------------
24# Set of functions used by sette.sh (NEMO tests)
25# ----------------------------------------------
26#
27# SYNOPSIS
28# ========
29#
30# ::
31#
32#  $ ./set_namelist INPUT_NAMELIST VARIABLE VALUE
33#  $ post_test_tidyup
34#
35#
36# DESCRIPTION
37# ===========
38#
39# function superegrep
40#   input variable value
41#
42# function set_namelist
43#   input namelist_name variable value
44#   output namelist
45#
46# function post_test_tidyup
47#   creates nemo_validation tree, and save output & debug files
48#   this function creates tree of validation in NEMO_VALIDATION_DIR as follows :
49#
50# NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/REVISION_NUMBER(or DATE)/TEST_NAME
51#
52# NEMO_VALIDATION_DIR           : is choosen in param.cfg
53#
54# WCONFIG_NAME                  : set by makenemo at the moment of compilation
55#
56# WCOMPILER_NAME                : set by makenemo at the moment of compilation
57#
58# REVISION_NUMBER(or DATE)      : revision number by svn info, if problems with svn date is taken
59#
60# TEST_NAME                     : set in sette.sh for each configuration to be tested (directory TEST_NAME is created under ${NEW_CONF} directory )
61#
62# EXAMPLES
63# ========
64#
65# ::
66#
67#  $ ./set_namelist namelist          nn_itend        75
68#  $ ./set_namelist namelist_ice      cn_icerst_in  \"00101231_restart_ice\"
69#  $ post_test_tidyup
70#
71#
72# TODO
73# ====
74#
75# option debug
76#
77#
78# EVOLUTIONS
79# ==========
80#
81# $Id$
82#
83#   * creation
84#-
85# function to find namelists parameters
86supergrep () {
87            grep "^ *$1 *=" $2 | sed -e "s% *\!.*%%"
88    }
89
90usage=" Usage : set_namelist input_namelist variable_name value"
91usage=" if value is a string ths is neede syntax : ./set_namelist namelist_name var_name \"new_value\" "
92
93# sync MYSRC files (input CFG and CFG_ST)
94sync_config() {
95   if [ ${SETTE_SYNC_CONFIGS} == "yes" ]; then
96      lREF=$3/$1    # reference
97      lCFG=$3/$2    # target
98      if [ -d $lREF/MY_SRC ] && [ -d $lCFG/MY_SRC ] ; then
99         rsync $lREF/MY_SRC/* $lCFG/MY_SRC/.
100      fi
101
102      if [ -d $lREF/EXPREF ] && [ -d $lCFG/EXP00 ] ; then
103         rsync $lREF/EXPREF/*namelist*_cfg  $lCFG/EXP00/.
104         rsync $lREF/EXPREF/iodef.xml       $lCFG/EXP00/.
105         rsync $lREF/EXPREF/context_*.xml   $lCFG/EXP00/.
106         rsync $lREF/EXPREF/file_def_*.xml  $lCFG/EXP00/.
107      fi
108   fi
109}
110
111# clean _ST config (input CFG CFG_ST TYPE (test or ref))
112clean_config() {
113   if [ ${SETTE_CLEAN_CONFIGS} == "yes" ]; then
114      lREF=$1
115      lCFG=$2
116      lTYP=$3
117      if [ ${lTYP} == 'tests' ]; then
118         ./makenemo -n $lCFG -a $lREF clean
119      elif [ ${lTYP} == 'cfgs' ]; then
120         ./makenemo -n $lCFG -r $lREF clean
121      else
122         echo 'ERROR in the cleaning process'; exit 42
123      fi
124   fi
125}
126
127# define validation dir
128set_valid_dir () {
129    LANG=en_US
130    REVISION_NB=`LC_MESSAGES=${LANG} ${SVN_CMD} info ${SETTE_DIR}/.. | grep "Last Changed Rev" | awk '{print $NF}'`
131    if [ ${#REVISION_NB} -eq 0 ]
132    then
133        echo "some problems with ${SVN_CMD} info command"
134        echo "some problems with ${SVN_CMD} info command" >> ${SETTE_DIR}/output.sette
135        REVISION_NB=`date +%Y%m%d`
136        echo "put in ${REVISION_NB} date"
137        echo "put in ${REVISION_NB} date" >> ${SETTE_DIR}/output.sette
138    else
139    echo "value of revision number of NEMOGCM: ${REVISION_NB}"
140    fi
141    [ `${SVN_CMD} status -q ${SETTE_DIR}/../{cfg,tests,src} | wc -l` -ge 1 ] && REVISION_NB=${REVISION_NB}+
142    NEMO_VALID=${NEMO_VALIDATION_DIR}/W${NEW_CONF}/${CMP_NAM}/${REVISION_NB}/${TEST_NAME}
143}
144
145# clean valid dir (move old ocean_output/run.stat and tracer to avoid checking them in case something wrong happen.
146clean_valid_dir () {
147#   set_valid_dir # already done in sette_ref/sette_test
148   echo "validation directory is : $NEMO_VALID"
149   if [ -d $NEMO_VALID ] ; then
150      [ -f ${NEMO_VALID}/ocean.output ] && mv ${NEMO_VALID}/ocean.output ${NEMO_VALID}/ocean.output_old
151      [ -f ${NEMO_VALID}/run.stat ]     && mv ${NEMO_VALID}/run.stat     ${NEMO_VALID}/run.stat_old
152      [ -f ${NEMO_VALID}/tracer.stat ]  && mv ${NEMO_VALID}/tracer.stat  ${NEMO_VALID}/tracer.stat_old
153   fi
154}
155
156# function to set namelists parameters
157set_namelist () {
158   minargcount=3
159   if [ ${#} -lt ${minargcount} ]
160   then
161      echo "not enough arguments for set_namelist"
162      echo "${usage}"
163      exit 1
164   fi
165   unset minargcount
166   if [  ! -f ${SETTE_DIR}/output.sette ] ; then
167                touch ${SETTE_DIR}/output.sette
168        fi
169
170        echo "executing script : set_namelist $@" >> ${SETTE_DIR}/output.sette
171        echo "################" >> ${SETTE_DIR}/output.sette
172     
173   VAR_NAME=$( supergrep $2 ${EXE_DIR}/$1 )
174   if [ ${#VAR_NAME} -eq 0 ] 
175   then
176      echo "doing \"set_namelist $@\". "  >> ${SETTE_DIR}/output.sette
177      echo "variable: \"$2\" not found in \"${EXE_DIR}/$1\" "  >> ${SETTE_DIR}/output.sette
178                NAMREF=$( basename $1 _cfg )_ref
179      echo "doing more : search in ${EXE_DIR}/$NAMREF " >> ${SETTE_DIR}/output.sette
180                VAR_NAME=$( supergrep $2 ${EXE_DIR}/$NAMREF )
181           if [ ${#VAR_NAME} -eq 0 ] 
182           then
183                    echo " variable $VAR_NAME not found in ${EXE_DIR}/$1 nor in ${EXE_DIR}/$NAMREF "
184                    echo " check your variable name "
185            echo "exit"
186            echo "error in executing script : set_namelist $@" >> ${SETTE_DIR}/output.sette
187            echo "....." >> ${SETTE_DIR}/output.sette
188            exit 1
189                fi
190                LINEVAR=$( grep -s -n "$VAR_NAME" ${EXE_DIR}/$NAMREF | awk -F: '{ { print $1} }' )
191                echo " $VAR_NAME found in ${EXE_DIR}/$NAMREF at line $LINEVAR " >> ${SETTE_DIR}/output.sette
192
193#   search for namelist group name
194                NAMGRP=$( head -n$LINEVAR ${EXE_DIR}/$NAMREF | grep --line-buffered "^&nam" | tail -1 | awk -F" " '{ { print $1} }' ) 
195                echo " variable $VAR_NAME will be added in $NAMGRP namelist-group of namelist file ${EXE_DIR}/$1 " >> ${SETTE_DIR}/output.sette
196
197# check if namelist group present in namelist_cfg
198# if missing group is added at the end of namelist_cfg
199                NGRP=$(grep ${NAMGRP} ${EXE_DIR}/$1 | wc -l )
200                if [ ${NGRP} -eq 0 ]; then
201                   echo ''
202                   echo "+++++ Group ${NAMGRP} containing ${2} is missing in ${EXE_DIR}/$1 +++++ "     
203                   echo "+++++ Group ${NAMGRP}                 is added   in ${EXE_DIR}/$1 +++++ "     
204                   echo ''
205                   echo "&${NAMGRP}" >> ${EXE_DIR}/$1
206                   echo "/"          >> ${EXE_DIR}/$1
207                fi
208
209# Add $VARNAME in namelist file ${EXE_DIR}/$1 in namelist group $NAMGRP
210# on mac osx, replace sed --posix by gsed (available with mac port)
211                sed --posix "/${NAMGRP} /a\ ${VAR_NAME} " ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp || gsed --posix "/${NAMGRP} /a\ ${VAR_NAME} " ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp
212
213# if file not empty replace ${EXE_DIR}/$1
214               if [ -s ${EXE_DIR}/$1.tmp ] ; then
215                   mv ${EXE_DIR}/$1.tmp ${EXE_DIR}/$1 
216                else
217                echo "file ${EXE_DIR}/$1.tmp is empty. sed command went wrong "; exit 200
218                fi
219   fi
220
221        ARGS_LST="${@:3}"
222        sed -e "s;${VAR_NAME}.*;${VAR_NAME};" ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp
223        mv ${EXE_DIR}/$1.tmp ${EXE_DIR}/$1
224        sed -e "s;${VAR_NAME};$2=${ARGS_LST};"  ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp
225        mv ${EXE_DIR}/$1.tmp ${EXE_DIR}/$1
226
227        echo "finished script : set_namelist $@" >> ${SETTE_DIR}/output.sette
228        echo "++++++++++++++++" >> ${SETTE_DIR}/output.sette
229        echo "                " >> ${SETTE_DIR}/output.sette
230}
231
232
233# function to tidy up after each test and populate the NEMO_VALIDATION store
234post_test_tidyup () {
235# Save current exit status of caller script
236    RUN_STATUS=$? 
237    echo "Exit status: ${RUN_STATUS}" 
238#
239# requires the following variables defined and exported from the calling script:
240#  SETTE_DIR
241#  INPUT_DIR
242#  EXE_DIR
243#  CONFIG_DIR
244#  NEMO_VALIDATION_DIR
245#  NEW_CONF
246#  CMP_NAM
247#  TEST_NAME
248echo "SETTE directory is : ${SETTE_DIR}"
249echo "INPUT directory is : ${INPUT_DIR}"
250echo "EXECUTION directory is : ${EXE_DIR}"
251echo "CONFIG directory is : ${CONFIG_DIR}"
252echo "VALIDATION directory is : ${NEMO_VALID}"
253echo "NEW CONFIGURATION is : ${NEW_CONF}"
254echo "COMPILER is : ${CMP_NAM}"
255echo "TEST is : ${TEST_NAME}"
256echo "TOOLS directory is : ${TOOLS_DIR}"
257################################################################
258# SMALL DEBUG
259    EXIT_STATUS=${RUN_STATUS}
260    if [ ! -r ${EXE_DIR}/ocean.output ]
261        then
262        grep "E R R O R" ${EXE_DIR}/ocean.output && echo "Some ERRORS at execution time, see ${EXE_DIR}/ocean.output"
263        EXIT_STATUS=2
264        # exit 2 Error now catch in the report
265    fi
266
267    if [ ! -r ${EXE_DIR}/time.step ]
268        then
269        echo "file time.step does not exist"   >> ${SETTE_DIR}/output.sette
270        echo "some problems during execution of model"  >> ${SETTE_DIR}/output.sette
271        EXIT_STATUS=1
272        # exit 1 Error now catch in the report
273    else
274        echo "file time.step exists"  >> ${SETTE_DIR}/output.sette
275        echo "execution of model time step loop started"   >> ${SETTE_DIR}/output.sette
276    fi
277
278################################################################
279
280################################################################
281#
282# Creation of NEMO_VALIDATION tree
283#    set_valid_dir already done in sette_reference_config
284    mkdir -p ${NEMO_VALIDATION_DIR}
285    if [ -d ${NEMO_VALIDATION_DIR} ] ; then
286   echo "created ${NEMO_VALIDATION_DIR} directory"   >> ${SETTE_DIR}/output.sette
287    else
288   echo "problems in creating ${NEMO_VALIDATION_DIR} directory"   >> ${SETTE_DIR}/output.sette
289   echo "EXIT,"
290   exit 1
291    fi
292#
293# Exit before populating validation directory if the model run has
294# returned a non-zero exit status
295# On CRAY NEMO exit is not the expected 999 or 123456 (let this bloc in case useful later on).
296#    case ${EXIT_STATUS} in
297#        0|123456|999) echo " NEMO finished with exit code $EXIT_STATUS " ; post_test_tidyup ;;
298#        *) echo " NEMO abort on an unexpected error (segmentation fault or whatever) $EXIT_STATUS "
299#    esac
300
301    [ ${EXIT_STATUS} -ne 0 ] && exit ${EXIT_STATUS} 
302#
303# Save output & debug files in NEMO_VALIDATION tree
304    echo "saving ocean & ice output, run.stat, tracer.stat files ...." >> ${SETTE_DIR}/output.sette
305    echo "            " >> ${SETTE_DIR}/output.sette
306    [ -f ${EXE_DIR}/ocean.output ] && cp ${EXE_DIR}/*ocean.output ${NEMO_VALIDATION_DIR}/.
307    [ -f ${EXE_DIR}/run.stat ] && cp ${EXE_DIR}/*run.stat ${NEMO_VALIDATION_DIR}/.
308    [ -f ${EXE_DIR}/output.namelist.dyn ] && cp ${EXE_DIR}/*output.nam* ${NEMO_VALIDATION_DIR}/.
309    [ -f ${EXE_DIR}/tracer.stat ] && cp ${EXE_DIR}/*tracer.stat ${NEMO_VALIDATION_DIR}/.
310
311    if [ -n "$(ls ${NEMO_VALIDATION_DIR}/*run*)" ] ; then
312   echo "moved run.stat in ${NEMO_VALIDATION_DIR} directory"  >> ${SETTE_DIR}/output.sette
313   echo "moved run.stat in ${NEMO_VALIDATION_DIR} directory" 
314    else
315   echo "problem in looking for run.stat file in ${NEMO_VALIDATION_DIR} directory"  >> ${SETTE_DIR}/output.sette
316   echo "run.stat IS NOT in ${NEMO_VALIDATION_DIR} directory" 
317    fi
318    if [ -n "$(ls ${NEMO_VALIDATION_DIR}/*ocean.output*)" ] ; then
319   echo "moved ocean.output in ${NEMO_VALIDATION_DIR} directory"  >> ${SETTE_DIR}/output.sette
320   echo "moved ocean.output in ${NEMO_VALIDATION_DIR} directory" 
321    else
322   echo "problem in looking for ocean.output file in ${NEMO_VALIDATION_DIR} directory"  >> ${SETTE_DIR}/output.sette
323   echo "ocean.output IS NOT in ${NEMO_VALIDATION_DIR} directory" 
324    fi
325    if [ -n "$(ls ${NEMO_VALIDATION_DIR}/*tracer.stat*)" ] ; then
326        echo "moved tracer.stat in ${NEMO_VALIDATION_DIR} directory"  >> ${SETTE_DIR}/output.sette
327        echo "moved tracer.stat in ${NEMO_VALIDATION_DIR} directory"
328    else
329        echo "problem in looking for tracer.stat file in ${NEMO_VALIDATION_DIR} directory"  >> ${SETTE_DIR}/output.sette
330        echo "tracer.stat IS NOT in ${NEMO_VALIDATION_DIR} directory"
331    fi
332}
333
334#############################################################
335# extra functions to manipulate settings in the iodef.xml file
336#
337# Examples:
338#   set_xio_file_type    iodef.xml one_file
339#   set_xio_using_server iodef.xml true
340#   set_xio_buffer_size  iodef.xml 50000000
341#   set_xio_field_defs   iodef.xml
342#
343#############################################################
344
345usage2=" Usage : set_xio_file_type input_iodef.xml one_file||multiple_file"
346usage3=" Usage : set_xio_using_server input_iodef.xml true||false"
347usage4=" Usage : set_xio_buffer_size input_iodef.xml int_buffer_size"
348usage5=" Usage : set_xio_field_defs input_iodef.xml"
349
350set_xio_file_type () {
351        minargcount=2
352        if [ ${#} -lt ${minargcount} ]
353        then
354                echo "not enough arguments for set_xio_file_type"
355                echo "${usage2}"
356                exit 1
357        fi
358        if [ $2 != "one_file" ] && [ $2 != "multiple_file" ]
359        then
360                echo "unrecognised argument for set_xio_file_type"
361                echo "${usage2}"
362                echo $2
363                exit 1
364        fi
365        unset minargcount
366        if [  ! -f ${SETTE_DIR}/output.sette ] ; then
367                touch ${SETTE_DIR}/output.sette
368        fi
369
370        echo "executing script : set_xio_file_type $@" >> ${SETTE_DIR}/output.sette
371        echo "################" >> ${SETTE_DIR}/output.sette
372
373        VAR_NAME=$( grep "^.*<.*file_definition.*type.*=" ${EXE_DIR}/$1 | sed -e "s% *\!.*%%" )
374        if [ ${#VAR_NAME} -eq 0 ]
375        then
376                echo "doing \"set_xio_file_type $@\". "
377                echo "xml_tag: file_definition with variable: type is empty"
378                echo "confirm that an appropriate file_definition is in \"${EXE_DIR}/$1\" "
379                echo "exit"
380                echo "error in executing script : set_xio_file_type $@" >> ${SETTE_DIR}/output.sette
381                echo "....." >> ${SETTE_DIR}/output.sette
382                exit 1
383        fi
384        if [ $2 == "one_file" ] 
385        then
386           sed -e "s:multiple_file:one_file:" ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp
387        else
388           sed -e "s:one_file:multiple_file:" ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp
389        fi
390        mv ${EXE_DIR}/$1.tmp ${EXE_DIR}/$1
391
392        echo "finished script : set_xio_file_type $@" >> ${SETTE_DIR}/output.sette
393        echo "++++++++++++++++" >> ${SETTE_DIR}/output.sette
394        echo "                " >> ${SETTE_DIR}/output.sette
395}
396
397set_xio_using_server () {
398        minargcount=2
399        if [ ${#} -lt ${minargcount} ]
400        then
401                echo "not enough arguments for set_xio_using_server"
402                echo "${usage2}"
403                exit 1
404        fi
405        if [ $2 != "true" ] && [ $2 != "false" ]
406        then
407                echo "unrecognised argument for set_xio_using_server"
408                echo "${usage2}"
409                echo $2
410                exit 1
411        fi
412        unset minargcount
413        if [  ! -f ${SETTE_DIR}/output.sette ] ; then
414                touch ${SETTE_DIR}/output.sette
415        fi
416
417        echo "executing script : set_xio_using_server $@" >> ${SETTE_DIR}/output.sette
418        echo "################" >> ${SETTE_DIR}/output.sette
419
420        VAR_NAME=$( grep "^.*<.*variable id.*=.*using_server.*=.*bool" ${EXE_DIR}/$1 | sed -e "s% *\!.*%%" )
421        if [ ${#VAR_NAME} -eq 0 ]
422        then
423                echo "doing \"set_xio_using_server $@\". "
424                echo "xml_tag: "variable id=using_server" with variable: bool is empty"
425                echo "confirm that an appropriate variable id is in \"${EXE_DIR}/$1\" "
426                echo "exit"
427                echo "error in executing script : set_xio_using_server $@" >> ${SETTE_DIR}/output.sette
428                echo "....." >> ${SETTE_DIR}/output.sette
429                exit 1
430        fi
431        if [ $2 == "false" ]
432        then
433           sed -e "/using_server/s:true:false:" ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp
434           export USING_MPMD=no
435        else
436           sed -e "/using_server/s:false:true:" ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp
437           export USING_MPMD=yes
438        fi
439        mv ${EXE_DIR}/$1.tmp ${EXE_DIR}/$1
440
441        echo "finished script : set_xio_using_server $@" >> ${SETTE_DIR}/output.sette
442        echo "++++++++++++++++" >> ${SETTE_DIR}/output.sette
443        echo "                " >> ${SETTE_DIR}/output.sette
444}
445
446set_xio_buffer_size () {
447        minargcount=2
448        if [ ${#} -lt ${minargcount} ]
449        then
450                echo "not enough arguments for set_xio_buffer_size"
451                echo "${usage4}"
452                exit 1
453        fi
454        unset minargcount
455        if [  ! -f ${SETTE_DIR}/output.sette ] ; then
456                touch ${SETTE_DIR}/output.sette
457        fi
458
459        echo "executing script : set_xio_buffer_size $@" >> ${SETTE_DIR}/output.sette
460        echo "################" >> ${SETTE_DIR}/output.sette
461
462        VAR_NAME=$( grep "^.*<.*variable id.*=.*buffer_size.*=.*integer" ${EXE_DIR}/$1 | sed -e "s% *\!.*%%" )
463        if [ ${#VAR_NAME} -eq 0 ]
464        then
465                echo "doing \"set_xio_buffer_size $@\". "
466                echo "xml_tag: "variable id=buffer_size" with variable: integer is empty"
467                echo "confirm that an appropriate variable id is in \"${EXE_DIR}/$1\" "
468                echo "exit"
469                echo "error in executing script : set_xio_buffer_size $@" >> ${SETTE_DIR}/output.sette
470                echo "....." >> ${SETTE_DIR}/output.sette
471                exit 1
472        fi
473        sed -e "/buffer_size/s:>.*<:>$2<:" ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp
474        mv ${EXE_DIR}/$1.tmp ${EXE_DIR}/$1
475
476        echo "finished script : set_xio_buffer_size $@" >> ${SETTE_DIR}/output.sette
477        echo "++++++++++++++++" >> ${SETTE_DIR}/output.sette
478        echo "                " >> ${SETTE_DIR}/output.sette
479}
480
481set_xio_field_defs () {
482        minargcount=1
483        if [ ${#} -lt ${minargcount} ]
484        then
485                echo "not enough arguments for set_xio_field_defs"
486                echo "${usage5}"
487                exit 1
488        fi
489        unset minargcount
490        if [  ! -f ${SETTE_DIR}/output.sette ] ; then
491                touch ${SETTE_DIR}/output.sette
492        fi
493
494        echo "executing script : set_xio_field_defs $@" >> ${SETTE_DIR}/output.sette
495        echo "################" >> ${SETTE_DIR}/output.sette
496
497
498        [ -f ${EXE_DIR}/field_def_nemo-oce.xml ] || sed -i '/field_def_nemo-oce/d' $1
499        [ -f ${EXE_DIR}/field_def_nemo-ice.xml ] || sed -i '/field_def_nemo-ice/d' $1
500        [ -f ${EXE_DIR}/field_def_nemo-pisces.xml ] || sed -i '/field_def_nemo-pisces/d' $1
501
502        echo "finished script : set_xio_field_defs $@" >> ${SETTE_DIR}/output.sette
503        echo "++++++++++++++++" >> ${SETTE_DIR}/output.sette
504        echo "                " >> ${SETTE_DIR}/output.sette
505}
Note: See TracBrowser for help on using the repository browser.