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.
Changeset 7635 for branches/2016/dev_merge_2016/NEMOGCM/SETTE/all_functions.sh – NEMO

Ignore:
Timestamp:
2017-02-03T14:24:58+01:00 (7 years ago)
Author:
timgraham
Message:

#1838 - Changes to remove XIOS1.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_merge_2016/NEMOGCM/SETTE/all_functions.sh

    r7421 r7635  
    256256#   set_xio_using_server iodef.xml true 
    257257#   set_xio_buffer_size  iodef.xml 50000000 
     258#   set_xio_field_defs   iodef.xml 
    258259# 
    259260############################################################# 
     
    262263usage3=" Usage : set_xio_using_server input_iodef.xml true||false" 
    263264usage4=" Usage : set_xio_buffer_size input_iodef.xml int_buffer_size" 
     265usage5=" Usage : set_xio_field_defs input_iodef.xml" 
    264266 
    265267set_xio_file_type () { 
     
    333335        echo "################" >> ${SETTE_DIR}/output.sette 
    334336 
    335         VAR_NAME=$( grep "^.*<.*variable id.*=.*using_server.*=.*boolean" ${EXE_DIR}/$1 | sed -e "s% *\!.*%%" ) 
     337        VAR_NAME=$( grep "^.*<.*variable id.*=.*using_server.*=.*bool" ${EXE_DIR}/$1 | sed -e "s% *\!.*%%" ) 
    336338        if [ ${#VAR_NAME} -eq 0 ] 
    337339        then 
    338340                echo "doing \"set_xio_using_server $@\". " 
    339                 echo "xml_tag: "variable id=using_server" with variable: boolean is empty" 
     341                echo "xml_tag: "variable id=using_server" with variable: bool is empty" 
    340342                echo "confirm that an appropriate variable id is in \"${EXE_DIR}/$1\" " 
    341343                echo "exit" 
     
    394396} 
    395397 
     398set_xio_field_defs () { 
     399        minargcount=1 
     400        if [ ${#} -lt ${minargcount} ] 
     401        then 
     402                echo "not enough arguments for set_xio_field_defs" 
     403                echo "${usage5}" 
     404                exit 1 
     405        fi 
     406        unset minargcount 
     407        if [  ! -f ${SETTE_DIR}/output.sette ] ; then 
     408                touch ${SETTE_DIR}/output.sette 
     409        fi 
     410 
     411        echo "executing script : set_xio_field_defs $@" >> ${SETTE_DIR}/output.sette 
     412        echo "################" >> ${SETTE_DIR}/output.sette 
     413 
     414 
     415        [ -f ${EXE_DIR}/field_def_nemo-opa.xml ] || sed -i '/field_def_nemo-opa/d' $1 
     416        [ -f ${EXE_DIR}/field_def_nemo-lim.xml ] || sed -i '/field_def_nemo-lim/d' $1 
     417        [ -f ${EXE_DIR}/field_def_nemo-pisces.xml ] || sed -i '/field_def_nemo-pisces/d' $1 
     418 
     419        echo "finished script : set_xio_field_defs $@" >> ${SETTE_DIR}/output.sette 
     420        echo "++++++++++++++++" >> ${SETTE_DIR}/output.sette 
     421        echo "                " >> ${SETTE_DIR}/output.sette 
     422} 
Note: See TracChangeset for help on using the changeset viewer.