CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Execution times different parts

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 26, 2006, 04:22
Default Hi, Is there an easy way to
  #1
Senior Member
 
Frank Bos
Join Date: Mar 2009
Location: The Netherlands
Posts: 340
Rep Power: 18
lr103476 is on a distinguished road
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
lr103476 is offline   Reply With Quote

Old   April 26, 2006, 04:33
Default Hello Frank, I think this c
  #2
Member
 
Guido Adriaensen
Join Date: Mar 2009
Posts: 56
Rep Power: 17
guido_adriaensen is on a distinguished road
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
guido_adriaensen is offline   Reply With Quote

Old   April 26, 2006, 05:16
Default Ok thanks, I should have figur
  #3
Senior Member
 
Frank Bos
Join Date: Mar 2009
Location: The Netherlands
Posts: 340
Rep Power: 18
lr103476 is on a distinguished road
Ok thanks, I should have figured it out myself!
__________________
Frank Bos
lr103476 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 23:29.