CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   How to obtain the elapsedCPUTime for each processor (https://www.cfd-online.com/Forums/openfoam-programming-development/122505-how-obtain-elapsedcputime-each-processor.html)

linch August 20, 2013 07:19

How to obtain the elapsedCPUTime for each processor
 
Hi Foamers,

does anybody know, how the elapsedCPUTime for each CPU in parallel can be obtained?

Best regards,
Illya

wyldckat August 21, 2013 06:39

Hi Illya,

There are 3 important details, at least as far as I can remember:
  1. You'll have to use a customized solver.
  2. Quote:

    Originally Posted by mfmohdyasin (Post 378825)
    Just figured out that I supposed to use "Pout" instead of "Info" to get output from each processor.

  3. And this part I haven't confirmed yet, but I think it should work:
    Code:

    Pout << "Elapsed CPU time for processor " << Pstream::myProcNo() << ": " << runTime.elapsedCpuTime() << endl;
Best regards,
Bruno


All times are GMT -4. The time now is 03:06.