Ignore:
Timestamp:
Nov 28, 2014, 4:36:29 PM (10 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes -r2070:2158 into testing branch. Compilation problems introduced by revision r2155 have been corrected by hand

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/makelmdz

    r2056 r2160  
    2727sisvat=false
    2828rrtm=false
     29full=""
    2930
    3031# guess a default 'arch'
     
    107108[-parallel none/mpi/omp/mpi_omp] : parallelism (default: none) : mpi, openmp or mixted mpi_openmp
    108109[-g GRI]                   : grid configuration in dyn3d/GRI_xy.h  (default: reg, inclues a zoom)
    109 [-io IO]                   : Input/Output library (default: ioipsl)
     110[-io ioipsl/mix/xios]                   : Input/Output library (default: ioipsl)
    110111[-include INCLUDES]        : extra include path to add
    111112[-cpp CPP_KEY]             : additional preprocessing definitions
     
    113114[-mem]                     : reduced memory dynamics (if in parallel mode)
    114115[-filtre NOMFILTRE]        : use filtre from libf/NOMFILTRE (default: filtrez)
     116[-full]                    : Full (re)compilation (from scratch)
    115117[-link LINKS]              : additional links with other libraries
    116118[-fcm_path path]           : path to the fcm tool (default: tools/fcm/bin)
     
    174176          filtre=$2 ; shift ; shift ;;
    175177
     178      "-full")
     179      full="full" ; shift ;;
     180
    176181      "-link")
    177182          LIB="$LIB $2" ; shift ; shift ;;
     
    192197
    193198###############################################################
    194 # lecture des chemins propres à l'architecture de la machine #
     199# lecture des chemins propres \`a l'architecture de la machine #
    195200###############################################################
    196201rm -f .void_file
     
    384389   INCLUDE="$INCLUDE -I${IOIPSL_INCDIR}"
    385390   LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl"
    386 elif [[ $io == xios ]]
     391elif [[ $io == mix ]]
    387392then
    388393   # For now, xios implies also using ioipsl
    389394   CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS"
     395   INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"
     396   LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios"
     397elif [[ $io == xios ]]
     398then
     399   # For now, xios implies also using ioipsl
     400   CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS CPP_IOIPSL_NO_OUTPUT"
    390401   INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"
    391402   LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios"
     
    428439echo dim $dim
    429440echo dimc $dimc
    430 
    431441
    432442########################################################################
     
    458468fi
    459469
    460 
    461470cd $LIBFGCM/grid/dimension
    462471./makdim $dim
    463472cat $LIBFGCM/grid/dimensions.h
    464473cd $LMDGCM
    465 
    466474
    467475########################################################################
     
    486494fi
    487495
    488 
    489496cd $LMDGCM
    490497
     498########################################################################
     499# library directory name:
     500########################################################################
     501
     502nomlib=`echo ${arch}_${physique}_${dim_full}_${grille}_${compil_mod}_parall${parallel}_${CPP_KEY}_${FLAG_PARA} | sed -e 's/ //g' -e 's/-//g ' | sed -e 's/CPP_//g'`
     503echo "Path to library: "$nomlib
     504
     505########################################################################
     506#  Cleanup for a full recompilation, if requested
     507########################################################################
     508
     509if [[ $full == "full" ]]
     510then
     511# remove makefile and librairies
     512  echo "-full option: recompiling from scratch"
     513  \rm -f makefile
     514  \rm -rf "${LIBOGCM}/${nomlib}"
     515fi
    491516
    492517########################################################################
     
    532557  source_code=${code}.F90
    533558fi
    534 
    535 # library directory name:
    536 nomlib=`echo ${arch}_${physique}_${dim_full}_${grille}_${compil_mod}_parall${parallel}_${CPP_KEY}_${FLAG_PARA} | sed -e 's/ //g' -e 's/-//g ' | sed -e 's/CPP_//g'`
    537 echo $nomlib
    538559
    539560if [[ ! -d "${LIBOGCM}/${nomlib}" ]]
Note: See TracChangeset for help on using the changeset viewer.