OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
#include <FromFile.h>
Public Member Functions | |
FromFile (const std::string &filename, const std::string &dvarName, size_t modulo) | |
void | create (boost::shared_ptr< SampleIndividual > &ind, size_t i) |
void | allocate (const CmdArguments_t &, const Comm::Bundle_t &) |
double | getNext (unsigned int id) |
unsigned int | getSize () const |
~FromFile () | |
Expressions::Result_t | operator() (client::function::arguments_t args) |
![]() | |
virtual | ~SamplingMethod () |
Static Public Attributes | |
static const std::string | name |
Private Member Functions | |
void | readValues () |
reads a simple list of double values More... | |
Private Attributes | |
std::vector< double > | chain_m |
size_t | mod_m |
std::string | filename_m |
std::string | dvarName_m |
unsigned int | globalSize_m |
std::vector< double > | values_ |
std::string | filename_ |
Definition at line 38 of file FromFile.h.
|
inline |
Definition at line 43 of file FromFile.h.
References end(), filename_m, and globalSize_m.
|
inline |
Definition at line 134 of file FromFile.h.
|
inlinevirtual |
Allocate memory for sampling. Not every sampling method requires that.
This function is used to reduce memory since only the sampler ranks need these sampling methods.
args | samler arguments |
comm | sampler communicator |
Reimplemented from SamplingMethod.
Definition at line 85 of file FromFile.h.
References chain_m, dvarName_m, filename_m, and globalSize_m.
|
inlinevirtual |
Implements SamplingMethod.
Definition at line 81 of file FromFile.h.
References getNext().
|
inline |
Definition at line 124 of file FromFile.h.
References chain_m, globalSize_m, and mod_m.
Referenced by create().
|
inline |
Definition at line 130 of file FromFile.h.
References globalSize_m.
|
inline |
Definition at line 48 of file FromFile.h.
References Physics::e, filename_, readValues(), sum(), and values_.
|
private |
reads a simple list of double values
Definition at line 29 of file FromFile.cpp.
References filename_, and values_.
Referenced by operator()().
|
private |
Definition at line 137 of file FromFile.h.
Referenced by allocate(), and getNext().
|
private |
Definition at line 140 of file FromFile.h.
Referenced by allocate().
|
private |
Definition at line 76 of file FromFile.h.
Referenced by operator()(), and readValues().
|
private |
Definition at line 139 of file FromFile.h.
Referenced by allocate(), and FromFile().
|
private |
Definition at line 142 of file FromFile.h.
Referenced by allocate(), FromFile(), getNext(), and getSize().
|
private |
Definition at line 138 of file FromFile.h.
Referenced by getNext().
|
static |
Definition at line 46 of file FromFile.h.
|
private |
Definition at line 74 of file FromFile.h.
Referenced by operator()(), and readValues().