|
| v0.14.0
|
Go to the documentation of this file.
7 #ifndef __METHOD_FOR_FORCE_SCALING_HPP__
8 #define __METHOD_FOR_FORCE_SCALING_HPP__
22 boost::ptr_vector<MethodForForceScaling> &methods_op,
25 for (
auto vit = methods_op.begin(); vit != methods_op.end(); vit++)
26 CHKERR vit->scaleNf(fe, nf);
32 boost::shared_ptr<MethodForForceScaling> method_op,
35 CHKERR method_op->scaleNf(fe, nf);
42 #endif //__METHOD_FOR_FORCE_SCALING_HPP__
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
virtual ~MethodForForceScaling()
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
virtual MoFEMErrorCode scaleNf(const FEMethod *fe, VectorDouble &Nf)=0
#define CHKERR
Inline error check.
static MoFEMErrorCode applyScale(const FEMethod *fe, boost::shared_ptr< MethodForForceScaling > method_op, VectorDouble &nf)
Class used to scale loads, f.e. in arc-length control.
virtual MoFEMErrorCode getForceScale(const double ts_t, double &scale)
UBlasVector< double > VectorDouble
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
static MoFEMErrorCode applyScale(const FEMethod *fe, boost::ptr_vector< MethodForForceScaling > &methods_op, VectorDouble &nf)
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...