33 #ifndef __H__UG__LIB_DISC__SPATIAL_DISC__CONSTRAINTS__CONTINUITY_CONSTRAINTS__P1_CONTINUITY_CONSTRAINTS__
34 #define __H__UG__LIB_DISC__SPATIAL_DISC__CONSTRAINTS__CONTINUITY_CONSTRAINTS__P1_CONTINUITY_CONSTRAINTS__
45 ConstrainedVertex* hgVrt,
46 bool bClearContainer =
true);
49 template <
typename TDomain,
typename TAlgebra>
77 const std::vector<number>* vScaleMass = NULL,
78 const std::vector<number>* vScaleStiff = NULL);
114 template <
typename TDomain,
typename TAlgebra>
145 const std::vector<number>* vScaleMass = NULL,
146 const std::vector<number>* vScaleStiff = NULL);
Definition: smart_pointer.h:296
Definition: constraint_interface.h:162
ConstSmartPtr< DoFDistribution > dd(const GridLevel &gl) const
returns the level dof distribution
Definition: constraint_interface.h:242
Definition: p1_continuity_constraints.h:117
algebra_type::vector_type vector_type
Definition: p1_continuity_constraints.h:126
IDomainConstraint< TDomain, TAlgebra > base_type
Definition: p1_continuity_constraints.h:129
virtual ~OneSideP1Constraints()
Definition: p1_continuity_constraints.h:133
void adjust_jacobian(matrix_type &J, const vector_type &u, ConstSmartPtr< DoFDistribution > dd, int type, number time=0.0, ConstSmartPtr< VectorTimeSeries< vector_type > > vSol=NULL, const number s_a0=1.0)
adapts jacobian to enforce constraints
Definition: p1_continuity_constraints_impl.h:917
virtual void adjust_correction(vector_type &u, ConstSmartPtr< DoFDistribution > dd, int type, number time=0.0)
Definition: p1_continuity_constraints_impl.h:1112
TAlgebra algebra_type
Definition: p1_continuity_constraints.h:120
void adjust_prolongation(matrix_type &P, ConstSmartPtr< DoFDistribution > ddFine, ConstSmartPtr< DoFDistribution > ddCoarse, int type, number time=0.0)
sets constraints in prolongation
Definition: p1_continuity_constraints_impl.h:1051
void adjust_rhs(vector_type &rhs, const vector_type &u, ConstSmartPtr< DoFDistribution > dd, int type, number time=0.0)
adapts a rhs to enforce constraints
Definition: p1_continuity_constraints_impl.h:875
algebra_type::matrix_type matrix_type
Definition: p1_continuity_constraints.h:123
void adjust_solution(vector_type &u, ConstSmartPtr< DoFDistribution > dd, int type, number time=0.0)
sets the constraints in a solution vector
Definition: p1_continuity_constraints_impl.h:1014
bool m_bAssembleLinearProblem
Definition: p1_continuity_constraints.h:177
void adjust_defect(vector_type &d, const vector_type &u, ConstSmartPtr< DoFDistribution > dd, int type, number time=0.0, ConstSmartPtr< VectorTimeSeries< vector_type > > vSol=NULL, const std::vector< number > *vScaleMass=NULL, const std::vector< number > *vScaleStiff=NULL)
adapts defect to enforce constraints
Definition: p1_continuity_constraints_impl.h:829
void adjust_restriction(matrix_type &R, ConstSmartPtr< DoFDistribution > ddCoarse, ConstSmartPtr< DoFDistribution > ddFine, int type, number time=0.0)
sets constraints in restriction
Definition: p1_continuity_constraints_impl.h:1096
OneSideP1Constraints()
Definition: p1_continuity_constraints.h:132
virtual int type() const
returns the type of constraints
Definition: p1_continuity_constraints.h:135
void adjust_linear(matrix_type &mat, vector_type &rhs, ConstSmartPtr< DoFDistribution > dd, int type, number time=0.0)
adapts matrix and rhs (linear case) to enforce constraints
Definition: p1_continuity_constraints_impl.h:964
Wrapper for sequential matrices to handle them in parallel.
Definition: parallel_matrix.h:65
Definition: p1_continuity_constraints.h:52
void adjust_defect(vector_type &d, const vector_type &u, ConstSmartPtr< DoFDistribution > dd, int type, number time=0.0, ConstSmartPtr< VectorTimeSeries< vector_type > > vSol=NULL, const std::vector< number > *vScaleMass=NULL, const std::vector< number > *vScaleStiff=NULL)
adapts defect to enforce constraints
Definition: p1_continuity_constraints_impl.h:399
void adjust_prolongation(matrix_type &P, ConstSmartPtr< DoFDistribution > ddFine, ConstSmartPtr< DoFDistribution > ddCoarse, int type, number time=0.0)
sets constraints in prolongation
Definition: p1_continuity_constraints_impl.h:588
void adjust_restriction(matrix_type &R, ConstSmartPtr< DoFDistribution > ddCoarse, ConstSmartPtr< DoFDistribution > ddFine, int type, number time=0.0)
sets constraints in restriction
Definition: p1_continuity_constraints_impl.h:633
void adjust_rhs(vector_type &rhs, const vector_type &u, ConstSmartPtr< DoFDistribution > dd, int type, number time=0.0)
adapts a rhs to enforce constraints
Definition: p1_continuity_constraints_impl.h:437
void adjust_jacobian(matrix_type &J, const vector_type &u, ConstSmartPtr< DoFDistribution > dd, int type, number time=0.0, ConstSmartPtr< VectorTimeSeries< vector_type > > vSol=NULL, const number s_a0=1.0)
adapts jacobian to enforce constraints
Definition: p1_continuity_constraints_impl.h:471
SymP1Constraints()
Definition: p1_continuity_constraints.h:64
algebra_type::matrix_type matrix_type
Definition: p1_continuity_constraints.h:58
virtual void adjust_correction(vector_type &u, ConstSmartPtr< DoFDistribution > dd, int type, number time=0.0)
Definition: p1_continuity_constraints_impl.h:650
TAlgebra algebra_type
Definition: p1_continuity_constraints.h:55
virtual int type() const
returns the type of constraints
Definition: p1_continuity_constraints.h:67
void adjust_linear(matrix_type &mat, vector_type &rhs, ConstSmartPtr< DoFDistribution > dd, int type, number time=0.0)
adapts matrix and rhs (linear case) to enforce constraints
Definition: p1_continuity_constraints_impl.h:510
virtual ~SymP1Constraints()
Definition: p1_continuity_constraints.h:65
algebra_type::vector_type vector_type
Definition: p1_continuity_constraints.h:61
bool m_bAssembleLinearProblem
Definition: p1_continuity_constraints.h:109
void adjust_solution(vector_type &u, ConstSmartPtr< DoFDistribution > dd, int type, number time=0.0)
sets the constraints in a solution vector
Definition: p1_continuity_constraints_impl.h:552
time series of solutions and corresponding time point
Definition: solution_time_series.h:59
double number
Definition: types.h:124
CPUAlgebra::vector_type vector_type
@ CT_HANGING
Definition: ass_tuner.h:57
void CollectConstraining(std::vector< Vertex * > &vConstrainingVrt, const Grid &grid, ConstrainedVertex *hgVrt, bool bClearContainer)
returns the vertices of the object constraining a hanging vertex
Definition: p1_continuity_constraints.cpp:41