|
[Sponsors] |
November 2, 2010, 08:44 |
Problem in Compiling the solver
|
#1 |
Member
Mehdi
Join Date: Oct 2009
Posts: 61
Rep Power: 17 |
Dear all
Here i added one of the Header files to the solver files and compile it and i encounter this error which i cant understand it. would any one please help me what it does mean ? In file included from mdFoam.C:67: /home/mehdi/OpenFOAM/OpenFOAM-1.6/src/lagrangian/molecularDynamics/molecule/lnInclude/temperatureEquilibration.H: In function ‘int main(int, char**)’: /home/mehdi/OpenFOAM/OpenFOAM-1.6/src/lagrangian/molecularDynamics/molecule/lnInclude/temperatureEquilibration.H:37: error: ‘targetTemperature’ was not declared in this scope make: *** [Make/linuxGccDPOpt/mdFoam.o] Error 1 Regards |
|
November 2, 2010, 17:08 |
Options file in Make folder?
|
#2 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
Did you set up your Options file in your make folder to include another header from a source outside your solver folder?
if I wanted to include something from the lagrangian basic and intermediate class, i would add the folder containing the header i wanted on the include path Code:
EXE_INC = \ ...other include files here\ -I$(LIB_SRC)/lagrangian/basic/lnInclude \ -I$(LIB_SRC)/lagrangian/intermediate/lnInclude |
|
November 2, 2010, 18:01 |
|
#3 |
Member
Mehdi
Join Date: Oct 2009
Posts: 61
Rep Power: 17 |
well, i didnt understand the point you mentioned completely. i do this by adding the # include <temperatureEquilibration.H> to the solver file and when trying to compile it such error happens... What is the reason for it?
|
|
November 2, 2010, 18:41 |
that variable is undefined
|
#4 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
try adding the header file readmdEquilibrationDict.H before the temperatureEquilibration.H file. The temperatureEquilibration.H file needs the variable targetTemperature to be defined...and that what it is complaining about. Im looking in the solver mdEquilibrationFoam in openfoam-1.5-dev...but this is probably relevant to other MD solvers in OF.
Dan |
|
November 3, 2010, 03:07 |
|
#5 |
Member
Mehdi
Join Date: Oct 2009
Posts: 61
Rep Power: 17 |
Thanks alot.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 05:43 |
problem with developing new LES solver | Edison_Ge | OpenFOAM | 2 | June 18, 2009 02:26 |
CFX 11 x64 solver? problem | Attesz | CFX | 6 | June 7, 2009 09:37 |
Problem in compiling property(density) UDF | satish2968 | FLUENT | 3 | October 31, 2008 16:06 |
Problem in tesing the icoFoam solver | liuzhw | OpenFOAM Running, Solving & CFD | 0 | November 2, 2005 23:33 |