|
[Sponsors] |
May 21, 2015, 06:18 |
Add $WM_PROJECT_USER_DIR in .dep files
|
#1 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 313
Rep Power: 15 |
Hi everyone
I have been developping some libraries, and I have included the *.H file in some other elements, in order to use their content. I am moving these libraries to other computer, but since I have declared all the paths with $WM_PROJECT_USER_DIR, $FOAM_USER ... I thought I should have no problem. But once I compile again in the 2nd computer, it gives an error, it can't make target the folder of the previous instalation. So I check the *.dep file and I get all the dependencies of the files, ie: But, when there is a dependencie with my own libraries, instead of having I get So now I am wondering if there is a possibility to get the path by using the enviromental variable. You could think "clean and compile", but now it's not an option. Do you have any idea about how to do this? Thanks in advance! |
|
May 21, 2015, 16:07 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings Agustín,
The ".dep" files are generated by wmake whenever needed. The content of these files should have all paths fully expanded and no environment variables should appear in them. I'm having trouble figuring out from your description where exactly you're using the environment variables. Can you provide an example of the files you've modified and how you've defined the environment variables? I ask this because it would make it a lot easier to diagnose the problem. Best regards, Bruno
__________________
|
|
May 22, 2015, 03:34 |
|
#3 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 313
Rep Power: 15 |
Hello wyldckat,
here I attach a part of the options file: Code:
EXE_INC = \ -I$(LIB_SRC)/turbulenceModels \ -I$(WM_PROJECT_USER_DIR)/src/turbulenceModels/incompressible/turbulenceModel \ and here you have the .dep file I have Code:
derivedFvPatchFields/wallFunctions/epsilontWallFunctions/epsilontLowReManservisiWallFunction/epsilontLowReManservisiWallFunctionFvPatchScalarField.dep: $(WM_PROJECT_DIR)/src/OpenFOAM/lnInclude/sphericalTensorFieldField.H derivedFvPatchFields/wallFunctions/epsilontWallFunctions/epsilontLowReManservisiWallFunction/epsilontLowReManservisiWallFunctionFvPatchScalarField.dep: $(WM_PROJECT_DIR)/src/OpenFOAM/lnInclude/sphericalTensorFieldField.C derivedFvPatchFields/wallFunctions/epsilontWallFunctions/epsilontLowReManservisiWallFunction/epsilontLowReManservisiWallFunctionFvPatchScalarField.dep: $(WM_PROJECT_DIR)/src/OpenFOAM/lnInclude/tensorFieldField.C derivedFvPatchFields/wallFunctions/epsilontWallFunctions/epsilontLowReManservisiWallFunction/epsilontLowReManservisiWallFunctionFvPatchScalarField.dep: $(WM_PROJECT_DIR)/src/finiteVolume/lnInclude/calculatedFvPatchFields.H derivedFvPatchFields/wallFunctions/epsilontWallFunctions/epsilontLowReManservisiWallFunction/epsilontLowReManservisiWallFunctionFvPatchScalarField.dep: /students/rm_13_14/villaortiz/OpenFOAM/villaortiz-2.3.1/src/turbulenceModels/incompressible/turbulenceModel/turbulenceThermalModel.H derivedFvPatchFields/wallFunctions/epsilontWallFunctions/epsilontLowReManservisiWallFunction/epsilontLowReManservisiWallFunctionFvPatchScalarField.dep: $(WM_PROJECT_DIR)/src/OpenFOAM/lnInclude/addToRunTimeSelectionTable.H |
|
May 24, 2015, 09:20 |
|
#4 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi agustinvo,
Quote:
What you might not yet have noticed is that the "*.dep" files will be reconstructed automatically by wmake. For example:
Best regards, Bruno |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to open old mesh cmdb files in ANSYS CFX v13.0 ? | Sudharshani | CFX | 2 | May 12, 2013 22:13 |
Compiled library vs. inInclude Files, DSMC solver crashes after run | GPesch | OpenFOAM Programming & Development | 8 | April 18, 2013 07:17 |
Results saving in CFD | hawk | Main CFD Forum | 16 | July 21, 2005 20:51 |
[making animations] fclose fails to close files? | Mika | FLUENT | 0 | March 30, 2001 08:19 |
Merging .msh files in TGrid | Raza Mirza | FLUENT | 2 | January 18, 2001 18:09 |