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

Comiplation Problem pySU2

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 3, 2020, 11:01
Default Comiplation Problem pySU2
  #1
Senior Member
 
Join Date: Jan 2014
Posts: 164
Rep Power: 8
hxaxtma is on a distinguished road
Hi,

I want to compile SU2 with python wrapper support. Therefore I installed mpi4py, all path variables are set properly.

Compilation process:

1: ./meson.py build -Denable-autodiff=true -Denable-directdiff=true -Denable-pywrapper=true --reconfigure

./ninja -C build install


during compilation I get this error:

Quote:
[742/795] Generating 'SU2_PY/pySU2/fe26689@@_pysu2@sha/pySU2.cxx'.
FAILED: SU2_PY/pySU2/fe26689@@_pysu2@sha/pySU2.cxx
/usr/bin/swig -DHAVE_CGNS -DNDEBUG -DHAVE_MPI -DHAVE_METIS -DHAVE_PARMETIS -DHAVE_TECIO -DTECIOMPI -c++ -python -I/usr/local/lib64/python3.6/site-packages/mpi4py/include -outdir /opt/software/su2/SU2_v701/build/SU2_PY/pySU2 -o ./SU2_PY/pySU2/fe26689@@_pysu2@sha/pySU2.cxx ../SU2_PY/pySU2/pySU2.i
../SU2_PY/pySU2/../../SU2_CFD/include/drivers/CDriver.hpp:1: Error: Illegal token '�'.
../SU2_PY/pySU2/../../SU2_CFD/include/drivers/CDriver.hpp:1: Error: Syntax error in input(1).
[743/795] Generating 'SU2_PY/pySU2/fe26689@@_pysu2ad@sha/pySU2ad.cxx'.
FAILED: SU2_PY/pySU2/fe26689@@_pysu2ad@sha/pySU2ad.cxx
/usr/bin/swig -DHAVE_CGNS -DNDEBUG -DHAVE_MPI -DHAVE_METIS -DHAVE_PARMETIS -DHAVE_TECIO -DTECIOMPI -c++ -python -I/usr/local/lib64/python3.6/site-packages/mpi4py/include -outdir /opt/software/su2/SU2_v701/build/SU2_PY/pySU2 -o ./SU2_PY/pySU2/fe26689@@_pysu2ad@sha/pySU2ad.cxx ../SU2_PY/pySU2/pySU2ad.i
../SU2_PY/pySU2/../../SU2_CFD/include/drivers/CDriver.hpp:1: Error: Illegal token '�'.
../SU2_PY/pySU2/../../SU2_CFD/include/drivers/CDriver.hpp:1: Error: Syntax error in input(1).
any advice?
hxaxtma is offline   Reply With Quote

Old   February 6, 2020, 20:44
Default
  #2
New Member
 
Jason Trinidad
Join Date: Jul 2018
Posts: 6
Rep Power: 3
jtrin is on a distinguished road
Hey hxaxtma,

I had this problem too. I think it's an error from SWIG. I was able to fix it by using version 3.0.12 of SWIG. Hope this helps!
jtrin 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
[Other] engineFoam new mesh problem ayhan515 OpenFOAM Meshing & Mesh Conversion 5 August 10, 2015 09:45
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 06:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13


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