Soil Water Balance (SWB2)
Loading...
Searching...
No Matches
netcdf_c_api_interfaces Module Reference

Provides Fortran interfaces to the NetCDF C API. This approach is much more straightforward than using the old Fortran 90 NetCDF interface, which was built on top of the Fortran 77 interface, which (finally) was built atop the C interface. More...

Data Types

interface  nc__open
interface  nc_close
interface  nc_copy_att
interface  nc_create
interface  nc_def_dim
interface  nc_def_var
interface  nc_def_var_deflate
interface  nc_del_att
interface  nc_enddef
interface  nc_get_att_double
interface  nc_get_att_float
interface  nc_get_att_int
interface  nc_get_att_short
interface  nc_get_att_text
interface  nc_get_var_double
interface  nc_get_var_float
interface  nc_get_var_int
interface  nc_get_var_short
interface  nc_get_vars_double
interface  nc_get_vars_float
interface  nc_get_vars_int
interface  nc_get_vars_short
interface  nc_inq_att
interface  nc_inq_attname
interface  nc_inq_dim
interface  nc_inq_dimname
interface  nc_inq_format
interface  nc_inq_natts
interface  nc_inq_ndims
interface  nc_inq_nvars
interface  nc_inq_unlimdim
interface  nc_inq_var
interface  nc_open
interface  nc_put_att_double
interface  nc_put_att_float
interface  nc_put_att_int
interface  nc_put_att_text
interface  nc_put_var_double
interface  nc_put_var_float
interface  nc_put_var_int
interface  nc_put_var_short
interface  nc_put_vars_double
interface  nc_put_vars_float
interface  nc_put_vars_int
interface  nc_put_vars_short
interface  nc_redef
interface  nc_strerror

Detailed Description

Provides Fortran interfaces to the NetCDF C API. This approach is much more straightforward than using the old Fortran 90 NetCDF interface, which was built on top of the Fortran 77 interface, which (finally) was built atop the C interface.

Note
old interface code didn't take advantage of the iso_c_binding types c_size_t or c_prtdiff_t, but rather used pointers (type c_ptr) to pass by reference. This appears to be unneccessary:
Todo
change "type (c_ptr), value" entries to "integer (c_size_t)" or similar, depending on the size of the integer declared in the C code