CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] expressionSource problem (https://www.cfd-online.com/Forums/openfoam-community-contributions/117166-expressionsource-problem.html)

ahmmedshakil May 3, 2013 08:55

expressionSource problem
 
Hi,
I am trying to use expressionSource, when I compile with wmake it says: (I am using openFoam 2.1). Don't have any idea why it happens....
SOURCE=interFoamWithSources.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam210/src/transportModels -I/opt/openfoam210/src/transportModels/incompressible/lnInclude -I/opt/openfoam210/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam210/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam210/src/finiteVolume/lnInclude -I../../../Libraries/swak4FoamParsers/lnInclude/ -I../../../Libraries/swakSourceFields/lnInclude/ -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/interFoamWithSources.o
interFoamWithSources.C:48:30: fatal error: expressionSource.H: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/interFoamWithSources.o] Error 1

gschaider May 4, 2013 07:08

Quote:

Originally Posted by ahmmedshakil (Post 424972)
Hi,
I am trying to use expressionSource, when I compile with wmake it says: (I am using openFoam 2.1). Don't have any idea why it happens....
SOURCE=interFoamWithSources.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam210/src/transportModels -I/opt/openfoam210/src/transportModels/incompressible/lnInclude -I/opt/openfoam210/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam210/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam210/src/finiteVolume/lnInclude -I../../../Libraries/swak4FoamParsers/lnInclude/ -I../../../Libraries/swakSourceFields/lnInclude/ -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/interFoamWithSources.o
interFoamWithSources.C:48:30: fatal error: expressionSource.H: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/interFoamWithSources.o] Error 1

Did you copy the sources to a different location? Because the relative paths for some includes (-I../../../Libraries/ ...) assume that it is in a very specific location. If you did then you'll have to adapt these paths

ahmmedshakil May 4, 2013 11:57

I have solved it, and this is due to the path. Thanks


All times are GMT -4. The time now is 00:40.