WarpX
Functions
OpenPMDHelpFunction.cpp File Reference
#include "OpenPMDHelpFunction.H"
#include "Utils/TextMsg.H"
#include <map>

Functions

std::string WarpXOpenPMDFileType ()
 
unsigned long num_already_flushed (openPMD::ParticleSpecies &currSpecies)
 

Function Documentation

◆ num_already_flushed()

unsigned long num_already_flushed ( openPMD::ParticleSpecies currSpecies)

Determine how many particles were already written in this species and step

This checks for a particle species the current size of the id attribute, if it exists, and if it does it takes its extent as the number of particles already on disk.

Note that this checks declared size, not necessarily written size.

Returns
exisitng extent of the "id" attribute or zero.

◆ WarpXOpenPMDFileType()

std::string WarpXOpenPMDFileType ( )

Determine the preferred file ending if unspecified

Returns
file ending without the "."