SPH
Public Member Functions | List of all members
IInput Class Referenceabstract

Interface for loading quantities of SPH particles from a file. More...

#include <Output.h>

Inheritance diagram for IInput:
Polymorphic BinaryInput CompressedInput Hdf5Input MpcorpInput PkdgravInput TabInput TextInput

Public Member Functions

virtual Outcome load (const Path &path, Storage &storage, Statistics &stats)=0
 Loads data from the file into the storage. More...
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Detailed Description

Interface for loading quantities of SPH particles from a file.

This can be used to continue simulation from a previously saved snapshot.

Definition at line 94 of file Output.h.

Member Function Documentation

◆ load()

virtual Outcome IInput::load ( const Path path,
Storage storage,
Statistics stats 
)
pure virtual

Loads data from the file into the storage.

This will remove any data previously stored in storage. Function can also load additional run statistics, such as time of the snapshot, and save it to provided stats value.

Implemented in TabInput, PkdgravInput, MpcorpInput, Hdf5Input, CompressedInput, BinaryInput, and TextInput.


The documentation for this class was generated from the following file: