CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Logging files (.C and .H) the solver uses during the solution of a case (http://www.cfd-online.com/Forums/openfoam/96790-logging-files-c-h-solver-uses-during-solution-case.html)

Bufacchi February 1, 2012 06:02

Logging files (.C and .H) the solver uses during the solution of a case
 
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

akidess February 1, 2012 06:38

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.

Bufacchi February 1, 2012 09:07

Quote:

Originally Posted by akidess (Post 342241)
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 :)


All times are GMT -4. The time now is 10:15.