htcp

Properties of water suspended in clouds
git clone git://git.meso-star.fr/htcp.git
Log | Files | Refs | README | LICENSE

commit 7b1c65b4507b212597de99c3d54565fa07c91f12
parent b0db8ff0ab6e89cbe4c25873c6b2a2e02201893f
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 28 Sep 2018 09:31:37 +0200

Update the open mode of the nc_open function

On some NetCDF the previous mode 'NC_WRITE|NC_MMAP' strangely produced
a NC_EINVAL error. The current open mode is 0, i.e. NC_NOWRITE.

Diffstat:
Msrc/les2htcp.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/les2htcp.c b/src/les2htcp.c @@ -206,6 +206,7 @@ ncerr_to_str(const int ncerr) case NC_ECHAR: str = "NC_ECHAR"; break; case NC_EDIMMETA: str = "NC_EDIMMETA"; break; case NC_EHDFERR: str = "NC_EHDFERR"; break; + case NC_EINVAL: str = "NC_EINVAL"; break; case NC_ENOMEM: str = "NC_ENOMEM"; break; case NC_ENOTATT: str = "NC_ENOTATT"; break; case NC_ENOTVAR: str = "NC_ENOTVAR"; break;