Go to the source code of this file.
|
std::cout<< "Duration = "<< duration<< " seconds"<< std::endl;Info<< "CG converged"<< endl;PtrList< volScalarField > | heatFluxField |
|
| else |
|
◆ forAll()
forAll |
( |
example_CG. | gList, |
|
|
solutionI | ) |
◆ Info<< endl;Info<< "*********************************************************"<< endl;Info<< "Performing test for the CG inverse solver"<< endl;Info<< endl;word outputFolder="./ITHACAoutput/CGtest/";volScalarField gTrueField=example_CG.list2Field(example_CG.gTrue);ITHACAstream::exportSolution(gTrueField, "1", outputFolder, "gTrue");example_CG.saveSolInLists=1;auto t1=std::chrono::high_resolution_clock::now();if(example_CG.conjugateGradient()){ auto t2=std::chrono::high_resolution_clock::now();auto duration=std::chrono::duration_cast< std::chrono::microseconds >()
Info<< endl;Info<< "*********************************************************"<< endl;Info<< "Performing test for the CG inverse solver"<< endl;Info<< endl;word outputFolder="./ITHACAoutput/CGtest/";volScalarField gTrueField=example_CG.list2Field(example_CG.gTrue);ITHACAstream::exportSolution(gTrueField, "1", outputFolder, "gTrue");example_CG.saveSolInLists=1;auto t1=std::chrono::high_resolution_clock::now();if(example_CG.conjugateGradient()){ auto t2=std::chrono::high_resolution_clock::now();auto duration=std::chrono::duration_cast< std::chrono::microseconds > |
( |
t2 - | t1 | ) |
|
◆ postProcess()
example_CG postProcess |
( |
outputFolder | , |
|
|
"g_CG" | ) |
◆ else
Initial value:{
Info << "CG did not converged" << endl
Definition at line 31 of file CGtest.H.
◆ heatFluxField
std::cout<< "Duration = " << duration << " seconds" << std::endl; Info << "CG converged" << endl; PtrList<volScalarField> heatFluxField |