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

Install doesnbt work

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2007, 12:14
Default I'm a newcomer, Intel GmbH Ger
  #1
New Member
 
Hans-Joachim Plum
Join Date: Mar 2009
Posts: 8
Rep Power: 17
hplum is on a distinguished road
I'm a newcomer, Intel GmbH Germany, wanting to use OpenFOAM as Cluster benchmark

Using the install "Allwmake", always runs into
template definition problems (g++ or Intel icpc)

Using g++

SOURCE=fvMeshDistribute/fvMeshDistribute.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-pa
rameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/hplum/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolu
me/lnInclude -I/home/hplum/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -I/home/hplum/OpenFOAM/OpenFOAM-1.4.1/src/
triSurface/lnInclude -IlnInclude -I. -I/home/hplum/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread -c
$SOURCE -o Make/linuxGccDPOpt/fvMeshDistribute.o
In file included from fvMeshDistribute/fvMeshDistribute.H:397,
from fvMeshDistribute/fvMeshDistribute.C:30:
fvMeshDistribute/fvMeshDistributeTemplates.C: In static member function `static void Foam::fvMeshDistribute::sendFiel
ds(Foam::label, const Foam::wordList&, const Foam::fvMeshSubset&)':
fvMeshDistribute/fvMeshDistributeTemplates.C:299: error: expected primary-expression before '>' token
make: *** [Make/linuxGccDPOpt/fvMeshDistribute.o] Error 1


usinf Intel icpc

SOURCE=motionSmoother/motionSmoother.C ; icpc -Dlinux -DDP -wd654,819,1125,1476,1505,1572 -ansi-alias -O3 -ftz -fno-
alias -fargument-noalias-global -unroll0 -DNoRepository -I/home/hplum/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInc
lude -I/home/hplum/OpenFOAM/OpenFOAM-1.4.1/src/meshTools/lnInclude -I/home/hplum/OpenFOAM/OpenFOAM-1.4.1/src/triSurfa
ce/lnInclude -IlnInclude -I. -I/home/hplum/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -KPIC -c $SOURCE -o Make/
linuxicpcDPOpt/motionSmoother.o
/home/hplum/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/FieldFieldFunctions.C (832): error: no instance of overload
ed function "Foam::outer" matches the argument list
argument types are: (Foam::pointPatchField<foam::vector>, const Foam::pointPatchField<foam::scalar>, cons
t Foam::pointPatchField<foam::vector>)
PRODUCT_OPERATOR(outerProduct, *, outer)
^
detected during:
instantiation of "void Foam::outer(Foam::FieldField<field,>::type> &, con
st Foam::FieldField<field,> &, const Foam::FieldField<field,> &) [with Field=Foam::pointPatchField, Type1=
Foam::FieldField<foam::pointpatchfield,>::cmptType ={Foam::VectorSpace<Foam::Vect or<Foam::scalar={Foam::d
oubleScalar={double}}>, Foam::scalar={Foam::doubleScalar={double}}, 3>::cmptType={Foam::scalar={Foam::doubleScalar={d
ouble}}}}, Type2=Foam::vector]"
at line 952 of "/home/hplum/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/GeometricFieldFuncti
ons.C"
instantiation of "void Foam::outer(Foam::GeometricField<foam::outerproduc t<type1,>::type, PatchFiel
d, GeoMesh> &, const Foam::GeometricField<typer,> &, const Foam::GeometricField<Type1, PatchField
, GeoMesh> &) [with Type1=Foam::scalar={Foam::doubleScalar={double}}, Type2=Foam::vector, PatchField=Foam::pointPatch
Field, GeoMesh=Foam::pointMesh]" at line 952 of "/home/hplum/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude/Geometric
FieldFunctions.C"
instantiation of "Foam::tmp<foam::geometricfield<foam::outerproduct <type1,>::type, PatchField, GeoM
esh>> Foam::operator*(const Foam::GeometricField<typer,> &, const Foam::GeometricField<Type1, Pat
chField, GeoMesh> &) [with Type1=Foam::scalar={Foam::doubleScalar={double}}, Type2=Foam::vector, PatchField=Foam::poi
ntPatchField, GeoMesh=Foam::pointMesh]"

compilation aborted for motionSmoother/motionSmoother.C (code 2)
hplum is offline   Reply With Quote

Old   August 9, 2007, 12:37
Default Which version of g++ are you u
  #2
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
Which version of g++ are you using?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 9, 2007, 12:55
Default g++ 3.4.4. In the end, I'm
  #3
New Member
 
Hans-Joachim Plum
Join Date: Mar 2009
Posts: 8
Rep Power: 17
hplum is on a distinguished road
g++ 3.4.4.

In the end, I'm after using icpc (Intel's C++);
here I'm using V 9.1 and also getting template
definition problems, see message above.
hplum is offline   Reply With Quote

Old   August 13, 2007, 07:11
Default I don't have experience with c
  #4
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
I don't have experience with current OpenFOAM-versions and 3.x-series of the GNU compilers (I'm using 4.0.1 on my Mac and the distributed version (==4.1) on Linux). From what I've heard your lucky if OF compiles with a 3.x-compiler.

About Intel 9.1: see the release-notes for OpenFOAM 1.4 (that's all the information I have about that)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 13, 2007, 07:18
Default We haven't compiled OpenFOAM w
  #5
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
We haven't compiled OpenFOAM with gcc-3.4.? for sometime so there may be minor problems. We release gcc-4.2.? with OpenFOAM and promote the use of this compiler development.

I have just compiled our OpenFOAM-1.4.2 development version with icpc-10.0 and there were minor problems with compiling a few source files which may also be a problem with OpenFOAM-1.4.1, I will post the fixes shortly.
henry is offline   Reply With Quote

Old   August 13, 2007, 07:20
Default You'll need >4 for gcc version
  #6
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
You'll need >4 for gcc version. Intel compiler version 10 has been reported to work ok.
mattijs is offline   Reply With Quote

Old   August 13, 2007, 18:30
Default There is some unnecessary temp
  #7
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
There is some unnecessary templating in pointPatchFieldFunctions.H which appears to be confusing the Intel C++ compiler, here is a fixed version pointPatchFieldFunctions.H to replace OpenFOAM-1.4.1/src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointPatchFieldFunctions.H which I have tested with icpc-10.0 and now I get a complete clean build with that compiler.
henry is offline   Reply With Quote

Old   August 14, 2007, 05:45
Default Henry, thanks, I'll immedia
  #8
New Member
 
Hans-Joachim Plum
Join Date: Mar 2009
Posts: 8
Rep Power: 17
hplum is on a distinguished road
Henry,

thanks, I'll immediately give it a try
hplum 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
Why the noslip doesnbt work corenc OpenFOAM Running, Solving & CFD 9 August 26, 2008 08:26
Why my code is ok with single processor but doesnbt work in openmpi xiuying OpenFOAM Running, Solving & CFD 0 November 23, 2007 14:44
Why OpenFOAM doesnbt use STL cornerstone OpenFOAM Running, Solving & CFD 0 December 22, 2006 03:18
Why doesnbt the macro forall work for the volVectorField variable siwen OpenFOAM Running, Solving & CFD 2 February 24, 2006 16:27
I meet a net work probleam when i check the install ztdep OpenFOAM Installation 0 July 16, 2005 09:27


All times are GMT -4. The time now is 17:35.