|
[Sponsors] |
What is the difference of the codes under src and applications? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 1, 2017, 16:52 |
What is the difference of the codes under src and applications?
|
#1 |
New Member
Join Date: Aug 2016
Posts: 3
Rep Power: 9 |
Hi there,
I'm starting coding with OpenFOAM and I'm confused that there are some files holding same names and contents under OpenFOAM-4.1/src and OpenFOAM-4.1/applications For example, we have /OpenFOAM-4.1/src/mesh/blockMesh/blockMesh/blockMesh.C and /OpenFOAM-4.1/applications/utilities/mesh/generation/blockMesh/blockMesh.C My question is, why do we need the same file in different folders? |
|
March 2, 2017, 02:53 |
|
#2 |
Senior Member
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20 |
If you'd open those files, you'll see that they are not the same.
src: All OpenFoam libraries' sources. This code doesn't do anything on its own: it needs an executable to require them in order to be executed. applications: All executables, like solvers and pre-/postprocessing utilities. These executables typically use (a lot of) source code from OpenFoam's libraries by linking the libraries (see: Make/options that resides in every solver directory etc.). In the case of blockMesh,
|
|
March 2, 2017, 14:30 |
|
#3 | |
New Member
Join Date: Aug 2016
Posts: 3
Rep Power: 9 |
Quote:
Thanks a lot! |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is it safe to change owner of src to root? | chrisb2244 | OpenFOAM Programming & Development | 2 | February 20, 2014 06:59 |