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

Compile problem ccm26ToFoam in OpenFoam-1.6

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 7, 2009, 01:04
Default Compile problem ccm26ToFoam in OpenFoam-1.6
  #1
New Member
 
Stefan Hildenbrand
Join Date: Aug 2009
Location: Stuttgart, Germany
Posts: 20
Rep Power: 7
shildenbrand is on a distinguished road
Dear all,

I was trying to compile ccm26ToFoam with the new OpenFOAM Version 1.6.
Besides having to copy some Headerfiles and other stuff from Version 1.5, I get a problem as follows:

ccm26ToFoam.C: In function ‘int main(int, char**)’:
ccm26ToFoam.C:915: error: no matching function for call to ‘Foam::fvMesh::fvMesh(Foam::IOobject, Foam:ointField&, Foam::faceList&, Foam::labelList&, Foam::labelList&)’
/soft/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMesh.H:192: note: candidates are: Foam::fvMesh::fvMesh(const Foam::IOobject&, const Foam::Xfer<Foam::Field<Foam::Vector<double> > >&, const Foam::Xfer<Foam::List<Foam::face> >&, const Foam::Xfer<Foam::List<Foam::cell> >&, bool)
/soft/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMesh.H:181: note: Foam::fvMesh::fvMesh(const Foam::IOobject&, const Foam::Xfer<Foam::Field<Foam::Vector<double> > >&, const Foam::Xfer<Foam::List<Foam::face> >&, const Foam::Xfer<Foam::List<int> >&, const Foam::Xfer<Foam::List<int> >&, bool)
/soft/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMesh.H:169: note: Foam::fvMesh::fvMesh(const Foam::IOobject&)
/soft/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMesh.H:148: note: Foam::fvMesh::fvMesh(const Foam::fvMesh&)

I guess that there is some change in the syntax of the funtion call - but is that all? Do I have to change other parts of the source code as well?

Thanks for you help,

Stefan
shildenbrand is offline   Reply With Quote

Old   August 7, 2009, 04:23
Default
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
No, the only change is in the constructor of fvMesh. I pushed a fixed ccm26ToFoam.C to 1.6.x.

I got a clean build by
cd ThirdParty-1.6
./AllwmakeLibccmio
wmake $FOAM_UTILITIES/mesh/conversion/Optional/ccm26ToFoam/

thanks for reporting.
mattijs is offline   Reply With Quote

Old   August 7, 2009, 04:50
Default
  #3
New Member
 
Stefan Hildenbrand
Join Date: Aug 2009
Location: Stuttgart, Germany
Posts: 20
Rep Power: 7
shildenbrand is on a distinguished road
Hi Mattijs,

thanks a lot. That solved the problem.

Stefan
shildenbrand is offline   Reply With Quote

Old   August 7, 2009, 08:36
Default Where i can find this new ccm26tofoam.c file?
  #4
New Member
 
Join Date: Aug 2009
Posts: 9
Rep Power: 7
az_monger is on a distinguished road
Hello,

i read your discussion and have the same problem.
mattijs said, he solved the problem with a new ccm26ToFoam.C file.

Here's my question: Where i can find this file?
Or is there another way to change only the ccm26ToFoam.C file?

Thank you in advance.
az_monger is offline   Reply With Quote

