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 mode,
: Engine("ADIOS1Reader", io, name, mode, mpiComm),
m_EndMessage = " in call to IO Open ADIOS1Reader " + m_Name + "\n";
Podhorszki, Norbert
committed
ADIOS1Reader::~ADIOS1Reader()
{
Podhorszki, Norbert
committed
}
Podhorszki, Norbert
committed
StepStatus ADIOS1Reader::BeginStep(const StepMode mode,
const float timeoutSeconds)
Podhorszki, Norbert
committed
{
return m_ADIOS1.AdvanceStep(m_IO, mode, timeoutSeconds);
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_StepsStart, \
variable.m_StepsCount, \
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_StepsStart, \
variable.m_StepsCount, \
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()
}