|
[Sponsors] |
Custom BC compilation error - missing rule for Make/linux64GccDPInt32Opt |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 1, 2020, 09:50 |
Custom BC compilation error - missing rule for Make/linux64GccDPInt32Opt
|
#1 |
Member
Join Date: Jun 2020
Posts: 49
Rep Power: 6 |
Hi everyone,
I am completely new to OpenFOAM and need to implement a custom boundary condition for my work. For this I have followed the instructions of someone else and did the following: 1. I copied the original BC into $(WM_PROJECT_USER_DIR) and renamed all file names and names inside the source code. 2. I created the Make/files and options files, they look as follows Make/files Code:
swirlNumRankineFlowRateInletVelocity/swirlNumRankineFlowRateInletVelocityFvPatchVectorField.C LIB = $(FOAM_USER_LIBBIN)/libmyBCs Code:
EXE_INC = \\ -I$(LIB_SRC)/finiteVolume/lnInclude \\ -I$(LIB_SRC)/triSurface/lnInclude \\ -I$(LIB_SRC)/meshTools/lnInclude EXE_LIBS = \\ -lfiniteVolume \\ -ltriSurface \\ -lmeshTools 4. I tried compiling it using wmake, but am getting the following error message: wmakeLnInclude: linkung include files to ./lnInclude make: ***Keine Regel vorhanden, um das Ziel "Make/linux64GccDPInt32Opt/swirlNumRankineFlowRateInletVelocity/swirlNumFlowRateInletVelocityFvPatchVectorField.C. dep", benötigt von "Make/linux64GccDPInt32Opt/swirlsNumRankineFlowRateInletVelocity/swirlNumRankineFlowRateInletVelocityFvPatchVectorF ield.o", zu erstellen. Schluss. It basically says, that it is lacking a rule to create Make/linux64GccDPInt32Opt/… I have double checked the spelling in my Make/files and Options, but couldn´t figure out, what that actually means. I would be very glad, if someone here could help me figure it out. And please forgive me, if I forgot to mention anything important. Just let me know and I will try to give any information necesssary. Thank you! Last edited by Swirl; June 1, 2020 at 10:40. Reason: More precise title |
|
June 1, 2020, 12:08 |
Path not found
|
#2 |
Senior Member
Carlos Rubio Abujas
Join Date: Jan 2018
Location: Spain
Posts: 127
Rep Power: 11 |
Hi Swirl,
It seems that the compiler cannot find the file referenced by the path "swirlNumRankineFlowRateInletVelocity/swirlNumRankineFlowRateInletVelocityFvPatchVectorF ield.C", are you sure that the path to this file is correct? Try positioning yourself wherever the "Make" folder exists and access the .C file with the relative path mentioned. The wmake command must be executed in this specific folder to work, and the relative paths must be exact. I hope that solves the problem. |
|
June 1, 2020, 12:19 |
|
#3 |
Member
Join Date: Jun 2020
Posts: 49
Rep Power: 6 |
Thanks for your reply! The Make Folder, .C and .H file are located in a Folder called "swirlNumRankineFlowrateInletVelocity". Compiling it without the Folder Name in the path like
Code:
swirlNumRankineFlowRateInletVelocityFvPtachVectorField.C LIB = $(FOAM_USER_LIBBIN)/libmyBCs |
|
June 1, 2020, 12:21 |
wmake/rules
|
#4 |
Member
Join Date: Jun 2020
Posts: 49
Rep Power: 6 |
I also looked into the wmake/rules Folder, and could not find a document with the Name "linux64GccDPInt32Opt". Don´t know, maybe that has something to do with it.
|
|
June 1, 2020, 12:24 |
Solved it
|
#5 |
Member
Join Date: Jun 2020
Posts: 49
Rep Power: 6 |
It was probably the most stupid mistake ever. I had a spelling mistake in the file name. now it compiles. Thank you so much! I literally spent the entire day searching for the error.
|
|
June 1, 2020, 12:32 |
Typo?
|
#6 | |
Senior Member
Carlos Rubio Abujas
Join Date: Jan 2018
Location: Spain
Posts: 127
Rep Power: 11 |
Quote:
Code:
swirlNumRankineFlowRateInletVelocityFvPtachVectorField.C LIB = $(FOAM_USER_LIBBIN)/libmyBCs The folder linux64GccDPInt32Opt will be created by wmake along the compiling process, I don't think it is related to your problem. If you still having problems you can pack the files and send them to me for having a further look. |
||
June 1, 2020, 12:35 |
I know typos are the worst
|
#7 | |
Senior Member
Carlos Rubio Abujas
Join Date: Jan 2018
Location: Spain
Posts: 127
Rep Power: 11 |
Quote:
Wops! You figured it out while I was writing to you. Don't worry this type of silly mistakes happens all the times! Glad I could help you detecting the typo! Good luck! |
||
Tags |
compillation error, custom boundary condition, linux64gccdpint32opt, wmake |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
long error when using make-install SU2_AD. | tomp1993 | SU2 Installation | 3 | March 17, 2018 07:25 |
Mesquite - Adaptive mesh refinement / coarsening? | philippose | OpenFOAM Running, Solving & CFD | 94 | January 27, 2016 10:40 |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM Community Contributions | 300 | October 29, 2014 19:00 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |
Compiling problems with hello worldC | fw407 | OpenFOAM Installation | 21 | January 6, 2008 18:38 |