13 #if !defined(KRATOS_RELAXED_DOF_UPDATER_H_INCLUDED )
14 #define KRATOS_RELAXED_DOF_UPDATER_H_INCLUDED
21 #ifdef KRATOS_USING_MPI
43 template<
class TSparseSpace >
70 : mRelaxationFactor(RelaxationFactor)
92 typename BaseType::UniquePointer
Create()
const override
94 return Kratos::make_unique<RelaxedDofUpdater>(mRelaxationFactor);
128 std::string
Info()
const override;
133 rOStream << this->
Info() << std::endl;
139 rOStream << this->
Info() << std::endl;
149 bool mImportIsInitialized =
false;
150 const double mRelaxationFactor;
152 #ifdef KRATOS_USING_MPI
154 std::shared_ptr<Epetra_Import> mpDofImport = nullptr;
168 template<
class TSparseSpace >
170 std::istream& rIStream,
177 template<
class TSparseSpace >
179 std::ostream& rOStream,
183 rOStream << std::endl;
std::string Info() const override
Turn back information as a string.
Definition: periodic_interface_process.hpp:93
Dof represents a degree of freedom (DoF).
Definition: dof.h:86
Utility class to update the values of degree of freedom (Dof) variables after solving the system.
Definition: dof_updater.h:40
typename TSparseSpace::VectorType SystemVectorType
Definition: dof_updater.h:51
A sorted associative container similar to an STL set, but uses a vector to store pointers to its data...
Definition: pointer_vector_set.h:72
Utility class to update the values of degree of freedom (Dof) variables after solving the system.
Definition: relaxed_dof_updater.h:46
void UpdateDofs(DofsArrayType &rDofSet, const SystemVectorType &rDx) override
Calculate new values for the problem's degrees of freedom using the update vector rDx.
BaseType::UniquePointer Create() const override
Create a new instance of this class.
Definition: relaxed_dof_updater.h:92
RelaxedDofUpdater(RelaxedDofUpdater const &rOther)=delete
Deleted copy constructor.
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: relaxed_dof_updater.h:137
void Initialize(const DofsArrayType &rDofSet, const SystemVectorType &rDx) override
Initialize the RelaxedDofUpdater in preparation for a subsequent UpdateDofs call.
RelaxedDofUpdater & operator=(RelaxedDofUpdater const &rOther)=delete
Deleted assignment operator.
RelaxedDofUpdater(const double RelaxationFactor)
Default constructor.
Definition: relaxed_dof_updater.h:69
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: relaxed_dof_updater.h:131
std::string Info() const override
Turn back information as a string.
virtual ~RelaxedDofUpdater()=default
Destructor.
void Clear() override
Free internal storage to reset the instance and/or optimize memory consumption.
KRATOS_CLASS_POINTER_DEFINITION(RelaxedDofUpdater)
Pointer definition of RelaxedDofUpdater.
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432