Changeset 1279 for LMDZ4/trunk/makegcm


Ignore:
Timestamp:
Dec 10, 2009, 10:02:56 AM (15 years ago)
Author:
Laurent Fairhead
Message:

Merged LMDZ4-dev branch changes r1241:1278 into the trunk
Running trunk and LMDZ4-dev in LMDZOR configuration on local
machine (sequential) and SX8 (4-proc) yields identical results
(restart and restartphy are identical binarily)
Log history from r1241 to r1278 is available by switching to
source:LMDZ4/branches/LMDZ4-dev-20091210

Location:
LMDZ4/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/trunk

  • LMDZ4/trunk/makegcm

    r1146 r1279  
    11#!/bin/csh
    22#
    3 # $Header$
     3# $Id$
    44#
    55#set verbose echo
     
    2424set OPTIMI=' -ftrace '
    2525set OPT_LINUX='-O3'
     26set OPT_LINUX="-i4 -r8 -O3"
    2627set io=ioipsl
     28set cosp=false
    2729
    2830set FC_LINUX=g95
    2931#set FC_LINUX=pgf90
     32if ( $FC_LINUX == g95 ) then
     33   set OPT_LINUX="-O3"
     34else
     35   # pgf90 options
     36   set OPT_LINUX="-i4 -r8 -O2 -Munroll -Mnoframe -Mautoinline -Mcache_align"
     37endif
    3038
    3139########################################################################
     
    3745#setenv LIBOGCM $LMDGCM/libo
    3846set INCALIB=../INCA3/config/lib
    39 set LMDGCM="`pwd`"
    40 setenv LIBOGCM $LMDGCM/libo
     47#set LMDGCM="`pwd`"
     48#setenv LIBOGCM $LMDGCM/libo
    4149#set LMDGCM=/d4/fairhead/V4/
    4250#setenv LIBOGCM $LMDGCM/libo
    4351#
    4452#
    45 #setenv IOIPSLDIR /u/fairhead/modipsl_ioipsl_3/lib_i4r4_32bits
    46 #setenv MODIPSLDIR /u/fairhead/modipsl_ioipsl_3/lib_i4r4_32bits
    47 #setenv NCDFINC /distrib/local/netcdf/pgi_32bits/include
    48 #setenv NCDFLIB /distrib/local/netcdf/pgi_32bits/lib/
    49 setenv IOIPSLDIR /d4/fairhead/Install_LMDZ4_FH/LMDZ4preV4/modipsl/lib/
    50 setenv MODIPSLDIR /d4/fairhead/Install_LMDZ4_FH/LMDZ4preV4/modipsl/lib/
    51 setenv NCDFINC /d4/fairhead/Install_LMDZ4_FH/LMDZ4preV4/netcdf-3.6.1/include
    52 setenv NCDFLIB /d4/fairhead/Install_LMDZ4_FH/LMDZ4preV4/netcdf-3.6.1/lib
     53#setenv NCDFINC /tmpdir/fairhead/1P1bis/netcdf-3.6.1/include
     54#setenv NCDFLIB /tmpdir/fairhead/1P1bis/netcdf-3.6.1/lib
     55#setenv IOIPSLDIR /tmpdir/fairhead/IOIPSL/modipsl/lib
     56#setenv MODIPSLDIR /tmpdir/fairhead/IOIPSL/modipsl/lib
    5357
    5458
     
    182186set opt_link=""
    183187set adjnt=""
     188set lcosp=""
    184189set opt_dep=""
    185190set libchimie=""
     
    254259else if $LINUX then
    255260#################
    256    if ( $FC_LINUX == "pgf90" ) then
    257      set optim="-fast "
    258      set optim90=" -fast "
    259      set optimtru90=" -fast -c -Mfree "
    260 #     set optim=" "
    261 #     set optim90="  "
    262 #     set optimtru90=" -c -Mfree "
    263    else if ( $FC_LINUX == 'g95' ) then
     261   if ( $FC_LINUX == pgf90 || $FC_LINUX == g95 ) then
    264262     set optim=" $OPT_LINUX "
    265263     set optim90=" $OPT_LINUX "
     
    428426-adjnt     Pour compiler la l'adjoint du code dynamique
    429427
     428-cosp true|false     
     429           Pour compiler avec cosp
     430
    430431-filtre  filtre
    431432           Pour choisir le filtre en longitude dans les regions polaires.
     
    483484        set opt_dep="$opt_dep adjnt" ; set adjnt="-ladjnt -ldyn3d "
    484485        set optim="$optim -Dadj" ; shift ; goto top
     486
     487     case -cosp
     488        set cosp="$2"; shift ; shift ; goto top
    485489
    486490     case -filtre
     
    542546endif
    543547
     548if ( "$cosp" == 'true' ) then
     549    set cppflags="$cppflags -DCPP_COSP"
     550    set include="$include"' -I$(LIBF)/cosp '
     551    set opt_dep="$opt_dep cosp"
     552#    set lcosp="-lcosp -lphy$physique "
     553     set lcosp="-lcosp "
     554   if ( $XNEC || $X8BRODIE || $X6NEC) then
     555#    set lcosp="-lsxcosp -lsxphy$physique "
     556     set lcosp="-lsxcosp "
     557   endif
     558endif
     559
    544560if ( "$physique" == 'nophys' ) then
    545561   set phys="L_PHY= LIBPHY="
     
    552568if ( "$veget" == 'true' ) then
    553569   set cppflags="$cppflags -DCPP_VEGET"
    554    set link_veget=" -lsechiba -lparameters -lstomate -lorglob -lparallel"
     570#   set link_veget=" -lsechiba -lparameters -lstomate -lorglob -lparallel"
     571   set link_veget=" -lsechiba -lparameters -lstomate"
    555572   if ( $XNEC || $X8BRODIE || $X6NEC) then
    556       set link_veget=" -lsxsechiba -lsxparameters -lsxstomate -lsxorglob -lsxparallel"
     573#      set link_veget=" -lsxsechiba -lsxparameters -lsxstomate -lsxorglob -lsxparallel"
     574      set link_veget=" -lsxsechiba -lsxparameters -lsxstomate "
    557575   endif
    558576endif
     
    902920##################
    903921   set f77=sxmpif90
    904    set f90=sxmpif90
     922   set f90=sxmpif90 
    905923   if $MODIPSL then
    906924     set opt_link="$opt_link -float0 -Wf,-A dbl4 -L$MODIPSLDIR -lblas"
     
    10291047FLAG_PARA="$FLAG_PARA"\
    10301048L_ADJNT="$adjnt" \
     1049L_COSP="$lcosp" \
    10311050L_CHIMIE="$libchimie" \
    10321051LOCAL_DIR="$localdir"  \
     
    10541073FLAG_PARA="$FLAG_PARA"\
    10551074L_ADJNT="$adjnt" \
     1075L_COSP="$lcosp" \
    10561076L_CHIMIE="$libchimie" \
    10571077LOCAL_DIR="$localdir"  \
Note: See TracChangeset for help on using the changeset viewer.