I’m experiencing an error with the use of a NetCDF function that PGI’s compiler doesn’t like (yet Intel’s ifort just passes by with no complaint). Namely, it’s the NF_DEF_VAR_FILL NetCDF FORTRAN 77 function.
In our code, we call this by:
STATUS = NF_DEF_VAR_FILL (UNIT, varid, NF_NOFILL, )
where we are passing a ‘NULL’ to the command by passing nothing to FILL_VALUE:
FILL_VALUE A value which will be used as the fill value for the variable. Must be the same type as the variable. This will be written to a _FillValue attribute, created for this purpose. If NULL, this argument will be ignored.
As I said, Intel compiles this call just fine, but PGI says:
PGF90-S-0034-Syntax error at or near )
I imagine this is because it’s seeing a trailing comma. Is there a compile-time flag I can use to emulate the Intel behavior (a la -fno-ugly-comma, I guess)? Or is there a standard way to pass a ‘NULL’ to a Fortran interface like this?