Skip to content
Snippets Groups Projects
Commit 8de906be authored by pnorbert's avatar pnorbert Committed by williamfgc
Browse files

Bp1read (#24)

* Support PutDeferred() in ADIOS1 writer

* added PerformPuts() to ADIOS1Writer

* refactor toolkit/interop/adios1/ADIOS1Common in preparation for having separate Write and Read classes

* Working towards ADIOS1 Reader. Changes the Engine.BeginStep() signature for all engines.

* Updates to ADIOS1 reader, variables and scalar values are propagated now at Open

* fix ADIOS1 reader using the correct step selection values
parent 1756bed3
No related branches found
No related tags found
1 merge request!294Bp1read : Initial Reading Capabilities and latest API
......@@ -45,20 +45,20 @@ AdvanceStatus ADIOS1Reader::BeginStep(AdvanceMode mode, const float timeout_sec)
#define declare_type(T) \
void ADIOS1Reader::DoGetSync(Variable<T> &variable, T *values) \
{ \
m_ADIOS1.ScheduleReadCommon( \
variable.m_Name, variable.m_Start, variable.m_Count, \
variable.GetAvailableStepsStart(), \
variable.GetAvailableStepsStart(), variable.m_ReadAsLocalValue, \
variable.m_ReadAsJoined, (void *)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); \
m_ADIOS1.PerformReads(); \
} \
void ADIOS1Reader::DoGetDeferred(Variable<T> &variable, T *values) \
{ \
m_ADIOS1.ScheduleReadCommon( \
variable.m_Name, variable.m_Start, variable.m_Count, \
variable.GetAvailableStepsStart(), \
variable.GetAvailableStepsStart(), variable.m_ReadAsLocalValue, \
variable.m_ReadAsJoined, (void *)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); \
}
ADIOS2_FOREACH_TYPE_1ARG(declare_type)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment