Skip to content

Commit

Permalink
Merge pull request #4408 from franzpoeschel/fix-bp5-openpmd-plugin-setDt
Browse files Browse the repository at this point in the history
openPMD plugin: Workaround BP5 attribute datatype overriding
  • Loading branch information
psychocoderHPC authored Jan 10, 2023
2 parents 6336305 + b0023bf commit 31e6cc6
Showing 1 changed file with 7 additions and 7 deletions.
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

0 comments on commit 31e6cc6

Please sign in to comment.