Skip to content

Commit

Permalink
fix template instantiation bug in DataMan serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonRuonanWang committed Apr 4, 2022
1 parent 6814f2f commit 63e5d6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion source/adios2/toolkit/format/dataman/DataManSerializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,6 @@ void DataManSerializer::Log(const int level, const std::string &message,
}
}

template <>
void DataManSerializer::PutData(
const std::string *inputData, const std::string &varName,
const Dims &varShape, const Dims &varStart, const Dims &varCount,
Expand Down
8 changes: 8 additions & 0 deletions source/adios2/toolkit/format/dataman/DataManSerializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ class DataManSerializer
void PutAttributes(core::IO &io);

// put a variable for writer
void PutData(const std::string *inputData, const std::string &varName,
const Dims &varShape, const Dims &varStart,
const Dims &varCount, const Dims &varMemStart,
const Dims &varMemCount, const std::string &doid,
const size_t step, const int rank, const std::string &address,
const std::vector<std::shared_ptr<core::Operator>> &ops,
VecPtr localBuffer = nullptr, JsonPtr metadataJson = nullptr);

template <class T>
void PutData(const T *inputData, const std::string &varName,
const Dims &varShape, const Dims &varStart,
Expand Down

0 comments on commit 63e5d6c

Please sign in to comment.