24 lines
656 B
C++
24 lines
656 B
C++
#ifndef MPI_PARTICLE_READER_H
|
|
#define MPI_PARTICLE_READER_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace particle {
|
|
class SerializedParticle;
|
|
}
|
|
|
|
class MpiParticleReader {
|
|
public:
|
|
MpiParticleReader(std::string directory, std::string filename, int restart_at);
|
|
MpiParticleReader(std::string absolute_filename);
|
|
MpiParticleReader(std::string abs_filename_without_extension, int restart_at);
|
|
|
|
void readParticles(std::vector<particle::SerializedParticle>& storage_queue);
|
|
void readParticles(std::vector<particle::SerializedParticle>& storage_queue, int nold);
|
|
|
|
private:
|
|
std::string absolute_filename_;
|
|
};
|
|
|
|
#endif /* MPI_PARTICLE_READER_H */ |