Bugfix: call to completeAssembly in wrong place. Henrik Rusche
This commit is contained in:
parent
a7f9e38d5c
commit
076919ae55
1 changed files with 3 additions and 1 deletions
|
@ -100,12 +100,14 @@ Foam::coupledFvMatrix<Type>::solve(const dictionary& solverControls)
|
|||
fvMatrix<Type>& curMatrix =
|
||||
static_cast<fvMatrix<Type>& >(matrices[rowI]);
|
||||
|
||||
// HR 12.03.19: Complete assembly before making copies.
|
||||
curMatrix.completeAssembly();
|
||||
|
||||
saveDiag.set(rowI, new scalarField(curMatrix.diag()));
|
||||
psiCmpt.set(rowI, new scalarField(curMatrix.psi().size()));
|
||||
source.set(rowI, new Field<Type>(curMatrix.source()));
|
||||
sourceCmpt.set(rowI, new scalarField(curMatrix.psi().size()));
|
||||
|
||||
curMatrix.completeAssembly();
|
||||
curMatrix.addBoundarySource(source[rowI]);
|
||||
|
||||
interfaces[rowI] = curMatrix.psi().boundaryField().interfaces();
|
||||
|
|
Reference in a new issue