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

Error making a new utility code: "cyclicAMILduInterface.H: No such file or directory"

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 2 Post By alexeym
  • 1 Post By Antimony

Reply
 
LinkBack Thread Tools Display Modes
Old   October 12, 2015, 10:46
Default Error making a new utility code: "cyclicAMILduInterface.H: No such file or directory"
  #1
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 313
Rep Power: 10
phsieh2005 is on a distinguished road
Dear OF experts,

I wrote a small utility that compute alpha fields of an interMixingFoam case. This worked under OpenFOAM-2.3.x. However, I am getting errors when compiled in OpenFOAM-2.4.x. It will be appreciated if someone can shed some light on this?

The error messages are attached:

Pei-Ying
-------------
Making dependency list for source file computeAlpha.C
could not open file cyclicAMILduInterface.H for source file computeAlpha.C due to No such file or directory
could not open file cyclicAMIPolyPatch.H for source file computeAlpha.C due to No such file or directory
SOURCE=computeAlpha.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/phsieh/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/phsieh/OpenFOAM/OpenFOAM-2.4.x/src/OpenFOAM/lnInclude -I/home/phsieh/OpenFOAM/OpenFOAM-2.4.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/computeAlpha.o
In file included from /home/phsieh/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/lnInclude/ddtScheme.C:30:0,
from /home/phsieh/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/lnInclude/ddtScheme.H:325,
from /home/phsieh/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/lnInclude/fvcDdt.C:28,
from /home/phsieh/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/lnInclude/fvcDdt.H:199,
from /home/phsieh/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/lnInclude/fvc.H:44,
from /home/phsieh/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/lnInclude/fvCFD.H:8,
from computeAlpha.C:34:
/home/phsieh/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/lnInclude/cyclicAMIFvPatch.H:39:35: fatal error: cyclicAMILduInterface.H: No such file or directory
#include "cyclicAMILduInterface.H"
^
compilation terminated.
computeAlpha.dep:620: recipe for target 'Make/linux64GccDPOpt/computeAlpha.o' failed
make: *** [Make/linux64GccDPOpt/computeAlpha.o] Error 1
phsieh2005 is offline   Reply With Quote

Old   October 12, 2015, 15:33
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,410
Rep Power: 25
alexeym will become famous soon enoughalexeym will become famous soon enough
Hi,

Since location of both cyclicAMILduInterface.H and cyclicAMIPolyPatch.H did not change between 2.3.x. and 2.4.x

Code:
alexey at daphne in OpenFOAM-2.3.x$ find . -name 'cyclicAMILduInterface.H'
./src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMILduInterfaceField/cyclicAMILduInterface.H
./src/meshTools/lnInclude/cyclicAMILduInterface.H
alexey at daphne in OpenFOAM-2.3.x$ cd ../OpenFOAM-2.4.x/
alexey at daphne in OpenFOAM-2.4.x$ find . -name 'cyclicAMILduInterface.H'
./src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMILduInterfaceField/cyclicAMILduInterface.H
./src/meshTools/lnInclude/cyclicAMILduInterface.H
alexey at daphne in OpenFOAM-2.4.x$ find . -name 'cyclicAMIPolyPatch.H'
./src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.H
./src/meshTools/lnInclude/cyclicAMIPolyPatch.H
alexey at daphne in OpenFOAM-2.4.x$ cd ../OpenFOAM-2.3.x/
alexey at daphne in OpenFOAM-2.3.x$ find . -name 'cyclicAMIPolyPatch.H'
./src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.H
./src/meshTools/lnInclude/cyclicAMIPolyPatch.H
guess, problem is elsewhere.

Surely it would be much easier if you post a link to your code but it you can not, do you have

Code:
-I$(LIB_SRC)/meshTools/lnInclude
line in your Make/options.
Zen and chengyu like this.
alexeym is offline   Reply With Quote

Old   October 12, 2015, 19:16
Thumbs up
  #3
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 313
Rep Power: 10
phsieh2005 is on a distinguished road
Hi, Alexeym,


Thanks a lot for the reply!

Yes, I did more digging and found exactly what you said. The AMI areas have not changed between of-24x and of-23x. I then looked at some option file in utilities. I was able to compile successfully by adding a couple links.

I have not used the utility code for quite some time now. I thought that time I used it was of-23x. I guess I was wrong.

Best regards,

Pei-Ying
phsieh2005 is offline   Reply With Quote

Old   February 5, 2016, 06:29
Default
  #4
Senior Member
 
Join Date: Aug 2013
Posts: 185
Rep Power: 5
Antimony is on a distinguished road
Hi All,

To anyone else who is still facing this problem (like I did for a couple of hours recently), please note that the solution given works, provided it is the first one included.

That is, if you have (for example)

EXE_INC = \
-I$(LIB_SRC)/someLibrary

Change it to this:
EXE_INC = \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/someLibrary

The reason I type this is because I distinctly remember putting the original hint into the options file, but I still had errors. However, when I changed the order, it seemed to work.

Again, it might have been a one-off, but if anyone else faced the same issue, give this method a shot as well.

Thanks alexeym for the original solution!

Cheers,
Antimony
Anamitra likes this.
Antimony is offline   Reply With Quote

Old   February 28, 2016, 07:33
Default
  #5
New Member
 
Join Date: Oct 2014
Posts: 28
Rep Power: 3
lisa_china is on a distinguished road
Hi, Antimony.
I'm not familiar with Linux, but I encountered this problem, too. And I tried your suggestion, but it didn't work. So could you tell me what's the meaning of -I?
lisa_china is offline   Reply With Quote

Old   February 28, 2016, 08:51
Default
  #6
Senior Member
 
Join Date: Aug 2013
Posts: 185
Rep Power: 5
Antimony is on a distinguished road
Hi,

Can you please explain/post the error that you are encountering?

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   February 29, 2016, 03:42
Default
  #7
New Member
 
Join Date: Oct 2014
Posts: 28
Rep Power: 3
lisa_china is on a distinguished road
Hi,Antimony.
thanks for your reply. I solved it
lisa_china is offline   Reply With Quote

Old   May 10, 2016, 05:45
Default
  #8
New Member
 
vipin
Join Date: Jun 2015
Posts: 14
Rep Power: 3
vipin1431 is on a distinguished road
Quote:
Originally Posted by lisa_china View Post
Hi,Antimony.
thanks for your reply. I solved it
hi lisa,
I got similar error like yours. can you please tell me how did u solve that?
vipin1431 is offline   Reply With Quote

Old   May 22, 2016, 06:53
Default
  #9
New Member
 
Join Date: Oct 2014
Posts: 28
Rep Power: 3
lisa_china is on a distinguished road
hi vipin,
have you solved it?
could you show your error information to us? then more people can help you.
lisa_china is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 94 August 19, 2016 08:14
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 11:32
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 11:59
Version 15 on Mac OS X gschaider OpenFOAM Installation 120 December 2, 2009 11:23


All times are GMT -4. The time now is 06:24.