Changeset 6224
- Timestamp:
- 2016-01-07T18:02:43+01:00 (9 years ago)
- Location:
- branches/2015/nemo_v3_6_STABLE/NEMOGCM
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2015/nemo_v3_6_STABLE/NEMOGCM/SETTE/all_functions.sh
r4316 r6224 286 286 echo "################" >> ${SETTE_DIR}/output.sette 287 287 288 inxml=$1 288 289 VAR_NAME=$( grep "^.*<.*file_definition.*type.*=" ${EXE_DIR}/$1 | sed -e "s% *\!.*%%" ) 289 290 if [ ${#VAR_NAME} -eq 0 ] 290 291 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 291 298 echo "doing \"set_xio_file_type $@\". " 292 299 echo "xml_tag: file_definition with variable: type is empty" 293 echo "confirm that an appropriate file_definition is in \"${EXE_DIR}/$1\" "300 echo "confirm that an appropriate file_definition is in \"${EXE_DIR}/$1\" or file_def.xml" 294 301 echo "exit" 295 302 echo "error in executing script : set_xio_file_type $@" >> ${SETTE_DIR}/output.sette 296 303 echo "....." >> ${SETTE_DIR}/output.sette 297 304 exit 1 305 fi 298 306 fi 299 307 if [ $2 == "one_file" ] 300 308 then 301 sed -e "s:multiple_file:one_file:" ${EXE_DIR}/$ 1 > ${EXE_DIR}/$1.tmp309 sed -e "s:multiple_file:one_file:" ${EXE_DIR}/$inxml > ${EXE_DIR}/$inxml.tmp 302 310 else 303 sed -e "s:one_file:multiple_file:" ${EXE_DIR}/$ 1 > ${EXE_DIR}/$1.tmp304 fi 305 mv ${EXE_DIR}/$ 1.tmp ${EXE_DIR}/$1311 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 306 314 307 315 echo "finished script : set_xio_file_type $@" >> ${SETTE_DIR}/output.sette … … 336 344 if [ ${#VAR_NAME} -eq 0 ] 337 345 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 338 351 echo "doing \"set_xio_using_server $@\". " 339 echo "xml_tag: "variable id=using_server" with variable: booleanis empty"352 echo "xml_tag: "variable id=using_server" with either variable: boolean or bool is empty" 340 353 echo "confirm that an appropriate variable id is in \"${EXE_DIR}/$1\" " 341 354 echo "exit" … … 343 356 echo "....." >> ${SETTE_DIR}/output.sette 344 357 exit 1 358 fi 345 359 fi 346 360 if [ $2 == "false" ] -
branches/2015/nemo_v3_6_STABLE/NEMOGCM/SETTE/prepare_exe_dir.sh
r6204 r6224 71 71 72 72 cp -rL ${CONFIG_DIR}/${NEW_CONF}/EXP00/* ${EXE_DIR}/. 73 cp -r ${SETTE_DIR}/iodef_sette.xml ${EXE_DIR}/iodef.xml 73 if [ ! -f ${EXE_DIR}/file_def.xml ]; then cp -r ${SETTE_DIR}/iodef_sette.xml ${EXE_DIR}/iodef.xml; fi 74 74 cd ${EXE_DIR} -
branches/2015/nemo_v3_6_STABLE/NEMOGCM/SETTE/prepare_job.sh
r5558 r6224 186 186 # if [ ${MPI_FLAG} == "no" ] ; then 187 187 case ${COMPILER} in 188 X64_MOBILIS )188 X64_MOBILIS*) 189 189 NB_REM=$( echo $NB_PROC $NXIO_PROC | awk '{print ( $1 + $2 ) % 16}') 190 190 if [ ${NB_REM} == 0 ] ; then -
branches/2015/nemo_v3_6_STABLE/NEMOGCM/TOOLS/COMPILE/Fmake_config.sh
r3715 r6224 65 65 [ -f ${2}/EXP00/iodef.xml ] && \cp -R ${2}/EXP00/iodef.xml ${1}/EXP00/. 66 66 [ -f ${2}/EXP00/field_def.xml ] && \cp -R ${2}/EXP00/field_def.xml ${1}/EXP00/. 67 [ -f ${2}/EXP00/file_def.xml ] && \cp -R ${2}/EXP00/file_def.xml ${1}/EXP00/. 67 68 [ -f ${2}/EXP00/domain_def.xml ] && \cp -R ${2}/EXP00/domain_def.xml ${1}/EXP00/. 68 69 [ -f ${2}/EXP00/xmlio_server.def ] && \cp -R ${2}/EXP00/xmlio_server.def ${1}/EXP00/.
Note: See TracChangeset
for help on using the changeset viewer.