From 3353cad0b365bc870306ccaa21f701859e68a92f Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 8 Nov 2023 16:20:32 +0100 Subject: codec-netcdf: Multidimensional arrays implemented --- c++/codec-netcdf/netcdf.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'c++/codec-netcdf/netcdf.h') diff --git a/c++/codec-netcdf/netcdf.h b/c++/codec-netcdf/netcdf.h index d579b7f..c99217e 100644 --- a/c++/codec-netcdf/netcdf.h +++ b/c++/codec-netcdf/netcdf.h @@ -2,7 +2,7 @@ #include #include -#include +#include #include @@ -66,7 +66,7 @@ public: */ template error_or encode() { - return void_t{}; + return make_error(); } /** @@ -78,7 +78,7 @@ public: int rc{}; rc = nc_open(from_decode.get_path().c_str(), NC_NOWRITE, &ncid); - if(rc){ + if(rc != NC_NOERR){ // Don't know how to get the error, so fail critically. return make_error(); } -- cgit v1.2.3