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

How dependency file is generated in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 18, 2020, 07:22
Post How dependency file is generated in OpenFOAM
  #1
New Member
 
saurabh
Join Date: May 2020
Posts: 2
Rep Power: 0
kavi.saurabh is on a distinguished road
Hi all.
I wanted to know, how OpenFoam selects the .C or .H files while generating dependency (.dep) for any source file.
I am asking this as i have added some .cpp files which i want to be in the dependency list in the same way as .H and .C files are added. I have just started working on OpenFOAM and very new to its code structure. It would be helpful if some info is available regarding this.

Thanks and Regards,
kavi.saurabh is offline   Reply With Quote

Old   August 18, 2020, 16:31
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 802
Blog Entries: 1
Rep Power: 18
dlahaye is on a distinguished road
Often a file Make/files exists. The files Make/files and Make/options are used by wmake (a shell around make, see e.g. https://en.wikipedia.org/wiki/Make_(software) ) to manage the compilation.
dlahaye is offline   Reply With Quote

Old   September 6, 2020, 04:20
Default
  #3
Member
 
Rahul Vadrabade
Join Date: Apr 2018
Posts: 46
Rep Power: 8
Rvadrabade is on a distinguished road
Leave it to wmake to build dependency list.
Add as many .C files in Make/files (file name is EXE=) and all includes (EXE_INC) with library(EXE_LIBS) to be linked in Make/options.

I hope you are well aware of https://cfd.direct/openfoam/user-gui...-applications/
Rvadrabade is offline   Reply With Quote

Reply

Tags
community contribution, developers, openfoam


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
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 15:30
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 19:13
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 18:34
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 18:18
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 11:59


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