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 10251 for branches/UKMO/dev_r5518_AMM15_package/NEMOGCM/SETTE/all_functions.sh – NEMO

Ignore:
Timestamp:
2018-10-29T15:20:26+01:00 (5 years ago)
Author:
kingr
Message:

Rolled back to r10247 - i.e., undid merge of pkg br and 3.6_stable br

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_AMM15_package/NEMOGCM/SETTE/all_functions.sh

    r10249 r10251  
    7979# ========== 
    8080# 
    81 # $Id$ 
     81# $Id: all_functions.sh 4316 2013-11-26 15:43:56Z clevy $ 
    8282# 
    8383#   * creation 
     
    286286        echo "################" >> ${SETTE_DIR}/output.sette 
    287287 
    288         inxml=$1 
    289288        VAR_NAME=$( grep "^.*<.*file_definition.*type.*=" ${EXE_DIR}/$1 | sed -e "s% *\!.*%%" ) 
    290289        if [ ${#VAR_NAME} -eq 0 ] 
    291290        then 
    292 # This may have failed because the job is using XIOS_2.0 conventions and the file descriptions have moved to file_def.xml 
    293 # Check again in case this is the case 
    294           VAR_NAME=$( grep "^.*<.*file_definition.*type.*=" ${EXE_DIR}/file_def.xml | sed -e "s% *\!.*%%" ) 
    295           inxml="file_def.xml" 
    296           if [ ${#VAR_NAME} -eq 0 ] 
    297           then 
    298291                echo "doing \"set_xio_file_type $@\". " 
    299292                echo "xml_tag: file_definition with variable: type is empty" 
    300                 echo "confirm that an appropriate file_definition is in \"${EXE_DIR}/$1\" or file_def.xml" 
     293                echo "confirm that an appropriate file_definition is in \"${EXE_DIR}/$1\" " 
    301294                echo "exit" 
    302295                echo "error in executing script : set_xio_file_type $@" >> ${SETTE_DIR}/output.sette 
    303296                echo "....." >> ${SETTE_DIR}/output.sette 
    304297                exit 1 
    305           fi 
    306298        fi 
    307299        if [ $2 == "one_file" ]  
    308300        then 
    309            sed -e "s:multiple_file:one_file:" ${EXE_DIR}/$inxml > ${EXE_DIR}/$inxml.tmp 
     301           sed -e "s:multiple_file:one_file:" ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp 
    310302        else 
    311            sed -e "s:one_file:multiple_file:" ${EXE_DIR}/$inxml > ${EXE_DIR}/$inxml.tmp 
    312         fi 
    313         mv ${EXE_DIR}/$inxml.tmp ${EXE_DIR}/$inxml 
     303           sed -e "s:one_file:multiple_file:" ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp 
     304        fi 
     305        mv ${EXE_DIR}/$1.tmp ${EXE_DIR}/$1 
    314306 
    315307        echo "finished script : set_xio_file_type $@" >> ${SETTE_DIR}/output.sette 
     
    344336        if [ ${#VAR_NAME} -eq 0 ] 
    345337        then 
    346 # This may have failed because the iodef file is using XIOS_2.0 syntax where "boolean" has reduced to "bool" 
    347 # Check again in case this is the case 
    348           VAR_NAME=$( grep "^.*<.*variable id.*=.*using_server.*=.*bool" ${EXE_DIR}/$1 | sed -e "s% *\!.*%%" ) 
    349            if [ ${#VAR_NAME} -eq 0 ] 
    350            then 
    351338                echo "doing \"set_xio_using_server $@\". " 
    352                 echo "xml_tag: "variable id=using_server" with either variable: boolean or bool is empty" 
     339                echo "xml_tag: "variable id=using_server" with variable: boolean is empty" 
    353340                echo "confirm that an appropriate variable id is in \"${EXE_DIR}/$1\" " 
    354341                echo "exit" 
     
    356343                echo "....." >> ${SETTE_DIR}/output.sette 
    357344                exit 1 
    358            fi 
    359345        fi 
    360346        if [ $2 == "false" ] 
Note: See TracChangeset for help on using the changeset viewer.