Ignore:
Timestamp:
Oct 24, 2024, 1:10:50 PM (8 weeks ago)
Author:
afalco
Message:

icosa_lmdz: small compilation scripts changes; included Pluto example.
AF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ICOSA_LMDZ/make_icosa_lmdz

    r3402 r3480  
    2121physics="none"
    2222build_deps="TRUE"
    23 CPP_KEY="CPP_NONE" 
     23CPP_KEY="CPP_NONE"
    2424ICOSA_LIB=""
    2525
     
    4141[-parallel type]           : parallelism (none|mpi|omp|mpi_omp)
    4242[-with_xios]               : compile and link with XIOS (default)
    43 [-job num]                 : speed up compilation by using num simulateneous 
     43[-job num]                 : speed up compilation by using num simulateneous
    4444                             compilation steps (when possible)
    4545fin
     
    4848      "-p")
    4949          phys=$2 ; shift ; shift ;;
    50      
     50
    5151      "-p_opt")
    5252          phys_opt=$2 ; shift ; shift ;;
    53          
     53
    5454      "-prod")
    5555          compil_mode="prod" ; shift ;;
     
    6363      "-arch")
    6464          arch=$2 ; arch_defined="TRUE"; shift ; shift ;;
    65  
     65
    6666      "-arch_path")
    6767          arch_path=$2 ; arch_path_defined="TRUE"; shift ; shift ;;
     
    108108    ln -s $arch_default_path/arch-${arch}.path arch.path
    109109  fi
    110        
     110
    111111  if test -f $arch_path/arch-${arch}.fcm
    112112  then
     
    162162then
    163163  parallel="none"
    164 else 
     164else
    165165  echo "-parallel value $parallel is invalid, only permited <none>, <mpi>, <omp> or <mpi_omp>"
    166166  exit 1
     
    170170then
    171171  ICOSA_LIB="$ICOSA_LIB $ORCHIDEE_LIBDIR $ORCHIDEE_LIB"
    172 fi 
     172fi
    173173
    174174if [[ "$with_xios_defined" == "TRUE" ]]
     
    177177  COMPIL_FFLAGS="$COMPIL_FFLAGS $XIOS_INCDIR"
    178178  ICOSA_LIB="$ICOSA_LIB $XIOS_LIBDIR $XIOS_LIB"
    179 fi 
     179fi
    180180
    181181ICOSA_LIB="$ICOSA_LIB $IOIPSL_LIBDIR $IOIPSL_LIB $NETCDF_LIBDIR $NETCDF_LIB $HDF5_LIBDIR $HDF5_LIB"
     
    187187  full_flag="-full"
    188188  full_flag2="--full"
    189 else 
     189else
    190190  full_flag=""
    191191  full_flag2=""
     
    225225if [[ -d ../LMDZ.COMMON ]] ; then
    226226    cd ../LMDZ.COMMON
    227     ./makelmdz_fcm -p $phys $phys_opt -$compil_mode -parallel $parallel -libphy -io xios -arch $arch -arch_path $arch_path -j $job $full_flag || exit 1
     227    echo "Compiling LMDZ.COMMON with:"
     228    cmd="./makelmdz_fcm -p $phys $phys_opt -$compil_mode -parallel $parallel -libphy -io xios -arch $arch -arch_path $arch_path -j $job $full_flag"
     229    echo $cmd
     230    $cmd || (echo "Failed compilation of LMDZ.COMMON. Command line was:" && echo $cmd && exit 1)
    228231    cd -
    229232else
     
    233236
    234237if [[ -d ../ICOSAGCM ]] ; then
    235     cd ../ICOSAGCM 
     238    cd ../ICOSAGCM
    236239    # from now on, compile using fcm2
    237     ./make_icosa -$compil_mode -parallel $parallel -external_ioipsl -with_xios -arch $arch -arch_path $arch_path -job $job $full_flag || exit 1
     240    echo "Compiling ICOSAGCM with:"
     241    cmd="./make_icosa -$compil_mode -parallel $parallel -external_ioipsl -with_xios -arch $arch -arch_path $arch_path -job $job $full_flag"
     242    echo "$cmd"
     243    $cmd || (echo "Failed compilation of ICOSAGCM. Command line was:" && echo $cmd && exit 1)
    238244    cd -
    239245else
Note: See TracChangeset for help on using the changeset viewer.