20 #ifndef RB_DATA_DESERIALIZATION_H 21 #define RB_DATA_DESERIALIZATION_H 25 #if defined(LIBMESH_HAVE_CAPNPROTO) 28 #include "libmesh/rb_data.capnp.h" 31 #include "capnp/message.h" 40 class TransientRBEvaluation;
41 class RBEIMEvaluation;
42 class RBSCMEvaluation;
44 namespace RBDataDeserialization
73 void read_from_file(
const std::string & path,
bool read_error_bound_data);
106 void read_from_file(
const std::string & path,
bool read_error_bound_data);
152 #if defined(LIBMESH_HAVE_SLEPC) && (LIBMESH_HAVE_GLPK) 186 #endif // LIBMESH_HAVE_SLEPC && LIBMESH_HAVE_GLPK 193 RBData::ParameterRanges::Reader & parameter_ranges,
194 RBData::DiscreteParameterList::Reader & discrete_parameters_list);
199 template <
typename RBEvaluationReaderNumber>
201 RBEvaluationReaderNumber & rb_evaluation_reader,
202 bool read_error_bound_data);
208 template <
typename RBEvaluationReaderNumber,
typename TransRBEvaluationReaderNumber>
210 RBEvaluationReaderNumber & rb_evaluation_reader,
211 TransRBEvaluationReaderNumber & trans_rb_eval_reader,
212 bool read_error_bound_data);
218 template <
typename RBEvaluationReaderNumber,
typename RBEIMEvaluationReaderNumber>
220 RBEvaluationReaderNumber & rb_evaluation_reader,
221 RBEIMEvaluationReaderNumber & rb_eim_eval_reader);
223 #if defined(LIBMESH_HAVE_SLEPC) && (LIBMESH_HAVE_GLPK) 232 RBData::RBSCMEvaluation::Reader & rb_scm_eval_reader);
233 #endif // LIBMESH_HAVE_SLEPC && LIBMESH_HAVE_GLPK 251 #endif // #if defined(LIBMESH_HAVE_CAPNPROTO) 253 #endif // RB_COMPONENT_DATA_DESERIALIZATION_H void load_rb_eim_evaluation_data(RBEIMEvaluation &rb_eim_eval, RBEvaluationReaderNumber &rb_evaluation_reader, RBEIMEvaluationReaderNumber &rb_eim_eval_reader)
Mesh data structure replicated on all processors.
RBSCMEvaluation & _rb_scm_eval
void load_rb_evaluation_data(RBEvaluation &rb_evaluation, RBEvaluationReaderNumber &rb_evaluation_reader, bool read_error_bound_data)
void load_rb_scm_evaluation_data(RBSCMEvaluation &rb_scm_eval, RBData::RBSCMEvaluation::Reader &rb_scm_eval_reader)
The base class for all geometric element types.
virtual ~RBEIMEvaluationDeserialization()
void load_transient_rb_evaluation_data(TransientRBEvaluation &trans_rb_eval, RBEvaluationReaderNumber &rb_evaluation_reader, TransRBEvaluationReaderNumber &trans_rb_eval_reader, bool read_error_bound_data)
virtual ~TransientRBEvaluationDeserialization()
RBSCMEvaluationDeserialization(RBSCMEvaluation &trans_rb_eval)
RBEvaluationDeserialization(RBEvaluation &rb_eval)
void load_parameter_ranges(RBParametrized &rb_evaluation, RBData::ParameterRanges::Reader ¶meter_ranges, RBData::DiscreteParameterList::Reader &discrete_parameters_list)
void read_from_file(const std::string &path, bool read_error_bound_data)
RBEIMEvaluation & _rb_eim_eval
void read_from_file(const std::string &path)
RBEIMEvaluationDeserialization(RBEIMEvaluation &trans_rb_eval)
virtual ~RBEvaluationDeserialization()
void load_point(RBData::Point3D::Reader point_reader, Point &point)
void read_from_file(const std::string &path, bool read_error_bound_data)
TransientRBEvaluation & _trans_rb_eval
void load_elem_into_mesh(RBData::MeshElem::Reader mesh_elem_reader, libMesh::Elem *elem, libMesh::ReplicatedMesh &mesh)
Deserializes RBEvaluation objects using Cap'n Proto.
TransientRBEvaluationDeserialization(TransientRBEvaluation &trans_rb_eval)
virtual ~RBSCMEvaluationDeserialization()
A geometric point in (x,y,z) space.
void read_from_file(const std::string &path)