20 #ifndef RB_DATA_DESERIALIZATION_H 21 #define RB_DATA_DESERIALIZATION_H 24 #include "libmesh/libmesh_config.h" 25 #if defined(LIBMESH_HAVE_CAPNPROTO) 28 #include "libmesh/rb_data.capnp.h" 31 #include "capnp/message.h" 41 class TransientRBEvaluation;
42 class RBEIMEvaluation;
43 class RBSCMEvaluation;
49 namespace RBDataDeserialization
85 void read_from_file(
const std::string & path,
bool read_error_bound_data);
126 void read_from_file(
const std::string & path,
bool read_error_bound_data);
181 #if defined(LIBMESH_HAVE_SLEPC) && (LIBMESH_HAVE_GLPK) 222 #endif // LIBMESH_HAVE_SLEPC && LIBMESH_HAVE_GLPK 229 RBData::ParameterRanges::Reader & parameter_ranges,
230 RBData::DiscreteParameterList::Reader & discrete_parameters_list);
235 template <
typename RBEvaluationReaderNumber>
237 RBEvaluationReaderNumber & rb_evaluation_reader,
238 bool read_error_bound_data);
244 template <
typename RBEvaluationReaderNumber,
typename TransRBEvaluationReaderNumber>
246 RBEvaluationReaderNumber & rb_evaluation_reader,
247 TransRBEvaluationReaderNumber & trans_rb_eval_reader,
248 bool read_error_bound_data);
254 template <
typename RBEIMEvaluationReaderNumber>
256 RBEIMEvaluationReaderNumber & rb_eim_eval_reader);
258 #if defined(LIBMESH_HAVE_SLEPC) && (LIBMESH_HAVE_GLPK) 267 RBData::RBSCMEvaluation::Reader & rb_scm_eval_reader);
268 #endif // LIBMESH_HAVE_SLEPC && LIBMESH_HAVE_GLPK 279 #endif // #if defined(LIBMESH_HAVE_CAPNPROTO) 281 #endif // RB_COMPONENT_DATA_DESERIALIZATION_H RBSCMEvaluation & _rb_scm_eval
The RBSCMEvaluation object we will read into.
This class de-serializes a TransientRBEvaluation object using the Cap'n Proto library.
void load_rb_evaluation_data(RBEvaluation &rb_evaluation, RBEvaluationReaderNumber &rb_evaluation_reader, bool read_error_bound_data)
Load an RB evaluation from a corresponding reader structure in the buffer.
RBSCMEvaluationDeserialization & operator=(const RBSCMEvaluationDeserialization &)=delete
TransientRBEvaluationDeserialization & operator=(const TransientRBEvaluationDeserialization &)=delete
void load_rb_scm_evaluation_data(RBSCMEvaluation &rb_scm_eval, RBData::RBSCMEvaluation::Reader &rb_scm_eval_reader)
Load an SCM RB evaluation from a corresponding reader structure in the buffer.
This class is part of the rbOOmit framework.
void load_transient_rb_evaluation_data(TransientRBEvaluation &trans_rb_eval, RBEvaluationReaderNumber &rb_evaluation_reader, TransRBEvaluationReaderNumber &trans_rb_eval_reader, bool read_error_bound_data)
Load an RB evaluation from a corresponding reader structure in the buffer.
The libMesh namespace provides an interface to certain functionality in the library.
virtual ~RBSCMEvaluationDeserialization()
RBSCMEvaluationDeserialization(RBSCMEvaluation &trans_rb_eval)
Initialize a new buffer using the structure from the Cap'n'Proto schema described in rb_data...
RBEvaluationDeserialization(RBEvaluation &rb_eval)
Initialize a new buffer using the structure from the Cap'n'Proto schema described in rb_data...
RBEvaluationDeserialization & operator=(const RBEvaluationDeserialization &)=delete
void load_parameter_ranges(RBParametrized &rb_evaluation, RBData::ParameterRanges::Reader ¶meter_ranges, RBData::DiscreteParameterList::Reader &discrete_parameters_list)
Load parameter ranges and discrete parameter values into an RBEvaluation from the corresponding struc...
virtual ~RBEIMEvaluationDeserialization()
void load_rb_eim_evaluation_data(RBEIMEvaluation &rb_eim_eval, RBEIMEvaluationReaderNumber &rb_eim_eval_reader)
Load an EIM RB evaluation from a corresponding reader structure in the buffer.
void read_from_file(const std::string &path, bool read_error_bound_data)
Write the Cap'n'Proto buffer to disk.
RBEIMEvaluation & _rb_eim_eval
The RBEIMEvaluation object we will read into.
void read_from_file(const std::string &path)
Write the Cap'n'Proto buffer to disk.
This class de-serializes a RBSCMEvaluation object using the Cap'n Proto library.
RBEIMEvaluationDeserialization(RBEIMEvaluation &trans_rb_eval)
Initialize a new buffer using the structure from the Cap'n'Proto schema described in rb_data...
virtual ~RBEvaluationDeserialization()
This class is part of the rbOOmit framework.
RBEIMEvaluationDeserialization & operator=(const RBEIMEvaluationDeserialization &)=delete
void load_point(RBData::Point3D::Reader point_reader, Point &point)
Helper function that loads point data.
This class is part of the rbOOmit framework.
void read_from_file(const std::string &path, bool read_error_bound_data)
Write the Cap'n'Proto buffer to disk.
TransientRBEvaluation & _trans_rb_eval
The TransientRBEvaluation object that we will read into.
RBEvaluation & _rb_eval
The RBEvaluation object that we will read into.
This class de-serializes an RBEvaluation object using the Cap'n Proto library.
virtual ~TransientRBEvaluationDeserialization()
TransientRBEvaluationDeserialization(TransientRBEvaluation &trans_rb_eval)
Initialize a new buffer using the structure from the Cap'n'Proto schema described in rb_data...
This class enables evaluation of an Empirical Interpolation Method (EIM) approximation.
A Point defines a location in LIBMESH_DIM dimensional Real space.
This class de-serializes a RBEIMEvaluation object using the Cap'n Proto library.
void read_from_file(const std::string &path)
Write the Cap'n'Proto buffer to disk.
This class is part of the rbOOmit framework.