Opened 4 years ago

Last modified 4 years ago

#67 new enhancement

Get rid of #ifdef NC_DOUBLE in utilities

Reported by: abierjon Owned by:
Priority: minor Milestone:
Component: MARS GCM Version:
Keywords: Cc:

Description

Since GCM outputs are simple precision floats, and NetCDF routines can easily convert simple to double and vice versa, the #ifdef NC_DOUBLE structures are not needed anymore. For example, one should replace in all utilities :

#ifdef NC_DOUBLE

ierr = NF_GET_VAR_DOUBLE(nid,var,lat)

#else

ierr = NF_GET_VAR_REAL(nid,var,lat)

#endif

by :

ierr = NF_GET_VAR_REAL(nid,var,lat)

Change History (1)

comment:1 Changed 4 years ago by abierjon

Done for concatnc.F90, localtime.F90, solzenangle.F90 by r2434.

Note: See TracTickets for help on using tickets.