Installation with g95

I (Arthur) installed the macport version of g95 on a Mac OSX 10.5.8

$ g95 --v
Using built-in specs.
Configured with: ../configure --prefix=/opt/local/lib/gcc-lib/i386-apple-darwin9.0.0/4.0.3 --with-libiconv-prefix=/opt/local/include --enable-languages=c --with-as=/usr/bin/as --with-ld=/usr/bin/ld --with-nm=/usr/bin/nm --with-included-gettext
Thread model: posix
gcc version 4.0.3 (g95 0.90!) Jan 15 2008

NETCDF compilation

  • download the 4.0.1 version of NETCDF from unidata and unzip the archive
$ cd netcdf-4.0.1/
$ F90=g95 F77=g95 ./configure --prefix=/usr/local
$ sudo make check install

NEMOTAM and NEMOVAR compilation

in $basepath/nemo/fcmconfig/bld/$compil_target/nemo.cfg and $basepath/nemovar/fcmconfig/bld/$compil_target/nemo.cfg

edit the lines

bld::tool::fc      g95
bld::tool::fflags  -c -O3 -r8 -ffree-line-length-huge


%netcdf                 /usr/local
Last modified 11 years ago Last modified on 2009-09-18T13:29:09+02:00