CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Custom BC compilation error - missing rule for Make/linux64GccDPInt32Opt

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 1, 2020, 08:50
Default Custom BC compilation error - missing rule for Make/linux64GccDPInt32Opt
  #1
Member
 
Join Date: Jun 2020
Posts: 49
Rep Power: 5
Swirl is on a distinguished road
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
Make/options
Code:
EXE_INC = \\
   -I$(LIB_SRC)/finiteVolume/lnInclude \\
   -I$(LIB_SRC)/triSurface/lnInclude \\
   -I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \\
   -lfiniteVolume \\
   -ltriSurface \\
   -lmeshTools
3. Then I changed the code to make it do what I need for the BC
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 09:40. Reason: More precise title
Swirl is offline   Reply With Quote

Old   June 1, 2020, 11:08
Post Path not found
  #2
Senior Member
 
Carlos Rubio Abujas
Join Date: Jan 2018
Location: Spain
Posts: 127
Rep Power: 9
crubio.abujas is on a distinguished road
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.
crubio.abujas is offline   Reply With Quote

Old   June 1, 2020, 11:19
Default
  #3
Member
 
Join Date: Jun 2020
Posts: 49
Rep Power: 5
Swirl is on a distinguished road
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
made no difference.
Swirl is offline   Reply With Quote

Old   June 1, 2020, 11:21
Default wmake/rules
  #4
Member
 
Join Date: Jun 2020
Posts: 49
Rep Power: 5
Swirl is on a distinguished road
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.
Swirl is offline   Reply With Quote

Old   June 1, 2020, 11:24
Default Solved it
  #5
Member
 
Join Date: Jun 2020
Posts: 49
Rep Power: 5
Swirl is on a distinguished road
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.
Swirl is offline   Reply With Quote

Old   June 1, 2020, 11:32
Default Typo?
  #6
Senior Member
 
Carlos Rubio Abujas
Join Date: Jan 2018
Location: Spain
Posts: 127
Rep Power: 9
crubio.abujas is on a distinguished road
Quote:
Originally Posted by Swirl View Post
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.
Code:
swirlNumRankineFlowRateInletVelocityFvPtachVectorField.C
LIB = $(FOAM_USER_LIBBIN)/libmyBCs
Is the bold part a typo? Maybe it is Patch instead of Ptach?

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.
crubio.abujas is offline   Reply With Quote

Old   June 1, 2020, 11:35
Default I know typos are the worst
  #7
Senior Member
 
Carlos Rubio Abujas
Join Date: Jan 2018
Location: Spain
Posts: 127
Rep Power: 9
crubio.abujas is on a distinguished road
Quote:
Originally Posted by crubio.abujas View Post
[CODE]
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.

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!
crubio.abujas is offline   Reply With Quote

Reply

Tags
compillation error, custom boundary condition, linux64gccdpint32opt, wmake


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
long error when using make-install SU2_AD. tomp1993 SU2 Installation 3 March 17, 2018 06:25
Mesquite - Adaptive mesh refinement / coarsening? philippose OpenFOAM Running, Solving & CFD 94 January 27, 2016 09:40
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 17:38


All times are GMT -4. The time now is 04:34.