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 10252 – NEMO

Changeset 10252


Ignore:
Timestamp:
2018-10-29T15:21:23+01:00 (5 years ago)
Author:
mathiot
Message:

tidy up error message (if template file missing)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/dev_rebuild_nemo_compression/REBUILD_NEMO/rebuild_nemo

    r10244 r10252  
    144144 
    145145   template_dir=${script_dir}/BATCH_TEMPLATES/ 
    146    archfile=${template_dir}/param_${ARCH} 
    147    if [ ! -f $archfile ]; then  
    148       echo "$archfile is missing, stop 42" 
    149       echo "check your arch name or add one $archfile file in BATCH_TEMPLATES" 
     146   param_file=${template_dir}/param_${ARCH} 
     147   if [ ! -f $param_file ]; then  
     148      echo '' 
     149      echo "E R R O R: $param_file is missing, stop 42" 
     150      echo '' 
     151      echo "check your arch name or add one $param_file file in BATCH_TEMPLATES" 
     152      echo '' 
    150153      exit 42 
    151154   fi 
    152    . $archfile 
     155   . $param_file 
    153156 
    154157   batch_file=rebuild_nemo_batch_${ARCH} 
    155158   if [ ! -f ${template_dir}/${batch_file} ]; then  
    156       echo "$batch_file is missing, stop 42" 
     159      echo '' 
     160      echo "E R R O R: $batch_file is missing, stop 42" 
     161      echo '' 
    157162      echo "check your arch name or add one $batch_file file in BATCH_TEMPLATES" 
     163      echo '' 
    158164      exit 42 
    159165   fi 
Note: See TracChangeset for help on using the changeset viewer.