Newer
Older
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
Podhorszki, Norbert
committed
* ADIOS1Reader.cpp
* Author: Norbert Podhorszki pnorbert@ornl.gov
#include "ADIOS1Reader.h"
#include "ADIOS1Reader.tcc"
Podhorszki, Norbert
committed
#include <adios_error.h>
#include "adios2/helper/adiosFunctions.h" // CSVToVector
ADIOS1Reader::ADIOS1Reader(IO &io, const std::string &name, const Mode openMode,
MPI_Comm mpiComm)
: Engine("ADIOS1Reader", io, name, openMode, mpiComm),
m_ADIOS1(name, mpiComm, io.m_DebugMode)
m_EndMessage = " in call to IO Open ADIOS1Reader " + m_Name + "\n";
m_ADIOS1.Open(); // adios_read_init_method(m_ReadMethod, mpiComm, "");
m_ADIOS1.GenerateVariables(io);
Podhorszki, Norbert
committed
ADIOS1Reader::~ADIOS1Reader()
{
Podhorszki, Norbert
committed
}
Podhorszki, Norbert
committed
AdvanceStatus ADIOS1Reader::BeginStep(AdvanceMode mode, const float timeout_sec)
Podhorszki, Norbert
committed
{
Podhorszki, Norbert
committed
}
void ADIOS1Reader::DoGetSync(Variable<T> &variable, T *values) \
{ \
m_ADIOS1.ScheduleReadCommon(variable.m_Name, variable.m_Start, \
variable.m_Count, variable.m_StepStart, \
variable.m_StepCount, \
variable.m_ReadAsLocalValue, \
variable.m_ReadAsJoined, (void *)values); \
void ADIOS1Reader::DoGetDeferred(Variable<T> &variable, T *values) \
m_ADIOS1.ScheduleReadCommon(variable.m_Name, variable.m_Start, \
variable.m_Count, variable.m_StepStart, \
variable.m_StepCount, \
variable.m_ReadAsLocalValue, \
variable.m_ReadAsJoined, (void *)values); \
Podhorszki, Norbert
committed
ADIOS2_FOREACH_TYPE_1ARG(declare_type)
#undef declare_type
Podhorszki, Norbert
committed
Podhorszki, Norbert
committed
Podhorszki, Norbert
committed
void ADIOS1Reader::Close(const int transportIndex) { m_ADIOS1.Close(); }
Podhorszki, Norbert
committed
void ADIOS1Reader::Init()
if (m_OpenMode != Mode::Read)
"ERROR: ADIOS1Reader only supports OpenMode::r (read) access "
"mode " +
m_EndMessage);
}
Podhorszki, Norbert
committed
InitParameters();
Podhorszki, Norbert
committed
void ADIOS1Reader::InitParameters()
{
Podhorszki, Norbert
committed
}
Podhorszki, Norbert
committed
void ADIOS1Reader::InitTransports()
}