Back to home page

MITgcm

 
 

    


Warning, /tools/netcdf_notes/netcdf_gfortran_g95 is written in an unsupported language. File is not indexed.

view on githubraw file Latest commit d42371f5 on 2006-11-28 19:30:34 UTC
d42371f5cb Davi*0001 # Set-ups to compile the netcdf library with gfortran and g95.
                0002 # Compatible with build options files darwin_ia32_gfortan and darwin_ia32_g95.
                0003 # Tested on MacBookPro.
                0004  
                0005 wget ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3.6.0-p1.tar.gz
                0006 tar -xzvf netcdf-3.6.0-p1.tar.gz
                0007 cd netcdf-3.6.0-p1/src
                0008 
                0009 ###### GFORTRAN
                0010 
                0011 export FLIBS=-L/usr/local/lib/
                0012 export FC=gfortran
                0013 export FC90=gfortran
                0014 export FFLAGS='-fsecond-underscore'
                0015 export F90FLAGS='-fsecond-underscore'
                0016 export CPPFLAGS='-Df2cFortran'
                0017 
                0018 ./configure --prefix=../gfortran
                0019 make
                0020 make check
                0021 make install
                0022 
                0023 ###### GFORTRAN
                0024 
                0025 export FC=g95
                0026 export FC90=g95
                0027 export FFLAGS='-O2'
                0028 export F90FLAGS='-O2'
                0029 export CPPFLAGS='-Df2cFortran'
                0030 
                0031 ./configure --prefix=../g95
                0032 make
                0033 make check
                0034 make install
                0035