00001 scalar sumLocalContErr = 00002 runTime.deltaT().value()* 00003 mag 00004 ( 00005 fvc::ddt(rho) 00006 + fvc::div(phi) 00007 )().weightedAverage(rho*mesh.V()).value(); 00008 00009 scalar globalContErr = 00010 runTime.deltaT().value()* 00011 ( 00012 fvc::ddt(rho) 00013 + fvc::div(phi) 00014 )().weightedAverage(rho*mesh.V()).value(); 00015 00016 cumulativeContErr += globalContErr; 00017 00018 Info<< "time step continuity errors : sum local = " << sumLocalContErr 00019 << ", global = " << globalContErr 00020 << ", cumulative = " << cumulativeContErr 00021 << endl; 00022 00023 // ************************ vim: set sw=4 sts=4 et: ************************ //