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

Compiler Error SU2 on OSX

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

Reply
 
LinkBack Thread Tools 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: Stanford, CA
Posts: 301
Rep Power: 5
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

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
Gmsh installation on terminal help spitfire Main CFD Forum 2 August 27, 2014 11:45
Paraview Compiling Error (OpenFOAM 2.1.x + openSUSE 12.2) sfigato OpenFOAM Installation 22 January 31, 2013 11:16
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
Fortran compiler Erik CD-adapco 2 November 28, 2008 21: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 14:40.