Changeset 170 for LMDZ.3.3/trunk/makegcm


Ignore:
Timestamp:
Dec 21, 2000, 4:34:00 PM (24 years ago)
Author:
lmdz
Message:

Mise a jour par rapport a la version couplee
LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ.3.3/trunk/makegcm

    r169 r170  
    11#!/bin/csh
     2# $Header$
    23#set verbose echo
    34########################################################################
    45# options par defaut pour la commande make
    56########################################################################
    6 set dim="72x46x19"
     7set dim="72x45x19"
    78set physique=lmd
    89set phys="PHYS=$physique"
     
    3334    set NCDFLIB=`grep sxnec ../../util/AA_make.gdef| grep NCDF_LIB|sed -e 's/^.* =//'`
    3435  else
    35     echo 'Probleme de definition des variables NCDFINC et NCDFLIB'
     36    if ( `hostname` == nymphea0 ) then
     37      set NCDFINC=`grep fjvpp ../../util/AA_make.gdef| grep NCDF_INC|sed -e "s/^.* =//"`
     38      set NCDFLIB=`grep fjvpp ../../util/AA_make.gdef| grep NCDF_LIB|sed -e 's/^.* =//'`
     39    else
     40      echo 'Probleme de definition des variables NCDFINC et NCDFLIB'
     41    endif
    3642  endif
    37   cp libf/phylmd/oasis.F libf/phylmd/oasis.dummy
    38   cp libf/phylmd/oasis.true libf/phylmd/oasis.F
     43  \cp libf/phylmd/oasis.F libf/phylmd/oasis.dummy
     44  \cp libf/phylmd/oasis.true libf/phylmd/oasis.F
    3945else
    4046  if ( ! $?LMDGCM ) then
     
    6470set model=$LMDGCM
    6571set libo=$LIBOGCM
     72
     73#Force/couple
     74set COUPLE=0
     75set ocean=`grep '^      parameter (ocean' libf/phylmd/physiq.F | awk -F\' '{print $2}'`
     76banner $ocean
     77if ($ocean == couple) then
     78  set COUPLE=1
     79endif
     80
    6681
    6782########################################################################
     
    168183#   set optim="-Dasuxm  -On, -g -Ad -Potilax -Eciplume -Si"
    169184#   set optimbis="  -Wv,-m3 -Wp,-DVPP -Z $LMDGCM/listage"
    170    set optimbis=" -Z $LMDGCM/listage"
    171    set optim90="$optim $optimbis -w"
    172    set opt_link="-Wg,-c -L$IOIPSLDIR -lioipsl  -L$NCDFLIB -lnetcdf"
    173    set oplink=" "
     185   set optimbis=" -Wp,-DNC_DOUBLE -Ad -Z $LMDGCM/listage"
     186   set optim90="$optim $optimbis -X9 -w"
     187   if $COUPLE then
     188     set opt_link="-Wg,-c $IOIPSLDIR/liboasis2.4_mpi2.a /usr/lang/mpi2/lib64/libmpi.a /usr/lang/mpi2/lib64/libmp.a /usr/local/lib/lib64/libnetcdf_cc.a -L$IOIPSLDIR -lioipsl"
     189     set oplink="-Wl,-t,-P,-dy "
     190   else
     191     set opt_link="-Wg,-c /usr/local/lib/lib64/libnetcdf_cc.a -L$IOIPSLDIR -lioipsl"
     192     set oplink="-Wl,-t,-dy "
     193   endif
    174194   set mod_loc_dir=$IOIPSLDIR
    175195   set mod_suffix=mod
     
    198218   set optimbis=" "
    199219   if $MODIPSL then
    200      set opt_link="-L$IOIPSLDIR -lsxioipsl -loasis2.4_mpi2 -float0 -ew -P stack -I$NCDFINC $NCDFLIB "
    201      set mod_loc_dir="$localdir/../lib"
     220     if $COUPLE then
     221       set opt_link="-L$IOIPSLDIR -lsxioipsl -loasis2.4_mpi2 -Wl,-f nan, -float0 -ew -P stack -I$NCDFINC $NCDFLIB "
     222       set opt_link="-L$IOIPSLDIR -lsxioipsl -loasis2.4_mpi2 -float0 -ew -P stack -I$NCDFINC $NCDFLIB "
     223#       set opt_link="-L$IOIPSLDIR -lsxioipsl -loasis2.4_mpi2 -float0 -ew -eC -P stack -I$NCDFINC $NCDFLIB "
     224     else
     225       set opt_link="-L$IOIPSLDIR -lsxioipsl -float0 -ew -P stack -I$NCDFINC $NCDFLIB "
     226     endif
     227     set mod_loc_dir="./"
    202228   else
    203      set opt_link=" -C hopt -float0 -ew -P stack -L$IOIPSLDIR -lioipsl -L /u/rech/psl/rpsl003/IOIPSL -lnetcdf_i8r8_v -I$NCDFINC "
     229     set opt_link=" -C hopt -float0 -ew -P stack -L$IOIPSLDIR -lsxioipsl -L /u/rech/psl/rpsl003/IOIPSL -lnetcdf_i8r8_v -I$NCDFINC "
    204230     set mod_loc_dir="."
    205231   endif
     
    682708if $VPP then
    683709  set optim90=" $optim90 -Am -M$libo"
     710  set optimtru90="$optim90"
    684711 \cp $IOIPSLDIR/*.mod $libo
    685712else if $SUN then
Note: See TracChangeset for help on using the changeset viewer.