Logging files (.C and .H) the solver uses during the solution of a case
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:
I would like to have something like:
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).
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.
|All times are GMT -4. The time now is 20:16.|