Changeset 632


Ignore:
Timestamp:
May 4, 2005, 5:05:57 PM (19 years ago)
Author:
Laurent Fairhead
Message:

Rajout d'une option

-parallel false|true

a l'appel de makegcm et de la cle cpp CPP_PARALLEL à la compilation
LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/trunk/makegcm

    r621 r632  
    1717set veget=true
    1818set psmile=false
     19set parallel=false
    1920set OPT_STACK='-Wf,-init stack=nan'
    2021set OPT_STACK=' '
     
    2930###### VERSION LMDZ.4
    3031# set LMDGCM=$HOME/LMDZ.4
    31 #set LMDGCM="`pwd`"
     32set LMDGCM="`pwd`"
     33setenv LIBOGCM $LMDGCM/libo
    3234#
    3335
     
    338340           pour selectionner le mode psmile ou non (par defaut)
    339341
     342-parallel  false|true
     343           pour selectionner le mode parallele ou non (false par defaut)
     344
    340345-v true|false
    341346           pour selectionner la vegetation (par defaut) ou non
     
    410415        endif
    411416        shift ; shift ; goto top
     417
     418     case -parallel
     419        set parallel="$2" ; shift ; shift ; goto top
    412420 
    413421     case -t
     
    488496   set optim90="$optim90 -DCPP_PSMILE"
    489497   set optimtru90="$optimtru90 -DCPP_PSMILE"
     498endif
     499
     500if ( "$parallel" == 'true' ) then
     501   set optim="$optim -DCPP_PARALLEL"
     502   set optim90="$optim90 -DCPP_PARALLEL"
     503   set optimtru90="$optimtru90 -DCPP_PARALLEL"
    490504endif
    491505
     
    700714#  Avant de lancer le make, on recree le makefile si necessaire
    701715########################################################################
     716########################################################################
    702717# c'est a dire dans 3 cas:
    703718# 1. si la liste des fichiers .F et .h a ete modifiee depuis la
     
    707722# 3. Si le makefile n'existe pas.
    708723########################################################################
    709 
     724##########################################
     725# On adapte d'abord certains include à F90
     726##########################################
     727sed -e 's/^c/\!/' $libf/grid/dimensions.h >! $libf/grid/dimensions90.tmp
     728if ( ! -f $libf/grid/dimensions90.h || `diff $libf/grid/dimensions90.tmp $libf/grid/dimensions90.h | wc -w` ) then
     729      \mv $libf/grid/dimensions90.tmp $libf/grid/dimensions90.h
     730endif
     731sed -e 's/^c/\!/' -e 's/^     s/  \&/' $libf/dyn3d/paramet.h >! $libf/dyn3d/paramet90.tmp
     732if ( ! -f $libf/dyn3d/paramet90.h || `diff $libf/dyn3d/paramet90.tmp $libf/dyn3d/paramet90.h | wc -w` ) then
     733      \mv $libf/dyn3d/paramet90.tmp $libf/dyn3d/paramet90.h
     734endif
     735sed -e 's/^c/\!/' $libf/dyn3dpar/paramet.h >! $libf/dyn3dpar/paramet90.h
     736##########################################
    710737cd $model
    711738find libf -name '*.[Fh]' -print >! tmp77
     
    871898
    872899
    873 #
    874 # les deux test suivants sont "temporaires" pour pallier des "faiblesses" du
    875 # compilateur fortran Sun: f90: SC4.0 11 Sep 1995 FORTRAN 90 1.1
    876 #
    877 #if ($code == 'create_limit' && $SUN) then
    878 #   set link=f77
    879 #   set opt_link="-L$NCDFLIB -lnetcdf"
    880 #endif
    881 
    882 #if ($code == 'create_etat0' && $SUN) then
    883 #   if ( ! -f $libo/libdyn3d.a ) then
    884 #     echo "Priere de compiler gcm en premier pour des raisons d'optimisation"
    885 #     \rm $libf/grid/dimensions.h
    886 #     exit
    887 #   endif
    888 #   set optim=" -dalign "
    889 #   set optim90=" -dalign -fixed "
    890 #   set opt_link="-L$IOIPSLDIR -lioipsl  -L$NCDFLIB -lnetcdf"
    891 #   set link="$f90 $optim90"
    892 #   touch $LMDGCM/libf/dyn3d/startvar.F
    893 #   touch $LMDGCM/libf/dyn3d/etat0_netcdf.F
    894 #endif
    895900
    896901#
Note: See TracChangeset for help on using the changeset viewer.