CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Execution times different parts (http://www.cfd-online.com/Forums/openfoam-solving/60242-execution-times-different-parts.html)

lr103476 April 26, 2006 03:22

Hi, Is there an easy way to
 
Hi,

Is there an easy way to write to screen the execution time for each distinct part of a computation?

E.g. can I output each timestep the execution time of the mesh motion, the solving for U (ICCG) and the solving for p (BICCG).

Thanks, Frank

guido_adriaensen April 26, 2006 03:33

Hello Frank, I think this c
 
Hello Frank,

I think this can be done quite easily. In the main code of a program you can find the following lines:

Info<< "ExecutionTime = "
<< runTime.elapsedCpuTime()
<< " s\n\n" << endl;

I think you can add this info statement at different positions in your program and get the executiontime of the separate parts.

Guido

lr103476 April 26, 2006 04:16

Ok thanks, I should have figur
 
Ok thanks, I should have figured it out myself!


All times are GMT -4. The time now is 12:20.