|
[Sponsors] |
Logging files (.C and .H) the solver uses during the solution of a case |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 1, 2012, 06:02 |
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 |
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 |
|
February 1, 2012, 06:38 |
|
#2 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
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. |
|
February 1, 2012, 09:07 |
|
#3 | |
Member
Paulo Bufacchi
Join Date: Jun 2010
Posts: 50
Rep Power: 16 |
Quote:
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 |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|