Install Diva

From GHER

Jump to: navigation, search

After loading diva's code, compile this one. If you are under Linux OS and in command line :

#Find divacompile, here placed in diva/src/Fortran

[Delphine@Abysciences ~]$ cd diva/src/Fortran
[Delphine@Abysciences ~/diva/src/Fortran]$ ls
Calc             divacompile   Extensions  NC        Pipetest  Util
compilation.log  divacompile~  Mesh        NoPlplot  Plplot

# edit this function

[Delphine@Abysciences ~/diva/src/Fortran]$ gedit divacompile

In a text editor of your choice, replace your code by this one :

echo ///////////////////////////
echo      DIVA compilation
echo ///////////////////////////
echo ' ' 
# GNU-cygwin, netcdf compiled for no-cygwin
#compiler=gfortran 
compiler='gfortran -fconvert=big-endian'
flags='-O3'
#noglobals=
#nocyg='-O3 -mno-cygwin'
nclib='-lnetcdff -lnetcdf' 
...

NB : compiler=gfortran

# declare gfortran compilator

flags='-O3'

# '-03' for code optimization

#noglobals=

#nocyg='-O3 -mno-cygwin'

# for windows

nclib='-lnetcdff -lnetcdf'

#-l for librairies

# netcdff", the 2nd F stands for Fortan. The code is in C++

#' ' : ignore specials characters

Personal tools