Changeset 3480


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

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

Location:
trunk/ICOSA_LMDZ
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ICOSA_LMDZ/compile_adastra-gnu

    r3402 r3480  
    11# Simple example of launching the make_icosa_lmdz script with adequate options
    22# adapt to fit your own needs.
     3arch=ADASTRA-gnu
    34
    45# Gas Giants:
    5 #make_icosa_lmdz -p std -p_opt "-b 20x25" -parallel mpi_omp -arch ADASTRA-gnu -arch_path ../ARCH -job 8
     6#make_icosa_lmdz -p std -p_opt "-b 20x25" -parallel mpi_omp -arch $arch -arch_path ../ARCH -job 8 $*
    67
    78# Venus:
    8 #make_icosa_lmdz -p venus -parallel mpi -arch ADASTRA-gnu -arch_path ../ARCH -job 8
     9#make_icosa_lmdz -p venus -parallel mpi -arch $arch -arch_path ../ARCH -job 8  $*
    910
    1011# Mars:
    11 make_icosa_lmdz -p mars -parallel mpi_omp -arch ADASTRA-gnu -arch_path ../ARCH -job 8 -full -nodeps
     12make_icosa_lmdz -p mars -parallel mpi_omp -arch $arch -arch_path ../ARCH -job 8 -full -nodeps $*
    1213
     14# Pluto:
     15#make_icosa_lmdz -p pluto -p_opt "-b 17x23" -parallel mpi -arch $arch -arch_path ../ARCH -job 8 $*
  • trunk/ICOSA_LMDZ/compile_irene-amd

    r2912 r3480  
     1arch=X64_IRENE-AMD
     2
    13# Gas Giants:
    2 #make_icosa_lmdz -p std -p_opt "-b 20x25 -s 2" -parallel mpi_omp -arch X64_IRENE-AMD -arch_path ../ARCH -job 8
     4#make_icosa_lmdz -p std -p_opt "-b 20x25 -s 2" -parallel mpi_omp -arch $arch -arch_path ../ARCH -job 8  $*
    35
    46# Venus:
    5 #make_icosa_lmdz -p venus -parallel mpi -arch X64_IRENE-AMD -arch_path ../ARCH -job 8
     7#make_icosa_lmdz -p venus -parallel mpi -arch $arch -arch_path ../ARCH -job 8  $*
    68
    79# Mars:
    8 make_icosa_lmdz -p mars -parallel mpi_omp -arch X64_IRENE-AMD -arch_path ../ARCH -job 8
     10make_icosa_lmdz -p mars -parallel mpi_omp -arch $arch -arch_path ../ARCH -job 8  $*
    911
     12# Pluto:
     13#make_icosa_lmdz -p pluto -p_opt "-b 17x23" -parallel mpi -arch $arch -arch_path ../ARCH -job 8 $*
  • 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.