|
[Sponsors] | |||||
|
|
|
#1 |
|
Senior Member
Frank Bos
Join Date: Mar 2009
Location: The Netherlands
Posts: 340
Rep Power: 19 ![]() |
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
__________________
Frank Bos |
|
|
|
|
|
|
|
|
#2 |
|
Member
Guido Adriaensen
Join Date: Mar 2009
Posts: 56
Rep Power: 18 ![]() |
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 |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Frank Bos
Join Date: Mar 2009
Location: The Netherlands
Posts: 340
Rep Power: 19 ![]() |
Ok thanks, I should have figured it out myself!
__________________
Frank Bos |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Solution Times | Sara | FLUENT | 1 | March 28, 2007 11:35 |
| LES computing times | philt | OpenFOAM Running, Solving & CFD | 4 | June 2, 2006 18:46 |
| FLUENT CPU Times | BA | FLUENT | 2 | August 26, 2004 15:14 |
| reporting cpu times | jahangir | Main CFD Forum | 3 | March 25, 2004 16:25 |
| Need how many iteration times | Harry Qiu | FLUENT | 3 | April 3, 2001 16:28 |