Changeset 742


Ignore:
Timestamp:
Dec 11, 2006, 2:46:46 PM (18 years ago)
Author:
Laurent Fairhead
Message:

On rajoute les options qu'il faut pour compiler IPCC_patch sur brodie
LF

Location:
LMDZ4/branches/IPSL-CM4_IPCC_patches
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/branches/IPSL-CM4_IPCC_patches/create_make_gcm

    r540 r742  
    2020if [ "$machine" = "mercure" ] ; then
    2121  X6NEC=1
     22fi
     23X8BRODIE=0
     24if [ "$machine" = "brodie" ] ; then
     25  X8BRODIE=1
    2226fi
    2327VPP=0
     
    5862echo '# Les differentes librairies pour l"edition des liens:'
    5963echo
    60 if ( [ "$XNEC" = '1' ] || [ "$X6NEC" = '1' ] ) ; then
     64if ( [ "$XNEC" = '1' ] || [ "$X6NEC" = '1' ] || [ "$X8BRODIE" = '1' ] ) ; then
    6165  echo 'dyn3d      = $(LIBO)/libsxdyn3d.a $(LIBO)/libsx$(FILTRE).a'
    6266  echo 'dyn2d      = $(LIBO)/libsxdyn2d.a'
     
    221225            fi
    222226         fi
    223          if ( [ "$XNEC" -eq '1' ] || [ "$X6NEC" = '1' ] ) ; then
     227         if ( [ "$XNEC" -eq '1' ] || [ "$X6NEC" = '1' ] || [ "$X8BRODIE" = '1' ] ) ; then
    224228           echo '       sxar r $(LIBO)/libsx'$diri'.a '$fili'.o ; \'
    225229         fi
  • LMDZ4/branches/IPSL-CM4_IPCC_patches/makegcm

    r592 r742  
    5252      set NCDFINC=`grep sx6nec ../../util/AA_make.gdef| grep NCDF_INC|sed -e "s/^.* =//"`
    5353      set NCDFLIB=`grep sx6nec ../../util/AA_make.gdef| grep NCDF_LIB|sed -e 's/^.* =//'`
     54    else  if ( `hostname` == brodie ) then
     55      set NCDFINC=`grep sx8brodie ../../util/AA_make.gdef| grep NCDF_INC|sed -e "s/^.* =//"`
     56      set NCDFLIB=`grep sx8brodie ../../util/AA_make.gdef| grep NCDF_LIB|sed -e 's/^.* =//'`
    5457    else
    5558      echo 'Probleme de definition des variables NCDFINC et NCDFLIB'
     
    100103set XNEC=0
    101104set X6NEC=0
     105set X8BRODIE=0
    102106if ( `uname` == HP-UX ) then
    103107   set machine=HP
     
    115119   set machine=ALPHA
    116120   set DEC=1
    117 else if ( `uname` == Linux && `hostname` != mercure ) then
     121else if ( `uname` == Linux && `hostname` != mercure  && `hostname` != brodie ) then
    118122   set machine=LINUX
    119123   set LINUX=1
     
    130134   set machine=X6NEC
    131135   set X6NEC=1
     136else if ( `hostname` == brodie) then
     137   set machine=X8BRODIE
     138   set X8BRODIE=1
    132139else
    133140   echo Vous travaillez sur une machine non prevue par le reglement
     
    245252   set optim90=' -clear -float0 -size_t64 -Ep -DNC_DOUBLE -dw -Wf\"-A dbl4\" -R5 -Wf,"-pvctl loopcnt=40000 fullmsg noassume "'
    246253   set optimtru90=' -clear -f4 -float0 -size_t64 -Ep -DNC_DOUBLE -dw -Wf\"-A dbl4\" -R2 -R3 -R4 -R5 -Wf,"-pvctl loopcnt=40000 fullmsg noassume"'
     254   set optim="$optim90"
     255   set optimbis=" "
     256   set mod_suffix="mod"
     257   set mod_loc_dir="./"
     258#################
     259else if $X8BRODIE then
     260##################
     261   set optdbl='-dw -Wf\"-A dbl4\"' 
     262   set optim90='-P stack -Wf,-pvctl res=whole,-A dbl4,-ptr byte -EP -R5 -float0 -dw -Wf,"-pvctl loopcnt=999999 fullmsg noassume" -I/SX/usr/include'
     263   set optimtru90="$optim90"
     264   set optim90="$optim90"
    247265   set optim="$optim90"
    248266   set optimbis=" "
     
    453471########################################################################
    454472
     473set cppflags=''
     474
     475if $X8BRODIE then
     476  set cppflags="$cppflags -DNC_DOUBLE -DBLAS -DSGEMV=DGEMV -DSGEMM=DGEMM"
     477endif
     478
    455479if ( $io == ioipsl ) then
    456480   set optim="$optim -DCPP_IOIPSL"
     
    539563    set nomlib=F90_${dim_}_t${ntrac}
    540564endif
    541 if ( $NEC || $XNEC || $X6NEC) then
     565if ( $NEC || $XNEC || $X6NEC || $X8BRODIE ) then
    542566    set nomlib=F90_${dim_}_t${ntrac}
    543567endif
     
    801825   endif
    802826   set mod_loc_dir="./"
     827##################
     828else if $X8BRODIE then
     829##################
     830   set f77=sxmpif90
     831   set f90=sxmpif90
     832   if $MODIPSL then
     833     set opt_link="$opt_link -float0 -Wf,-A dbl4 -L$MODIPSLDIR -lblas"
     834     if ($veget == true) then
     835       set opt_link="$opt_link $link_veget"
     836     endif
     837     if ($couple == true) then
     838        if ($psmile == true) then
     839        set opt_link="$opt_link -lsxioipsl -float0 $optdbl -P static $NCDFLIB "
     840        else
     841        set opt_link="$opt_link -lsxioipsl -loasis2.4_mpi2 -float0 $optdbl -P static $NCDFLIB "
     842        endif
     843     else
     844       set opt_link="$opt_link -lsxioipsl -float0 $optdbl -P static $NCDFLIB "
     845     endif
     846   else
     847#     set opt_link=" -float0 $optdbl -P static -L$MODIPSLDIR -lsxsechiba -lsxparameters -lsxstomate -lsxioipsl $NCDFLIB "
     848     set opt_link=" -float0 $optdbl -P static -L$MODIPSLDIR -lsxioipsl $NCDFLIB "
     849
     850   endif
     851   set mod_loc_dir="./"
    803852#################
    804853else
     
    821870set make="gmake RANLIB=ls"
    822871else if $X6NEC then
     872set make="gmake RANLIB=ls"
     873else if $X8BRODIE then
    823874set make="gmake RANLIB=ls"
    824875else
     
    882933 set optim90=" $optim90 -I$libo "
    883934 set optimtru90=" $optimtru90 -I$libo "
     935else if $X8BRODIE then
     936 set optim90=" $optim90 -I$libo "
     937 set optimtru90=" $optimtru90 -I$libo "
    884938else if $LINUX then
    885939 set optim90=" $optim90 -module $libo "
     
    900954else if $X6NEC then
    901955  set link="sxld $opt_link"
    902   set link="$f90 "
     956  set link="$f90 -Wl,-hlib_cyclic "
     957else if $X8BRODIE then
     958  set link="sxld $opt_link"
     959  set link="$f90 -Wl,-hlib_cyclic "
    903960endif
    904961
Note: See TracChangeset for help on using the changeset viewer.