12 lines
382 B
C++
12 lines
382 B
C++
{
|
|
sumLocalContErr =
|
|
(sum(mag(rho - rho0 - psi*(p - p0)))/sum(rho)).value();
|
|
|
|
globalContErr = (sum(rho - rho0 - psi*(p - p0))/sum(rho)).value();
|
|
|
|
cumulativeContErr += globalContErr;
|
|
|
|
Info<< "time step continuity errors : sum local = " << sumLocalContErr
|
|
<< ", global = " << globalContErr
|
|
<< ", cumulative = " << cumulativeContErr << endl;
|
|
}
|