Use a wrapper for some netcdf calls in gs2_io
Peter Hill
Branch: feature/gs2_io-netcdf-wrapper
Branch: next
Merged
Merged pull request
Merged in feature/gs2_io-netcdf-wrapper (pull request #445)
Merged in feature/gs2_io-netcdf-wrapper (pull request #445)
Wrap calls to
nf90_def_var
andnf90_put_att
to handle creation and errors consistently, plus some other minor tidy-up of gs2_io. Net reduction of about 300 lines. Pulled out of #314Reduce duplication in
gs2_io::inquire_dims
anddefine_dims
Reduce duplication in
gs2_io::inquire_vars
anddefine_vars
Add message to some netcdf errors in old diagnostics
Condense definitions of netCDF dimension arrays
Fix gs2_io not compiling without netCDF
Remove unused local variables in gs2_io
Â