Old   August 7, 2009, 08:48
Default
  #5
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
You can get 1.6.x from the git repository (see http://www.opencfd.co.uk/openfoam/download.html)
mattijs is offline   Reply With Quote

Old   August 7, 2009, 08:59
Default Thanks a lot
  #6
New Member
 
Join Date: Aug 2009
Posts: 9
Rep Power: 7
az_monger is on a distinguished road
Thanks. I have to install git firstly.
az_monger is offline   Reply With Quote

Old   August 19, 2009, 03:57
Default
  #7
New Member
 
Markus Bentele
Join Date: Aug 2009
Posts: 2
Rep Power: 0
mabentele is on a distinguished road
Hello Mattijs,
I see the same errors as Stefan,
tried to solve it as you posted but got no changes.
Are there any further suggestions ?

Thanks a lot
Markus

################


ben_fnx520> cat libccmio-2.6.1/Make/files
/* Note: make any changes to this file in wmakeFiles/ */
adf = libadf
$(adf)/ADF_fortran_2_c.c
$(adf)/ADF_interface.c
$(adf)/ADF_internals.c
ccmio = libccmio
$(ccmio)/ccmio.c
$(ccmio)/ccmiocore.c
$(ccmio)/ccmioprivate.c
$(ccmio)/ccmioutility.c
$(ccmio)/ccmioversion.c
/*
* the cgns library is not used by ccmio
* retain for documentation purposes only
*
cgns = libcgns
$(cgns)/adf_cond.c
$(cgns)/adf_ftoc.c
$(cgns)/cgns_error.c
$(cgns)/cgns_internals.c
$(cgns)/cgnslib.c
*/
LIB = $(FOAM_LIBBIN)/libccmio


ben_fnx520> cat libccmio-2.6.1/Make/options
/* Note: make any changes to this file in wmakeFiles/ */
/* EXE_INC = */


ben_fnx520>


./AllwmakeLibccmio
+ packageDir=libccmio-2.6.1
+ '[' '!' -d libccmio-2.6.1 ']'
+ '[' -d libccmio-2.6.1 -a '!' -d libccmio-2.6.1/Make ']'
+ '[' -d libccmio-2.6.1/Make ']'
+ wmake libso libccmio-2.6.1
'/disk_f231/tmp/REDHAT/OpenFoam_16/OpenFOAM-1.6/lib/linux64GccDPOpt/libccmio.so' is up to date.

wmake $FOAM_UTILITIES/mesh/conversion/Optional/ccm26ToFoam
SOURCE=ccm26ToFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/disk_f231/tmp/REDHAT/OpenFoam_16/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/disk_f231/tmp/REDHAT/OpenFoam_16/OpenFOAM-1.6/src/meshTools/lnInclude -I/disk_f231/tmp/REDHAT/OpenFoam_16/ThirdParty-1.6/libccmio-2.6.1 -I/disk_f231/tmp/REDHAT/OpenFoam_16/ThirdParty-1.6/libccmio-2.6.1/lnInclude -IlnInclude -I. -I/disk_f231/tmp/REDHAT/OpenFoam_16/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/disk_f231/tmp/REDHAT/OpenFoam_16/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ccm26ToFoam.o
ccm26ToFoam.C: In function \u2018int main(int, char**)\u2019:
ccm26ToFoam.C:915: error: no matching function for call to \u2018Foam::fvMesh::fvMesh(Foam::IOobject, Foam:ointField&, Foam::faceList&, Foam::labelList&, Foam::labelList&)\u2019
/disk_f231/tmp/REDHAT/OpenFoam_16/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMesh.H:192: note: candidates are: Foam::fvMesh::fvMesh(const Foam::IOobject&, const Foam::Xfer<Foam::Field<Foam::Vector<double> > >&, const Foam::Xfer<Foam::List<Foam::face> >&, const Foam::Xfer<Foam::List<Foam::cell> >&, bool)
/disk_f231/tmp/REDHAT/OpenFoam_16/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMesh.H:181: note: Foam::fvMesh::fvMesh(const Foam::IOobject&, const Foam::Xfer<Foam::Field<Foam::Vector<double> > >&, const Foam::Xfer<Foam::List<Foam::face> >&, const Foam::Xfer<Foam::List<int> >&, const Foam::Xfer<Foam::List<int> >&, bool)
/disk_f231/tmp/REDHAT/OpenFoam_16/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMesh.H:169: note: Foam::fvMesh::fvMesh(const Foam::IOobject&)
/disk_f231/tmp/REDHAT/OpenFoam_16/OpenFOAM-1.6/src/finiteVolume/lnInclude/fvMesh.H:148: note: Foam::fvMesh::fvMesh(const Foam::fvMesh&)
make: *** [Make/linux64GccDPOpt/ccm26ToFoam.o] Error 1
mabentele is offline   Reply With Quote

Old   August 19, 2009, 06:56
Default
  #8
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
You seem to be running 1.6. As said the fix is in 1.6.x.
mattijs is offline   Reply With Quote

Old   August 19, 2009, 09:54
Default
  #9
New Member
 
Markus Bentele
Join Date: Aug 2009
Posts: 2
Rep Power: 0
mabentele is on a distinguished road
Yep

thank you

Markus
mabentele is offline   Reply With Quote

Old   October 7, 2009, 08:14
Default wmakeFiles/libccmio/Make not found
  #10
New Member
 
Niclas Wiker
Join Date: Oct 2009
Posts: 2
Rep Power: 0
wiker is on a distinguished road
Hello all,

I just started using OF and I have some problems when trying to compile ccm26ToFoam. I get an error from AllwmakeLibccmio telling me that it cannot copy the folder wmakeFiles/libccmio/Make into the libccmio-2.6.1 folder. When looking inside the ThirdParty-1.6.x folder (I'm running the Git version of OF which compiled just fine on my 64bit linux box) there is no wmakeFiles folder anywhere to find. Shouldn't it be one there or should I be looking somewhere else?

I have also downloaded and unpacked the 32bit ThirdParty files from the OF download site but can't find a wmakeFiles folder there either...

All suggestions on how to solve my problem are much appreciated.

Best regards

Niclas
wiker is offline   Reply With Quote

Old   October 17, 2009, 05:42
Default The missing Make files...
  #11
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hello Niclas,

Well, I ran into the same problem and it seems it's a remnant bug from a year ago... the fix is here.
Fortunately it seems to still work! But don't forget to use the git version (1.6.x) for ccm26ToFoam to build properly

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   October 20, 2009, 15:43
Default
  #12
New Member
 
Niclas Wiker
Join Date: Oct 2009
Posts: 2
Rep Power: 0
wiker is on a distinguished road
It worked! Many thanks Bruno!

Cheers
Niclas
wiker is offline   Reply With Quote

Reply

Tags
ccm26tofoam, compile problems, openfoam 1.6

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
OpenFoam 1.6 Permissions in Ubuntu 9.04 AlanR OpenFOAM Installation 14 December 28, 2009 20:45
problems with installing OpenFOAM 1.6 su_junwei OpenFOAM Installation 8 September 10, 2009 12:54
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
fortran compile problem Don CFX 1 November 5, 2008 06:33
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


All times are GMT -4. The time now is 08:37.