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

problems with installing OpenFOAM 1.6

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 28, 2009, 16:23
Default problems with installing OpenFOAM 1.6
  #1
Senior Member
 
su_junwei's Avatar
 
su junwei
Join Date: Mar 2009
Location: Xi'an China
Posts: 151
Rep Power: 20
su_junwei is on a distinguished road
Send a message via MSN to su_junwei
Dear Foamers
When installing the new version of OpenFOAM, I encountered a problem in fvMesh.C. It seems that there are several invokings of default constructor (copy) which were defined as private members in the crossponding class. The errors are listed below.

In file included from fvMesh/fvMesh.C:53:
lnInclude/CECCellToFaceStencil.H: In constructor ‘Foam::centredCECCellToFaceStencilObject::centredC ECCellToFaceStencilObject(const Foam::fvMesh&)’:
lnInclude/CECCellToFaceStencil.H:57: error: ‘Foam::CECCellToFaceStencil::CECCellToFaceStencil( const Foam::CECCellToFaceStencil&)’ is private
lnInclude/centredCECCellToFaceStencilObject.H:69: error: within this context
In file included from fvMesh/fvMesh.C:54:
lnInclude/CFCCellToFaceStencil.H: In constructor ‘Foam::centredCFCCellToFaceStencilObject::centredC FCCellToFaceStencilObject(const Foam::fvMesh&)’:
lnInclude/CFCCellToFaceStencil.H:57: error: ‘Foam::CFCCellToFaceStencil::CFCCellToFaceStencil( const Foam::CFCCellToFaceStencil&)’ is private
lnInclude/centredCFCCellToFaceStencilObject.H:69: error: within this context
In file included from fvMesh/fvMesh.C:55:
lnInclude/CPCCellToFaceStencil.H: In constructor ‘Foam::centredCPCCellToFaceStencilObject::centredC PCCellToFaceStencilObject(const Foam::fvMesh&)’:
lnInclude/CPCCellToFaceStencil.H:57: error: ‘Foam::CPCCellToFaceStencil::CPCCellToFaceStencil( const Foam::CPCCellToFaceStencil&)’ is private
lnInclude/centredCPCCellToFaceStencilObject.H:69: error: within this context
In file included from fvMesh/fvMesh.C:56:
lnInclude/FECCellToFaceStencil.H: In constructor ‘Foam::centredFECCellToFaceStencilObject::centredF ECCellToFaceStencilObject(const Foam::fvMesh&)’:
lnInclude/FECCellToFaceStencil.H:69: error: ‘Foam::FECCellToFaceStencil::FECCellToFaceStencil( const Foam::FECCellToFaceStencil&)’ is private
lnInclude/centredFECCellToFaceStencilObject.H:69: error: within this context
In file included from fvMesh/fvMesh.C:57:
lnInclude/CECCellToFaceStencil.H: In constructor ‘Foam::upwindCECCellToFaceStencilObject::upwindCEC CellToFaceStencilObject(const Foam::fvMesh&, bool, Foam::scalar)’:
lnInclude/CECCellToFaceStencil.H:57: error: ‘Foam::CECCellToFaceStencil::CECCellToFaceStencil( const Foam::CECCellToFaceStencil&)’ is private
lnInclude/upwindCECCellToFaceStencilObject.H:76: error: within this context
In file included from fvMesh/fvMesh.C:58:
lnInclude/CFCCellToFaceStencil.H: In constructor ‘Foam::upwindCFCCellToFaceStencilObject::upwindCFC CellToFaceStencilObject(const Foam::fvMesh&, bool, Foam::scalar)’:
lnInclude/CFCCellToFaceStencil.H:57: error: ‘Foam::CFCCellToFaceStencil::CFCCellToFaceStencil( const Foam::CFCCellToFaceStencil&)’ is private
lnInclude/upwindCFCCellToFaceStencilObject.H:76: error: within this context
In file included from fvMesh/fvMesh.C:59:
lnInclude/CPCCellToFaceStencil.H: In constructor ‘Foam::upwindCPCCellToFaceStencilObject::upwindCPC CellToFaceStencilObject(const Foam::fvMesh&, bool, Foam::scalar)’:
lnInclude/CPCCellToFaceStencil.H:57: error: ‘Foam::CPCCellToFaceStencil::CPCCellToFaceStencil( const Foam::CPCCellToFaceStencil&)’ is private
lnInclude/upwindCPCCellToFaceStencilObject.H:76: error: within this context
In file included from fvMesh/fvMesh.C:60:
lnInclude/FECCellToFaceStencil.H: In constructor ‘Foam::upwindFECCellToFaceStencilObject::upwindFEC CellToFaceStencilObject(const Foam::fvMesh&, bool, Foam::scalar)’:
lnInclude/FECCellToFaceStencil.H:69: error: ‘Foam::FECCellToFaceStencil::FECCellToFaceStencil( const Foam::FECCellToFaceStencil&)’ is private
lnInclude/upwindFECCellToFaceStencilObject.H:76: error: within this context
In file included from fvMesh/fvMesh.C:62:
lnInclude/CFCFaceToCellStencil.H: In constructor ‘Foam::centredCFCFaceToCellStencilObject::centredC FCFaceToCellStencilObject(const Foam::fvMesh&)’:
lnInclude/CFCFaceToCellStencil.H:60: error: ‘Foam::CFCFaceToCellStencil::CFCFaceToCellStencil( const Foam::CFCFaceToCellStencil&)’ is private
lnInclude/centredCFCFaceToCellStencilObject.H:69: error: within this context

