Releases: geospace-code/nc4fortran
Releases · geospace-code/nc4fortran
Read character improvement, install and build type defaults
- Read character automatically trims to c_null_char if present, making it cleaner / easier to read character values
- better default install directory when using FetchContent
- build type default release
Better FindHDF5 and compiler options
v1.4.3 cmake max 3.22
more robust across platforms
- action= rw, w, r, r+, a for clarity
FindHDF5 more robust
BUGFIX: default dim names start with variable name
this avoids stomping of dims by dissimilar shaped variables when dim names are not specified.
remove open(status=) parameter, use action instead
The h%open(..., status=)
parameter is DEPRECATED and is ignored. Its functionality was duplicated by the h%open(..., action=)
parameter.
As before:
h%open(...)
defaults toaction='rw'
, which opens or creates a file.action='w'
erases an existing file if present.action='r+'
oraction='r'
errors if file doesn't exist
FindHDF5 optim, note cmake >= 3.20 needed for autobuild
- Note with error message that CMake >= 3.20 needed for autobuild of NetCDF (let us know if this is an issue, we could go back to CMake 3.15, with less reliability)
- add intel compiler optimization flags
- don't override CMAKE_INSTALL_PREFIX for nc4fortran used via CMake FetchContent
add auto-close destructor
using best principles of object-oriented programming, add a auto-closing file destructor, such that when netcdf_file
leaves procedure scope, the file data is flushed and the file is closed.
correct error message when compilers ABI-compatible
v1.2.6 correct ABI check error message
install robustness
CMake >= 3.14 required for general robustness
install, preset improvments
also avoid externalproject constant rebuilds