20 #ifndef RB_DATA_SERIALIZATION_H 21 #define RB_DATA_SERIALIZATION_H 24 #if defined(LIBMESH_HAVE_CAPNPROTO) 30 #include "libmesh/rb_data.capnp.h" 33 #include "capnp/message.h" 40 class TransientRBEvaluation;
41 class RBEIMEvaluation;
42 class RBSCMEvaluation;
47 namespace RBDataSerialization
155 #if defined(LIBMESH_HAVE_SLEPC) && (LIBMESH_HAVE_GLPK) 189 #endif // LIBMESH_HAVE_SLEPC && LIBMESH_HAVE_GLPK 195 RBData::ParameterRanges::Builder & parameter_ranges,
196 RBData::DiscreteParameterList::Builder & discrete_parameters_list);
201 template <
typename RBEvaluationBuilderNumber>
203 RBEvaluationBuilderNumber & rb_eval_builder);
209 template <
typename RBEvaluationBuilderNumber,
typename TransRBEvaluationBuilderNumber>
211 RBEvaluationBuilderNumber & rb_eval_builder,
212 TransRBEvaluationBuilderNumber & trans_rb_eval_builder);
218 template <
typename RBEvaluationBuilderNumber,
typename RBEIMEvaluationBuilderNumber>
220 RBEvaluationBuilderNumber & rb_eval_builder,
221 RBEIMEvaluationBuilderNumber & rb_eim_eval_builder);
223 #if defined(LIBMESH_HAVE_SLEPC) && (LIBMESH_HAVE_GLPK) 232 RBData::RBSCMEvaluation::Builder & rb_scm_eval_builder);
233 #endif // LIBMESH_HAVE_SLEPC && LIBMESH_HAVE_GLPK 239 RBData::Point3D::Builder point_builder);
245 RBData::MeshElem::Builder mesh_elem_builder);
251 #endif // #if defined(LIBMESH_HAVE_CAPNPROTO) 253 #endif // RB_DATA_SERIALIZATION_H virtual ~RBSCMEvaluationSerialization()
RBSCMEvaluationSerialization(RBSCMEvaluation &rb_eval)
Serializes RBEvaluation objects using Cap'n Proto.
virtual ~RBEIMEvaluationSerialization()
void add_transient_rb_evaluation_data_to_builder(TransientRBEvaluation &trans_rb_eval, RBEvaluationBuilderNumber &rb_eval_builder, TransRBEvaluationBuilderNumber &trans_rb_eval_builder)
virtual ~TransientRBEvaluationSerialization()
The base class for all geometric element types.
void add_parameter_ranges_to_builder(const RBParametrized &rb_evaluation, RBData::ParameterRanges::Builder ¶meter_ranges, RBData::DiscreteParameterList::Builder &discrete_parameters_list)
void add_rb_evaluation_data_to_builder(RBEvaluation &rb_eval, RBEvaluationBuilderNumber &rb_eval_builder)
RBEIMEvaluation & _rb_eim_eval
RBEvaluationSerialization(RBEvaluation &rb_eval)
void add_rb_eim_evaluation_data_to_builder(RBEIMEvaluation &rb_eim_eval, RBEvaluationBuilderNumber &rb_eval_builder, RBEIMEvaluationBuilderNumber &rb_eim_eval_builder)
TransientRBEvaluationSerialization(TransientRBEvaluation &rb_eval)
void write_to_file(const std::string &path)
virtual ~RBEvaluationSerialization()
void write_to_file(const std::string &path)
void write_to_file(const std::string &path)
void write_to_file(const std::string &path)
RBEIMEvaluationSerialization(RBEIMEvaluation &rb_eval)
void add_point_to_builder(const Point &point, RBData::Point3D::Builder point_builder)
RBSCMEvaluation & _rb_scm_eval
void add_rb_scm_evaluation_data_to_builder(RBSCMEvaluation &rb_scm_eval, RBData::RBSCMEvaluation::Builder &rb_scm_eval_builder)
void add_elem_to_builder(const Elem &elem, RBData::MeshElem::Builder mesh_elem_builder)
TransientRBEvaluation & _trans_rb_eval
A geometric point in (x,y,z) space.