[MITgcm-support] [Fwd: Auto-discard notification]

Ed Hill ed at eh3.com
Tue Sep 28 12:24:25 EDT 2004


On Tue, 2004-09-28 at 12:14, Karsten Friis wrote:
> Ed:
> 
> thanks a lot! - I'll chose option #1 I guess this is the easiest way...
> 
> Nevertheless I would like to reconfirm with you about this:
> After installing the netCDF library I would modify the file 
> MITgcm/tools/build_options/linux_ia32_g77 to
> ...
> check_netcdf_libs()  {
>      echo "" > genmake_tnc.log
>      cat <<EOF > genmake_tnc.for
>        program fgennc
> #include "netcdf.inc"
>        INCLUDES="-I/diatom/s0/kfriis/netcdf-3.5.1/src/fortran"   c this 
> line is added
>        LIBS="-L/diatom/s0/kfriis//netcdf-3.5.1/src/libsrc -lnetcdf"      c 
> this line is added
>        integer iret, ncid, xid
>        iret = nf_create('genmake_tnc.nc', NF_CLOBBER, ncid)
>        IF (iret .NE. NF_NOERR) write(*,*) NF_STRERROR(iret)
>        iret = nf_def_dim(ncid, 'X', 11, xid)
> ...
> and save this file as linux_ia32_g77_diatom
> 
> Then I would use the genmake2
> $  genmake2 -mods=../code -of=./build_options/linux_ia32_g77_diatom
> 
> May I instead, copy the linux_ia32_g77_diatom file into the ../code directory
> and so type in
> $  genmake2 -mods ../code
> or is the genmake2 assuming the file in the build_options directory?


Hi Karsten,

Its OK to put your custom "optfiles" anywhere.  The only thing you need
to do is tell genmake2 which one to use.  To do so, you may have to
specify a full path and file name such as:

  $  genmake2 -of=/THE/FULL/PATH/TO/YOUR/CUSTOM_OPTFILE

Ed

-- 
Edward H. Hill III, PhD
office:  MIT Dept. of EAPS;  Rm 54-1424;  77 Massachusetts Ave.
             Cambridge, MA 02139-4307
emails:  eh3 at mit.edu                ed at eh3.com
URLs:    http://web.mit.edu/eh3/    http://eh3.com/
phone:   617-253-0098
fax:     617-253-4464




More information about the MITgcm-support mailing list