Junwei
su_junwei is offline   Reply With Quote

Old   July 28, 2009, 18:58
Default
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
What compiler are you using? gcc 4.3.3 works.
mattijs is offline   Reply With Quote

Old   July 28, 2009, 19:01
Default
  #3
Senior Member
 
su_junwei's Avatar
 
su junwei
Join Date: Mar 2009
Location: Xi'an China
Posts: 151
Rep Power: 20
su_junwei is on a distinguished road
Send a message via MSN to su_junwei
I am using gcc 4.2.1. Mybe it is the problem.
su_junwei is offline   Reply With Quote

Old   July 29, 2009, 03:57
Default cmake missing?
  #4
Member
 
Thomas Wolfanger
Join Date: Mar 2009
Location: South West Germany
Posts: 62
Rep Power: 17
anger is on a distinguished road
Hello,

I tried to compile paraFoam but noticed an error saying that cmake was not found. Indeed, there is no cmake in the ThirdParty package I downloaded; using cmake form 1.5 didn't work because it's too old (v. 2.4.6 vs. 2.6 required for OF1.6).
Is there any possibility to get cmake 2.6 from a different source?

Best regards,
-Thomas
anger is offline   Reply With Quote

Old   July 29, 2009, 06:23
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by anger View Post
Hello,

I tried to compile paraFoam but noticed an error saying that cmake was not found. Indeed, there is no cmake in the ThirdParty package I downloaded; using cmake form 1.5 didn't work because it's too old (v. 2.4.6 vs. 2.6 required for OF1.6).
Is there any possibility to get cmake 2.6 from a different source?

Best regards,
-Thomas
Yes it is. Just download it from www.cmake.org, extract it to ThirdParty-1.6, compile it and either install it or do somthing similar to

export PATH=<ThirpartyDir>/<CmakeDir>/bin:$PATH

(this is just a symbolic path) and you're set (test with "which cmake" whether the right one is picked up)
gschaider is offline   Reply With Quote

Old   July 29, 2009, 10:24
Default
  #6
Member
 
Michael Roth
Join Date: Mar 2009
Location: Guelph, Ontario, Canada
Posts: 50
Rep Power: 17
roth is on a distinguished road
Quote:
Originally Posted by mattijs View Post
What compiler are you using? gcc 4.3.3 works.
Are there any thoughts on reworking the code slightly to allow Foam to compile under gcc 4.2? Or should everyone bite the bullet and install 4.3 (or 4.4)?
Mike
roth is offline   Reply With Quote

Old   September 8, 2009, 19:07
Default
  #7
New Member
 
Cheng
Join Date: Apr 2009
Posts: 6
Rep Power: 17
jsltlx is on a distinguished road
I'm having the same problem with gcc-4.1.2. Mattijs suggested a workaround in the following thread:

http://www.cfd-online.com/Forums/ope...l-private.html

I'm not sure if I understood it correctly, but it didn't work for me (I made changes in the header files in src/finiteVolume/fvMesh/extendedStencil/cellToFace/MeshObjects/)

I'd highly appreciate if someone could help with this. Thanks.

Cheng

Quote:
Originally Posted by roth View Post
Are there any thoughts on reworking the code slightly to allow Foam to compile under gcc 4.2? Or should everyone bite the bullet and install 4.3 (or 4.4)?
Mike
jsltlx is offline   Reply With Quote

Old   September 9, 2009, 19:16
Default
  #8
Senior Member
 
su_junwei's Avatar
 
su junwei
Join Date: Mar 2009
Location: Xi'an China
Posts: 151
Rep Power: 20
su_junwei is on a distinguished road
Send a message via MSN to su_junwei
you can download binary version of openfoam and using the gcc in third-party dir not the system. This should solve the problem
su_junwei is offline   Reply With Quote

Old   September 10, 2009, 13:54
Default
  #9
New Member
 
Cheng
Join Date: Apr 2009
Posts: 6
Rep Power: 17
jsltlx is on a distinguished road
Quote:
Originally Posted by su_junwei View Post
you can download binary version of openfoam and using the gcc in third-party dir not the system. This should solve the problem
Thanks for the suggestion. This is of course worth trying (if you're lucky to have a compatible system). I'll stick to 1.5 for now.

I'm still waiting for a workaround for this (since installing higher version of gcc is out of the question). Any suggestion/help will be highly appreciated.
jsltlx is offline   Reply With Quote

Reply


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 Version 1.6 Released opencfd OpenFOAM Announcements from ESI-OpenCFD 0 July 27, 2009 18:55
Problem installing OpenFOAM 1.5 installation on RHEL 4. vwsj84 OpenFOAM Installation 4 April 23, 2009 05:48
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 15:25
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 14:50
Problems installing OpenFoam on a 64bit machine jango OpenFOAM Installation 1 June 4, 2007 15:53


All times are GMT -4. The time now is 11:09.