Skip to content

Commit 1c50b90

Browse files
committed
Merge iteration group with Container<iteration> group
1 parent 018a426 commit 1c50b90

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/IO/ADIOS/ADIOS2IOHandler.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,9 @@ void ADIOS2IOHandlerImpl::openPath(
475475
std::string prefix =
476476
filePositionToString( setAndGetFilePosition( writable->parent ) );
477477
std::string suffix = auxiliary::removeSlashes( parameters.path );
478-
std::string infix = auxiliary::ends_with( prefix, '/' ) ? "" : "/";
478+
std::string infix = suffix.empty() || auxiliary::ends_with( prefix, '/' )
479+
? ""
480+
: "/";
479481

480482
/* ADIOS has no concept for explicitly creating paths.
481483
* They are implicitly created with the paths of variables/attributes. */

src/Iteration.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ Iteration::flushStepBased()
261261
if( !written() )
262262
{
263263
/* create iteration path */
264-
Parameter< Operation::CREATE_PATH > pCreate;
265-
pCreate.path = "currentIteration";
266-
IOHandler->enqueue( IOTask( this, pCreate ) );
264+
Parameter< Operation::OPEN_PATH > pOpen;
265+
pOpen.path = "";
266+
IOHandler->enqueue( IOTask( this, pOpen ) );
267267
}
268268

269269
flush();

src/Series.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ Series::read()
10611061
IOHandler->flush();
10621062
uint64_t index = Attribute( *aRead.resource ).get< uint64_t >();
10631063
Iteration & i = iterations[ index ];
1064-
pOpen.path = "currentIteration";
1064+
pOpen.path = "";
10651065
IOHandler->enqueue( IOTask( &i, pOpen ) );
10661066
i.read();
10671067
}
@@ -1187,7 +1187,7 @@ Series::openIteration( uint64_t index, Iteration iteration )
11871187
IOHandler->enqueue( IOTask( &iterations, pOpen ) );
11881188
/* open iteration path */
11891189
pOpen.path = *m_iterationEncoding == IterationEncoding::stepBased
1190-
? "currentIteration"
1190+
? ""
11911191
: std::to_string( index );
11921192
IOHandler->enqueue( IOTask( &iteration, pOpen ) );
11931193
switch( *iteration.m_closed )

0 commit comments

Comments
 (0)