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

Logging files (.C and .H) the solver uses during the solution of a case

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 1, 2012, 06:02
Smile Logging files (.C and .H) the solver uses during the solution of a case
  #1
Member
 
Paulo Bufacchi
Join Date: Jun 2010
Posts: 50
Rep Power: 16
Bufacchi is on a distinguished road
Hi Foamers,

I'm using OpenFOAM version 2.1.x on a Suse 11.4 OS.

I would like to know if there is a way to log the file (.C and .H) the solver uses during the solution of a case.

As an example, when the log file writes:
"Create Time",
I would like to have something like:
"createTime.H"
"Create Time"
Where createTime.H is the file used to output the message.

I would like to log all .C and .H files the solver uses, and not only those that writes info to the solver log file.

I already tried the controlDict file in the etc directory. I played with most of the switches, but the most I could get was the case files used (dictionaries).

Thanks,

Paulo
Bufacchi is offline   Reply With Quote

Old   February 1, 2012, 06:38
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
I'm almost certain there is no prebuilt way to do this - you'll have to get your hands dirty and program it yourself. You can open the .dep file in the build directory to see all the dependencies of your application, and I believe you'll have to add an Info statement to each and every one of them.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   February 1, 2012, 09:07
Default
  #3
Member
 
Paulo Bufacchi
Join Date: Jun 2010
Posts: 50
Rep Power: 16
Bufacchi is on a distinguished road
Quote:
Originally Posted by akidess View Post
I'm almost certain there is no prebuilt way to do this - you'll have to get your hands dirty and program it yourself. You can open the .dep file in the build directory to see all the dependencies of your application, and I believe you'll have to add an Info statement to each and every one of them.

Thank you for the quick reply, Anton.

I changed one of the files in the .dep file to include an info statement and it works great. Thanks. I'll apply this change to some of the files I'm interested in tracking, as the .dep file has over 800 files referenced. Unfortunately I don't have any idea on how to program OpenFOAM to have this done automatically. But you helped me a lot. Thanks again.

Paulo
Bufacchi 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



All times are GMT -4. The time now is 04:49.