time consuming of the linear solver
In order to calculate the total duration of the icoFoam progam, C++ profiling code( using clock() functions of the standard C library) has been inserted at the beginning and ending of the main() function of the icoFoam.C and this worked properly.
Now, for calculate the accumulation calculation time in the PCG solver class, what should I do?
I,m using this method for the PCG.C code in the PCG solver, but it dose not compile by wmak libso.
In other word, How can I calculate the total time consumed in this linear solver of the icoFoam solver for the cavity case?
What an interesting work!
But why you want to use clock() function while the solver shows the time has passed in terminal itself?
I was informed at the time that this kind of information is unnecessary. Still use the patch for my OF-installations (only had to be modified slightly during the years) and find the information interesting
Finally I could use the same C++ profiling code( using clock() functions of the standard C library) in PCG linear solver, and it worked properly.
Thank you all.
|All times are GMT -4. The time now is 08:51.|