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

Compiler Error SU2 on OSX

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2013, 13:35
Default Compiler Error SU2 on OSX
  #1
New Member
 
Justin Gray
Join Date: Aug 2013
Posts: 2
Rep Power: 0
justingray is on a distinguished road
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++
I also tried it with mpicxx instead of 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
I'm not really sure what the next step is here
justingray is offline   Reply With Quote

Old   August 19, 2013, 12:51
Default
  #2
New Member
 
Justin Gray
Join Date: Aug 2013
Posts: 2
Rep Power: 0
justingray is on a distinguished road
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
justingray is offline   Reply With Quote

Old   August 19, 2013, 14:37
Default
  #3
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15
fpalacios is on a distinguished road
Thanks Justin for your feedback,

We have fixed this issue in the developer's version on GitHub.

Best,
Francisco


Quote:
Originally Posted by justingray View Post
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
fpalacios 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
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


All times are GMT -4. The time now is 13:46.