From 053d95ce1dbdde46f5639025079fb6038de21028 Mon Sep 17 00:00:00 2001 From: Oliver Heidmann <oliver.heidmann@mpimet.mpg.de> Date: Mon, 20 Jan 2025 12:13:02 +0100 Subject: [PATCH] fixed wring function being used --- src/cdo_varlist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cdo_varlist.h b/src/cdo_varlist.h index 0382569f2..fe3b51179 100644 --- a/src/cdo_varlist.h +++ b/src/cdo_varlist.h @@ -66,7 +66,7 @@ public: VarList(int _vlistID) : vlistID(_vlistID) { cdoVars_init(vars, _vlistID); - m_maxFields = vlistNumGrids(_vlistID); + m_maxFields = vlistNumFields(_vlistID); m_numSteps = vlistNtsteps(_vlistID); m_numConstVars = num_const_vars(vars); m_numVaryingVars = num_varying_vars(vars); -- GitLab