Changeset 1215


Ignore:
Timestamp:
07/06/15 17:26:23 (9 years ago)
Author:
jgipsl
Message:

Ticket #263
Only return for the case nonblocker if the file do not exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_comp/libIGCM_comp.ksh

    r1206 r1215  
    10601060  fi 
    10611061 
    1062   # Test if the file exist 
     1062  # Test if the file exist.  
     1063  # Exit with error if the file does not exist for the case blocker or force.  
     1064  # Only return for the case nonblocker.  
    10631065  if [ ! -f ${filein} ] ; then 
    1064     IGCM_debug_Exit "IGCM_comp_modifyDefFile: ${filein} does not exist." 
     1066    if [ ${type} = blocker ] || [ ${type} = force ] ; then 
     1067      IGCM_debug_Exit "IGCM_comp_modifyDefFile: ${filein} does not exist." 
     1068    else 
     1069      IGCM_debug_Print 1 "IGCM_comp_modifyDefFile: ${filein} does not exist. Nothing will be done for this file." 
     1070    fi 
    10651071    IGCM_debug_PopStack "IGCM_comp_modifyDefFile" 
    10661072    return 
     
    11931199  fi 
    11941200 
    1195   # Test if the file exist 
     1201  # Test if the file exist.  
     1202  # Exit with error if the file does not exist for the case blocker or force.  
     1203  # Only return for the case nonblocker.  
    11961204  if [ ! -f ${filein} ] ; then 
    1197     IGCM_debug_Exit "IGCM_comp_modifyNamelist: ${filein} does not exist." 
     1205    if [ ${type} = blocker ] || [ ${type} = force ] ; then 
     1206      IGCM_debug_Exit "IGCM_comp_modifyNamelist: ${filein} does not exist." 
     1207    else 
     1208      IGCM_debug_Print 1 "IGCM_comp_modifyNamelist: ${filein} does not exist. Nothing will be done for this file." 
     1209    fi 
    11981210    IGCM_debug_PopStack "IGCM_comp_modifyNamelist" 
    11991211    return 
     
    13061318  fi 
    13071319 
    1308   # Test if the file exist 
     1320  # Test if the file exist.  
     1321  # Exit with error if the file does not exist for the case blocker or force.  
     1322  # Only return for the case nonblocker.  
    13091323  if [ ! -f ${filein} ] ; then 
    1310     IGCM_debug_Exit "IGCM_comp_modifyXmlFile: ${filein} does not exist." 
     1324    if [ ${type} = blocker ] || [ ${type} = force ] ; then 
     1325      IGCM_debug_Exit "IGCM_comp_modifyXmlFile: ${filein} does not exist." 
     1326    else 
     1327      IGCM_debug_Print 1 "IGCM_comp_modifyXmlFile: ${filein} does not exist. Nothing will be done for this file." 
     1328    fi 
    13111329    IGCM_debug_PopStack "IGCM_comp_modifyXmlFile" 
    13121330    return 
Note: See TracChangeset for help on using the changeset viewer.