|
[Sponsors] |
August 9, 2013, 13:35 |
Compiler Error SU2 on OSX
|
#1 |
New Member
Justin Gray
Join Date: Aug 2013
Posts: 2
Rep Power: 0 |
Attempting to compile su2 on my OS-X 10.8 machine yeilds a few errors. I cloned the repository of github then made sure I had the other pre-reqs.
I installed openmpi and metis-5 through homebrew. Then i used the following configure command Code:
./configure --prefix=/usr/local --with-Metis-lib=/usr/local/Cellar/metis/5.0.2/lib --with-Metis-include=/usr/local/Cellar/metis/5.0.2/include --with-Metis-version=5 --with-MPI=/usr/local/bin/mpic++ The configure seems to go ok, and no errors are reported. So I tried to make, but get the following error after it churns for a whursive] Error 1 Code:
../src/SU2_SMC.cpp:92:37: error: variable length array of non-POD element type 'vector<unsigned long>' vector<unsigned long> SlidingPoint[nZone][MAX_NUMBER_SLIDING][2]; /*!< \brief SlidingPoint[Periodic bc] and return the point that ^ ../src/SU2_SMC.cpp:94:35: error: variable length array of non-POD element type 'vector<unsigned long>' vector<unsigned long> SlidingElem[nZone][MAX_NUMBER_SLIDING]; /*!< \brief SlidingElem[Periodic bc] and return the elements that ^ ../src/SU2_SMC.cpp:96:42: error: variable length array of non-POD element type 'vector<unsigned long>' vector<unsigned long> NewBoundaryPoints[nZone][MAX_NUMBER_MARKER]; /*!< \brief Vector containing new points appearing on multiple boundaries. */ ^ ../src/SU2_SMC.cpp:97:40: error: variable length array of non-POD element type 'vector<unsigned long>' vector<unsigned long> OldBoundaryElems[nZone][MAX_NUMBER_MARKER]; /*!< \brief Vector of old boundary elements. */ ^ 4 errors generated. make[1]: *** [___bin_SU2_SMC-SU2_SMC.o] Error 1 make: *** [all-recursive] Error 1 |
|
August 19, 2013, 12:51 |
|
#2 |
New Member
Justin Gray
Join Date: Aug 2013
Posts: 2
Rep Power: 0 |
It turns out that there was no problem compiling SU2_CFD ,but rather in a little used side module. Compiling worked fine when I added
--disable-SMC to the config command. The final config command was as follows Code:
./configure --prefix=/usr/local --with-Metis-lib=/usr/local/Cellar/metis/5.0.2/lib --with-Metis-include=/usr/local/Cellar/metis/5.0.2/include --with-Metis-version=5 --with-MPI=/usr/local/bin/mpicxx --disable-SMC |
|
August 19, 2013, 14:37 |
|
#3 | |
Super Moderator
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15 |
Thanks Justin for your feedback,
We have fixed this issue in the developer's version on GitHub. Best, Francisco Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Gmsh installation on terminal help | spitfire | Main CFD Forum | 4 | July 27, 2017 15:11 |
Paraview Compiling Error (OpenFOAM 2.1.x + openSUSE 12.2) | sfigato | OpenFOAM Installation | 22 | January 31, 2013 10:16 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 13:43 |
Fortran compiler | Erik | Siemens | 2 | November 28, 2008 20:05 |
Fluent 6.2 and gcc compiler in Sun Blade 2500 | Nitu Gupta | FLUENT | 8 | April 29, 2005 13:58 |