[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
970213: F90 and netcdf (fwd)
- Subject: 970213: F90 and netcdf (fwd)
- Date: Thu, 13 Feb 97 15:54:58 -0700
Hi Harry,
> To: address@hidden
> From: Harry Edmon <address@hidden>
> Subject: F90 and netcdf (fwd)
> Organization: University of Washington
> Keywords: 199702132000.NAA24865
In the above message, you wrote:
> Have you looked at all at Fortran 90 support for netcdf? I am not well
> acquainted with F90, so I'm not complete sure what the issue is here, but I
> thought I would pass it on.
>
> >>>>> Forwarded message from Jamie Kettleborough <address@hidden>
>
> Hello Harry,
>
> I've just been talking to David and he thought you were a better person
> to talk to about this.
>
> I'm going to be using the fortran netcdf library from F90 programs. So
> far in the tests I've done everyting seems to be OK, except for one small
> thing. The netcdf include file containing the PARAMETERs is in fixed
> source form (ie c's for comment lines), but if you include the file in a
> program written in free form then the compiler complains. At the moment
> my simple work round this is to make a copy of the include file and
> replace the 'c' with '!' for comment lines. This is OK, except of course
> when you update the netcdf library I have an old copy of the netcdf
> include file. Do you know is there anyway round this? Either with
> compiler options or anything else.
>
> Hmm thinking about it I guess one way would be to simply in a Makefile
> take a copy of the include file that is in /usr/local... and then just
> run it through sed to strip out the comments lines completely. Any other
> ideas?
>
> Jamie
The next release of netCDF 2 will use exclamation points (!) in column
1 in the include-file `netcdf.inc' to indicate a comment. This should
support inclusion by both f77 and f90 compilers using either fixed or
free formats.
--------
Steve Emmerson <address@hidden>