[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #IXC-822262]: PGFTN-S-0034-Syntax error at or near / (test_write.F: 167)


> Attached it is the config.log file requested from you via Github. The related 
> issue report can be viewed from: 
> https://github.com/Unidata/netcdf-fortran/issues/31.

The error message from pg77, a strict Fortran-77 compiler, is correct, 
because the syntax for passing array constants, "(/ 111, 222, ..., 555 /)"
to functions or subroutines did not exist in the Fortran-77 standard, so
both statements in 

        err = nf_def_var(ncid, 'abc', NF_INT, 0, (/0/), vid)
        err = nf_get_var1_double(ncid, vid, (/0/), var)

are not valid Fortran-77.

A workaround would be to use pg90 instead of pg77 for compiling the
Fortran-77 API, which could be accomplished either by unsetting the 
environment variable F77 before running configure (in which case the
value you have set for FC, "pgfortran", will be used to build the F77 API,
or you could explicitly set F77=pgfortran instead of F77=pg77.

An alternative, if you have some reason to want to use the pg77 compiler,
is to store the 0 value in an array and pass the array name instead of 
"(/0/)" in those two function calls, but then you might run into similar
errors in other functions that would have to be fixed analogously to
conform strictly to the Fortran77 standard.

If you decide to take the latter course, we'd appreciate it if you could
create a git pull request with the changes that we could integrate into
our netcdf-fortran release, as we currently have limited resources for 
supporting the netcdf-fortran library ...



> Beforehand thanks for your help.
> Best Regards,
> --
> --------------------------------------------------------------
> Nestor Waldyd Alvarez Villa
> Ingeniero Electrónico. MSc. C. Telecomunicaciones.
> Universidad Pontificia Bolivariana
> mailto:address@hidden
> Medellín - Antioquía.
> --------------------------------------------------------------
> ________________________________________
> Von: Unidata netCDF Support <address@hidden>
> Gesendet: Freitag, 2. Oktober 2015 09:04
> An: Nestor Waldyd Alvarez Villa
> Betreff: [netCDF #IXC-822262]: PGFTN-S-0034-Syntax error at or near / 
> (test_write.F: 167)
> Nestor Waldyd Alvarez Villa,
> Your Ticket has been received, and a Unidata staff member will review it and 
> reply accordingly. Listed below are details of this new Ticket. Please make 
> sure the Ticket ID remains in the Subject: line on all correspondence related 
> to this Ticket.
> Ticket ID: IXC-822262
> Subject: PGFTN-S-0034-Syntax error at or near / (test_write.F: 167)
> Department: Support netCDF
> Priority: Normal
> Status: Open
> The NetCDF libraries are developed at the Unidata Program Center,
> in Boulder, Colorado, funded primarily by the National Science Foundation.
> All support requests are handled by the development team. No dedicated
> support staff are funded at this time. For this reason we cannot guarantee
> response times, nor that we can resolve every support issue, although we
> do our best to respond within 72 hours.
> It is in the nature of support requests that the same question is asked many
> times. We urge you to search the support archives for material relating to
> your support request:
> http://www.unidata.ucar.edu/search.jsp?support&netcdf
> If you are having trouble building netCDF, please take a look at the
> "Building NetCDF" page:
> http://www.unidata.ucar.edu/software/netcdf/docs/building.html
> or the (unfortunately somewhat out-of-date) NetCDF Build Troubleshooter page:
> http://www.unidata.ucar.edu/software/netcdf/docs/troubleshoot.html
> Windows users should see the FAQ list:
> http://www.unidata.ucar.edu/software/netcdf/docs/faq.html#windows_netcdf4_2
> Complete documentation (including a tutorial, and sample programs in C, 
> Fortran,
> Java, and other programming languages) can be found on the netCDF 
> Documentation page:
> http://www.unidata.ucar.edu/software/netcdf/docs/
> http://www.unidata.ucar.edu/software/netcdf/examples/programs/
> If you resolve your issue through one of these methods, please send a reply to
> this email, letting us know that you no longer need support. This will help
> us spend more time on netCDF development.
> Best regards,
> Unidata User Support

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu

Ticket Details
Ticket ID: IXC-822262
Department: Support netCDF
Priority: Normal
Status: Closed