28Vector<double> uresidual_v(0, 0, 0);
38res_os.open(
"./ITHACAoutput/Offline/residuals", std::ios_base::app);
40#if defined(OFVER) && (OFVER == 6)
42while (simple.loop(runTime) && residual > tolerance && csolve < maxIter )
44while (simple.loop() && residual > tolerance && csolve < maxIter )
47 Info <<
"Time = " << runTime.timeName() << nl << endl;
54 for (label i = 0; i < 3; i++)
56 if (C < uresidual_v[i])
63 residual =
max(presidual, uresidual);
64 Info <<
"\nResidual: " << residual << endl << endl;
67 laminarTransport.correct();
68 turbulence->correct();
70 Info <<
"ExecutionTime = " << runTime.elapsedCpuTime() <<
" s"
71 <<
" ClockTime = " << runTime.elapsedClockTime() <<
" s"
75res_os << residual << std::endl;
77runTime.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).