Ignore:
Timestamp:
Jan 14, 2021, 2:46:28 PM (4 years ago)
Author:
emillour
Message:

Common compilation script:
Add an extra check so that erroneous use of option "-s ..." is identified.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/makelmdz_fcm

    r2369 r2441  
    554554if [[ "$scatterers" != "" ]]
    555555then
    556   # Generic model, recreate scatterers.h
    557   cd $LIBFGCM/phy$physique/scatterers
    558   ./make_scatterers $scatterers
    559   cat $LIBFGCM/phy$physique/scatterers.h
    560   cd $LMDGCM
     556  if [[ -f $LIBFGCM/phy$physique/scatterers/make_scatterers ]]
     557  then
     558    # Generic model, recreate scatterers.h
     559    cd $LIBFGCM/phy$physique/scatterers
     560    ./make_scatterers $scatterers
     561    cat $LIBFGCM/phy$physique/scatterers.h
     562    cd $LMDGCM
     563  else
     564    echo "Error: you should not use the -s # option with -p $physique"
     565    exit
     566  fi
    561567fi
    562568
Note: See TracChangeset for help on using the changeset viewer.