Changeset 2395 for trunk


Ignore:
Timestamp:
Jul 2, 2020, 3:42:39 PM (4 years ago)
Author:
cmathe
Message:

MARS/util: compile and concatnc.F90 > clean

Location:
trunk/LMDZ.MARS/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/util/compile

    r2394 r2395  
    33# > compile concat
    44# > compile zrecast
    5 
    6 # get from:
    7 #   $>:module list
    8 # copy the netcdf module used (i.e. netcdf4/4.5.0-ifort15)
    9 #   $>:module display netcdf4/4.5.0-ifort15
    10 NETCDF='/opt/netcdf45/ifort15'
    115
    126# pgf90 -Bstatic   $1.F90 \
     
    159
    1610#ifort $1.F90 \
    17 #pgf90 -Bstatic $1.F90 \
     11#pgf90 $1.F90 \
    1812ifort $1.F90 \
    1913-I$NETCDF/include \
    20 #-L$NETCDF/lib -lnetcdf -o $1.e
    21 -L$NETCDF/lib -lnetcdff -o $1.e # on centos 7
     14-L$NETCDF/lib -lnetcdf -o $1.e
    2215
    2316# Before running that on you computer you might want to change :
  • trunk/LMDZ.MARS/util/concatnc.F90

    r2394 r2395  
    2828include "netcdf.inc" ! NetCDF definitions
    2929
    30 character (len=256), dimension(1000) :: file
     30character (len=80), dimension(1000) :: file
    3131! file(): input file(s) names(s)
    3232character (len=30), dimension(16) :: notconcat
     
    3434character (len=50), dimension(:), allocatable :: var
    3535! var(): name(s) of variable(s) that will be concatenated
    36 character (len=256) :: tmpvar,tmpfile,title,units
     36character (len=50) :: tmpvar,tmpfile,title,units
    3737! tmpvar(): used to temporarily store a variable name
    3838! tmpfile(): used to temporarily store a file name
     
    138138
    139139nbfile=0
    140 read(*,'(a256)') tmpfile
     140read(*,'(a50)') tmpfile
    141141do While (len_trim(tmpfile).ne.0)
    142142   nbfile=nbfile+1
    143143   file(nbfile)=tmpfile
    144    read(*,'(a256)') tmpfile
     144   read(*,'(a50)') tmpfile
    145145enddo
    146146
Note: See TracChangeset for help on using the changeset viewer.