Opened 16 years ago

Closed 16 years ago

#228 closed bug (Fixed)

Pointer association arguments to nf_fwrite*d routines

Reported by: arango Owned by: arango
Priority: major Milestone: Release ROMS/TOMS 3.2
Component: Nonlinear Version: 3.2
Keywords: Cc:

Description

The generic NetCDF output routines nf_fwrite2d, nf_fwrite3d, and nf_fwrite4d routines were modified yesterday and included inside a module to allow optional arguments (see src:ticket:226). Since these routines are now inside an explicit interface, we need to follow the rules of pointer association for arrays passed as arguments. Notice that we follow such rules in other ROMS routines. I just missed such association in the IO routined modified by src:ticket:226. The three compilers that I tried pgf90, gfortran, and ifort 10.0 did not gave me errors.

However, Rosa Balbin tried using ifort 10.1 and got the error reported in the forum. We upgraded ifort to version 10.1 and were able to reproduce this error.

It is interesting how the other compiler relax such rules. The ifort folks treated this relaxation as a compiler bug which they corrected in version 10.1. I am personally sympathetic with strict compilers.

Change History (1)

comment:1 by arango, 16 years ago

Resolution: Fixed
Status: newclosed
Note: See TracTickets for help on using tickets.