Changeset 1386


Ignore:
Timestamp:
04/03/17 16:54:43 (7 years ago)
Author:
jgipsl
Message:

IGCM_comp_modifyXmlFile: Do not stop for nonblocker case if the keyid was not found in the file. See ticket https://forge.ipsl.jussieu.fr/libigcm/ticket/325

File:
1 edited

Legend:

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

    r1380 r1386  
    13661366  fi 
    13671367 
    1368   # Test if keyid is set in filein, otherwise exit 
     1368  # Test if keyid is set in filein. If not exit for case all cases(blocker, force) except nonblocker. 
    13691369  if [ $( grep -w ${keyid} ${filein} | wc -l ) = 0 ] ; then 
    1370     # Variable key is not set in filein, stop. 
    1371     IGCM_debug_Exit "IGCM_comp_modifyXmlFile : ${keyid} is not set in the file. Bad syntax of ${filein} file." 
    1372     IGCM_debug_PopStack "IGCM_comp_modifyXmlFile" 
    1373     return 
     1370      if [ ${type} = nonblocker ] ; then 
     1371          # This is a nonblocker case, print warning but do nothing else 
     1372          IGCM_debug_Print 1 "IGCM_comp_modifyXmlFile: ${keyid} is not set in ${filein}. This is a nonblocker call so nothing is done." 
     1373      else 
     1374          # This is a blocker or force case : stop now 
     1375          IGCM_debug_Exit "IGCM_comp_modifyXmlFile : ${keyid} is not set in the file. Bad syntax of ${filein} file." 
     1376          IGCM_debug_PopStack "IGCM_comp_modifyXmlFile" 
     1377          return 
     1378      fi 
    13741379  fi 
    13751380 
Note: See TracChangeset for help on using the changeset viewer.