MCPcopy Create free account
hub / github.com/Kitware/VTK / SetFunctionSet

Method SetFunctionSet

Common/Math/vtkInitialValueProblemSolver.cxx:30–53  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

28
29//------------------------------------------------------------------------------
30void vtkInitialValueProblemSolver::SetFunctionSet(vtkFunctionSet* fset)
31{
32 if (this->FunctionSet != fset)
33 {
34 if (this->FunctionSet != nullptr)
35 {
36 this->FunctionSet->UnRegister(this);
37 }
38 if (fset != nullptr &&
39 (fset->GetNumberOfFunctions() != fset->GetNumberOfIndependentVariables() - 1))
40 {
41 vtkErrorMacro("Invalid function set!");
42 this->FunctionSet = nullptr;
43 return;
44 }
45 this->FunctionSet = fset;
46 if (this->FunctionSet != nullptr)
47 {
48 this->FunctionSet->Register(this);
49 }
50 this->Modified();
51 }
52 this->Initialize();
53}
54
55//------------------------------------------------------------------------------
56void vtkInitialValueProblemSolver::PrintSelf(ostream& os, vtkIndent indent)

Callers 8

operator()Method · 0.80
SimpleIntegrateMethod · 0.80
InitializeMethod · 0.80
InitializeFunction · 0.80
ExecuteMethod · 0.80
IntegrateMethod · 0.80
SimpleIntegrateMethod · 0.80

Calls 4

InitializeMethod · 0.95
UnRegisterMethod · 0.45
RegisterMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected