28Vector<double> uresidual_v(0, 0, 0);
36res_os.open(
"./ITHACAoutput/Offline/residuals", std::ios_base::app);
38#if defined(OFVER) && (OFVER == 6)
40while (simple.loop(runTime) && residual > tolerance && csolve < maxIter )
42while (simple.loop() && residual > tolerance && csolve < maxIter )
45 Info <<
"Time = " << runTime.timeName() << nl << endl;
51 for (label i = 0; i < 3; i++)
53 if (C < uresidual_v[i])
60 residual =
max(presidual, uresidual);
61 Info <<
"\nResidual: " << residual << endl << endl;
63 laminarTransport.correct();
64 turbulence->correct();
66 Info <<
"ExecutionTime = " << runTime.elapsedCpuTime() <<
" s"
67 <<
" ClockTime = " << runTime.elapsedClockTime() <<
" s"
71res_os << residual << std::endl;
74runTime.setTime(runTime.startTime(), 0);
T max(Eigen::SparseMatrix< T > &mat, label &ind_row, label &ind_col)
Find the maximum of a sparse Matrix (Useful for DEIM).