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

Compile problem ccm26ToFoam in OpenFoam-1.6

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 7, 2009, 02:04
Default Compile problem ccm26ToFoam in OpenFoam-1.6
  #1
New Member
 
Stefan Hildenbrand
Join Date: Aug 2009
Location: Stuttgart, Germany
Posts: 24
Rep Power: 17
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, 05:23
Default
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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, 05:50
Default
  #3
New Member
 
Stefan Hildenbrand
Join Date: Aug 2009
Location: Stuttgart, Germany
Posts: 24
Rep Power: 17
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, 09:36
Default Where i can find this new ccm26tofoam.c file?
  #4
New Member
 
Join Date: Aug 2009
Posts: 9
Rep Power: 17
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, 09:48
Default
  #5
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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, 09:59
Default Thanks a lot
  #6
New Member
 
Join Date: Aug 2009
Posts: 9
Rep Power: 17
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, 04: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, 07:56
Default
  #8
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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, 10: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, 09: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, 06:42
Default The missing Make files...
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 16: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


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
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 13:54
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 06:56
fortran compile problem Don CFX 1 November 5, 2008 06:33
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07


All times are GMT -4. The time now is 05:18.