diff --git a/source/adios2/ADIOS.inl b/source/adios2/ADIOS.inl index 6be677d6284227512be935e4d043c87d89112817..553b34e983d8ee0fc060db450f79b1887d39edfc 100644 --- a/source/adios2/ADIOS.inl +++ b/source/adios2/ADIOS.inl @@ -24,7 +24,7 @@ VariableCompound &ADIOS::DefineVariableCompound(const std::string &name, CheckVariableInput(name, dimensions); const unsigned int size = m_Compound.size(); m_Compound.emplace(size, VariableCompound(name, sizeof(T), dimensions, - globalDimensions, globalOffsets, + globalDimensions, globalOffsets, false, m_DebugMode)); m_Variables.emplace(name, std::make_pair(GetType<T>(), size)); return m_Compound.at(size); diff --git a/source/adios2/core/Engine.cpp b/source/adios2/core/Engine.cpp index 81d17e75685f981b756ad1239fac251cce7a7f2a..af390ee594eeb1be3f0123d1575a39ea58f5978f 100644 --- a/source/adios2/core/Engine.cpp +++ b/source/adios2/core/Engine.cpp @@ -224,6 +224,7 @@ Variable<unsigned int> * Engine::InquireVariableUInt(const std::string & /*name*/, const bool /*readIn*/) { EngineThrowUp(m_EngineType, "InquireVariableUInt"); + return nullptr; } Variable<long int> *Engine::InquireVariableLInt(const std::string & /*name*/, const bool /*readIn*/) diff --git a/source/adios2/core/VariableBase.h b/source/adios2/core/VariableBase.h index 2509c851f73080576105a7fa71f2757ca2b3e2e6..5f42708a18637c85af524fe86b7a296cd20dbc9d 100644 --- a/source/adios2/core/VariableBase.h +++ b/source/adios2/core/VariableBase.h @@ -155,8 +155,10 @@ public: "Variable.SetSelection() for local or joined array '" + m_Name + "' should pass an empty 'start' argument\n"); } - ConvertUint64VectorToSizetVector(count, m_Count); - ConvertUint64VectorToSizetVector(start, m_Start); +// ConvertUint64VectorToSizetVector(count, m_Count); +// ConvertUint64VectorToSizetVector(start, m_Start); + m_Count = count; + m_Start = start; } /** @@ -165,7 +167,10 @@ public: */ void SetSelection(const SelectionBoundingBox &sel) { - SetSelection(sel.m_Start, sel.m_Count); + Dims start, count; + ConvertUint64VectorToSizetVector(sel.m_Start, start); + ConvertUint64VectorToSizetVector(sel.m_Count, count); + SetSelection(start, count); } /**