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

[OpenFOAM.com] Compiling Paraview 5.6.3 with the python option, Ubuntu 20.04

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

Like Tree1Likes
  • 1 Post By DSMC123

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2020, 04:07
Default Compiling Paraview 5.6.3 with the python option, Ubuntu 20.04
  #1
New Member
 
Craig White
Join Date: Nov 2013
Posts: 11
Rep Power: 12
DSMC123 is on a distinguished road
Hello,

I am having some trouble getting Paraview 5.6.3 to compile on Ubuntu 20.04. This is the version packed in the v2006 ThirdParty directory.


If I use the command
Code:
./makeParaview -mpi > log.makePV 2>&1
it works fine and compiles.


Ideally I want it compiled with python, so I am trying
Code:
/makeParaView -mpi -python3 -python-lib /usr/lib/x86_64-linux-gnu/libpython3.8.so.1.0 > log.makePV 2>&1
This crashes with some errors, see the whole file here. I think the relevant errors are these lines:
Code:
make[2]: *** [VTK/ThirdParty/mpi4py/vtkmpi4py/CMakeFiles/mpi4py.MPI.dir/build.make:63: VTK/ThirdParty/mpi4py/vtkmpi4py/CMakeFiles/mpi4py.MPI.dir/src/MPI.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:19613: VTK/ThirdParty/mpi4py/vtkmpi4py/CMakeFiles/mpi4py.MPI.dir/all] Error 2
I'm having real trouble trying to solve it, though.


Is anyone able to offer a solution?


Thank you!

Last edited by DSMC123; November 20, 2020 at 04:19. Reason: Log file was too large to upload, looking for an alternative
DSMC123 is offline   Reply With Quote

Old   November 20, 2020, 12:16
Default
  #2
New Member
 
Craig White
Join Date: Nov 2013
Posts: 11
Rep Power: 12
DSMC123 is on a distinguished road
I have managed to fix this. The problem was that mpi4py can't compile with the version of OpenMPI provided with Ubuntu 20.04 (4.0.3) until a small change is made to the file ParaView-v5.6.3/VTK/ThirdParty/mpi4py/vtkmpi4py/src/lib-mpi/config/openmpi.h


You need to add a new entry towards the bottom of the file:


Code:
#ifOMPI_NUMVERSION >= 40000
#undefPyMPI_HAVE_MPI_LB
#undefPyMPI_HAVE_MPI_UB
#endif/* OMPI >= 4.0.0 */

So that it matches the file here: https://bitbucket.org/mpi4py/mpi4py/...nfig/openmpi.h
utkunun likes this.
DSMC123 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difficulty in calculating angular velocity of Savonius turbine simulation alfaruk CFX 14 March 17, 2017 06:08
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 01:27
Error in Two phase (condensation) modeling adilsyyed CFX 15 June 24, 2015 19:42
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
Constant velocity of the material Sas CFX 15 July 13, 2010 08:56


All times are GMT -4. The time now is 06:20.