Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openPMD plugin: Workaround BP5 attribute datatype overriding #4408

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions include/picongpu/plugins/openPMD/openPMDWriter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1524,6 +1524,13 @@ make sure that environment variable OPENPMD_BP_BACKEND is not set to ADIOS1.
threadParams->openSeries(::openPMD::Access::CREATE);
}

/* attributes written here are pure meta data */
WriteMeta writeMetaAttributes;
writeMetaAttributes(
*threadParams->openPMDSeries,
(*threadParams->openPMDSeries).writeIterations()[threadParams->currentStep],
threadParams->currentStep);

bool dumpAllParticles = plugins::misc::containsObject(vectorOfDataSourceNames, "species_all");

/* write fields */
Expand Down Expand Up @@ -1602,13 +1609,6 @@ make sure that environment variable OPENPMD_BP_BACKEND is not set to ADIOS1.
writeIdProviderStartId(*threadParams, idProviderState.startId, idProviderState.maxNumProc);
writeIdProviderNextId(*threadParams, idProviderState.nextId);

/* attributes written here are pure meta data */
WriteMeta writeMetaAttributes;
writeMetaAttributes(
*threadParams->openPMDSeries,
(*threadParams->openPMDSeries).writeIterations()[threadParams->currentStep],
threadParams->currentStep);

// avoid deadlock between not finished pmacc tasks and mpi calls in
// openPMD
__getTransactionEvent().waitForFinished();
Expand Down