ODESolvers::seulex: Corrected 'expo' and added 'table_' resize
This commit is contained in:
parent
fd6701dd0f
commit
12c3025d20
1 changed files with 2 additions and 1 deletions
|
|
@ -215,6 +215,7 @@ bool Foam::seulex::resize()
|
|||
{
|
||||
if (ODESolver::resize())
|
||||
{
|
||||
table_.shallowResize(kMaxx_, n_);
|
||||
resizeField(dfdx_);
|
||||
resizeMatrix(dfdy_);
|
||||
resizeMatrix(a_);
|
||||
|
|
@ -330,7 +331,7 @@ void Foam::seulex::solve
|
|||
break;
|
||||
}
|
||||
errOld = min(4*err, 1);
|
||||
scalar expo = 1/(k + 1);
|
||||
scalar expo = 1.0/(k + 1);
|
||||
scalar facmin = pow(stepFactor3_, expo);
|
||||
scalar fac;
|
||||
if (err == 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue