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

Compile Error paraFOAM

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

Like Tree1Likes
  • 1 Post By alexeym

Reply
 
LinkBack Thread Tools Display Modes
Old   July 19, 2013, 08:06
Default Compile Error paraFOAM
  #1
New Member
 
Stefan Hildenbrand
Join Date: Aug 2009
Location: Stuttgart, Germany
Posts: 20
Rep Power: 8
shildenbrand is on a distinguished road
Dear FOAMers,

I downloaded Paraview 4.0.1 and am trying to use it instead of paraview 3.12 which is shipped with OF 2.2.1.

I was able to compile paraview 4.0.1 - and it works.

I have, however, problems when compiling the PV3 readers - see below.

wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file vtkPV3blockMesh.C
Making dependency list for source file vtkPV3blockMeshConvert.C
Making dependency list for source file vtkPV3blockMeshUtils.C
SOURCE=vtkPV3blockMesh.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.2.1/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.2.1/src/mesh/blockMesh/lnInclude -I/opt/OpenFOAM/ThirdParty-2.2.1/platforms/linux64Gcc/paraview-4.0.1/include/paraview-4.0 -I../../vtkPV3Readers/lnInclude -I../PV3blockMeshReader -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.2.1/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.2.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/vtkPV3blockMesh.o
In file included from vtkPV3blockMesh.C:27:0:
../PV3blockMeshReader/vtkPV3blockMeshReader.h:60:1: Fehler: expected initializer before : token
make: *** [Make/linux64GccDPOpt/vtkPV3blockMesh.o] Fehler 1


A similar error occurs later:

[...]
../PV3FoamReader/vtkPV3FoamReader.h:62:1: Fehler: expected initializer before : token
[...]

I found a thread with the same problem but with no solution (it was with an old version of both, though)

Any hints?

Thanks,
Stefan
shildenbrand is offline   Reply With Quote

Old   July 19, 2013, 08:19
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,132
Rep Power: 20
alexeym will become famous soon enoughalexeym will become famous soon enough
Actually Paraview 4.0.1 has built-in OF reader. So you can use 'paraFoam -builtin' command. In my case I've edited two lines in paraFoam script to make -builtin switch unnecessary:

Code:
# reader extension
extension=foam # OpenFOAM

requirePV=0
chrisb2244 likes this.
alexeym is offline   Reply With Quote

Old   July 19, 2013, 09:10
Default
  #3
New Member
 
Stefan Hildenbrand
Join Date: Aug 2009
Location: Stuttgart, Germany
Posts: 20
Rep Power: 8
shildenbrand is on a distinguished road
Thanks - that was easy.

I guess PV3 reader comes from Paraview 3.xx ?
shildenbrand is offline   Reply With Quote

Old   July 19, 2013, 09:29
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,132
Rep Power: 20
alexeym will become famous soon enoughalexeym will become famous soon enough
Quote:
Originally Posted by shildenbrand View Post
I guess PV3 reader comes from Paraview 3.xx ?
Don't know. It can be either FROM PV 3.x or FOR PV 3.x Guess PV changed API in 4.x version which resulted in error during compilation.
alexeym is offline   Reply With Quote

Reply

Tags
openfoam 2.2.x, paraview 4.0.1, pv3foamreader

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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 32 May 8, 2015 06:05
How to compile OpenFOAM-1.7.x on CrunchBang linux 10 gwierink OpenFOAM Installation 0 April 5, 2011 04:38
PV3FoamReader compile error.... PEM_GUY OpenFOAM Installation 6 April 5, 2010 17:22
Error compile file udf czfluent Fluent UDF and Scheme Programming 24 September 26, 2009 13:24
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 22:51


All times are GMT -4. The time now is 12:19.