MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / resize

Function resize

src/ODE/ODESolvers/ODESolver/ODESolver.C:89–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
88
89bool Foam::ODESolver::resize()
90{
91 if (odes_.nEqns() != n_)
92 {
93 if (odes_.nEqns() > maxN_)
94 {
95 FatalErrorInFunction
96 << "Specified number of equations " << odes_.nEqns()
97 << " greater than maximum " << maxN_
98 << abort(FatalError);
99 }
100
101 n_ = odes_.nEqns();
102
103 resizeField(absTol_);
104 resizeField(relTol_);
105
106 return true;
107 }
108 else
109 {
110 return false;
111 }
112}
113
114
115void Foam::ODESolver::solve

Callers

nothing calls this directly

Calls 2

abortFunction · 0.50
nEqnsMethod · 0.45

Tested by

no test coverage detected