queso-0.53.0
|
#include <InterpolationSurrogateIOASCII.h>
Public Member Functions | |
InterpolationSurrogateIOASCII () | |
virtual | ~InterpolationSurrogateIOASCII () |
virtual void | read (const std::string &filename, const FullEnvironment &env, const std::string &vector_space_prefix, int reading_rank=0) |
Read Interpolation surrogate data from filename using processor reading_rank. More... | |
virtual void | write (const std::string &filename, const InterpolationSurrogateData< V, M > &data, int writing_rank=0) const |
Write interpolation surrogate data to filename using processor writing_rank. More... | |
Public Member Functions inherited from QUESO::InterpolationSurrogateIOBase< V, M > | |
InterpolationSurrogateIOBase () | |
virtual | ~InterpolationSurrogateIOBase () |
const InterpolationSurrogateData< V, M > & | data () const |
Reference to data object. More... | |
Additional Inherited Members | |
Protected Attributes inherited from QUESO::InterpolationSurrogateIOBase< V, M > | |
ScopedPtr< VectorSpace< V, M > >::Type | m_vector_space |
ScopedPtr< BoxSubset< V, M > >::Type | m_domain |
std::vector< unsigned int > | m_n_points |
ScopedPtr < InterpolationSurrogateData < V, M > >::Type | m_data |
Definition at line 33 of file InterpolationSurrogateIOASCII.h.
QUESO::InterpolationSurrogateIOASCII< V, M >::InterpolationSurrogateIOASCII | ( | ) |
Definition at line 40 of file InterpolationSurrogateIOASCII.C.
|
inlinevirtual |
Definition at line 39 of file InterpolationSurrogateIOASCII.h.
|
virtual |
Read Interpolation surrogate data from filename using processor reading_rank.
This will read the data the file given by filename and setup all the infrastructure for InterpolationSurrogateData so that the user can then call the data() method. This can then be used to construct an Interpolation object. env.fullRank() must contain reading_rank. By default, processor 0 reads the data.
Implements QUESO::InterpolationSurrogateIOBase< V, M >.
Definition at line 45 of file InterpolationSurrogateIOASCII.C.
References QUESO::MpiComm::Bcast(), dim, QUESO::BaseEnvironment::fullComm(), QUESO::BaseEnvironment::fullRank(), queso_error_msg, and QUESO::StreamUtilities::skip_comment_lines().
|
virtual |
Write interpolation surrogate data to filename using processor writing_rank.
env.fullRank() must contain writing_rank. By default processor 0 writes the data.
Implements QUESO::InterpolationSurrogateIOBase< V, M >.
Definition at line 184 of file InterpolationSurrogateIOASCII.C.
References dim, QUESO::InterpolationSurrogateData< V, M >::get_n_points(), QUESO::InterpolationSurrogateData< V, M >::get_paramDomain(), QUESO::InterpolationSurrogateData< V, M >::get_value(), QUESO::InterpolationSurrogateData< V, M >::n_values(), queso_error_msg, QUESO::InterpolationSurrogateData< V, M >::x_max(), and QUESO::InterpolationSurrogateData< V, M >::x_min().