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

Error about MPI happens when I enter "g++ SU2_CFD.cpp"

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 20, 2013, 23:10
Default Error about MPI happens when I enter "g++ SU2_CFD.cpp"
  #1
New Member
 
feeling
Join Date: Jan 2013
Posts: 21
Rep Power: 4
sxhqjfl is on a distinguished road
I use win7 and setup the MinGW to compile the .cpp files.

I want to add my own methods to the code, so I download the SU2 Source Code in F:\SU2. I want to use SU2_CFD firstly. I find there is a file named SU2_CFD.cpp in F:\SU2\SU2v2.0\trunk\SU2_CFD\src, will it should be compiled to create the SU2_CFD.exe? I guess so and open my cmd, enter

F:\SU2\SU2v2.0\trunk\SU2_CFD\src>g++ SU2_CFD.cpp

However, I get this response:

In file included from SU2_CFD.cpp:24:0:
../include/SU2_CFD.hpp:30:17: fatal error: mpi.h: No such file or directory
compilation terminated.


I think this error is about MPI. I download it, but don't know how to use it?? I hope for help...
sxhqjfl is offline   Reply With Quote

Old   January 21, 2013, 08:04
Default
  #2
Member
 
Jianming Liu
Join Date: Mar 2009
Location: China
Posts: 66
Rep Power: 8
liujmljm is on a distinguished road
I think if you want to develop new module in SU2, you should use linux os or Mac os. I do not think windows is a good choice. If you have no any idea on the compilation of source code, I think you can not add any new method in the code. As a suggestion, I think that you should have some knowledge on the different os (LINUX, Mac os).

Last edited by liujmljm; January 21, 2013 at 08:15. Reason: incomplete
liujmljm is offline   Reply With Quote

Old   January 21, 2013, 08:10
Default
  #3
New Member
 
feeling
Join Date: Jan 2013
Posts: 21
Rep Power: 4
sxhqjfl is on a distinguished road
Quote:
Originally Posted by liujmljm View Post
I think if you want to develop new module in SU2, you should use linux os. I do not think windows is a good choice.
Thank you for your suggestion very much. I will install Linux OS right now. By the same, do you know how to develop SU2? Do you have some related materials writen in Chinese? My English is very poor.
sxhqjfl is offline   Reply With Quote

Old   January 21, 2013, 08:29
Default
  #4
Member
 
Jianming Liu
Join Date: Mar 2009
Location: China
Posts: 66
Rep Power: 8
liujmljm is on a distinguished road
Quote:
Originally Posted by sxhqjfl View Post
Thank you for your suggestion very much. I will install Linux OS right now. By the same, do you know how to develop SU2? Do you have some related materials writen in Chinese? My English is very poor.
I am afraid that there is not. Now, I am learning the code. I also want to use the code and add new module. I think we should study the doxygen documents and get some idea on the structure of the code.
liujmljm is offline   Reply With Quote

Old   January 21, 2013, 08:34
Default
  #5
New Member
 
feeling
Join Date: Jan 2013
Posts: 21
Rep Power: 4
sxhqjfl is on a distinguished road
Quote:
Originally Posted by liujmljm View Post
I am afraid that there is not. Now, I am learning the code. I also want to use the code and add new module. I think we should study the doxygen documents and get some idea on the structure of the code.
Thank you for your suggestion. In fact, I am a senior now and just a beginner. Do you hear from Openfoam? What is the difference between Openfoam and su2? Which is better for aerodynamics research?
sxhqjfl is offline   Reply With Quote

Old   January 21, 2013, 09:02
Default
  #6
Member
 
Jianming Liu
Join Date: Mar 2009
Location: China
Posts: 66
Rep Power: 8
liujmljm is on a distinguished road
Quote:
Originally Posted by sxhqjfl View Post
Thank you for your suggestion. In fact, I am a senior now and just a beginner. Do you hear from Openfoam? What is the difference between Openfoam and su2? Which is better for aerodynamics research?
For this, you can read the discussion in this link
Why choosing SU2
I think SU2 is more better for compressible flow.
liujmljm is offline   Reply With Quote

Old   February 5, 2013, 01:08
Default
  #7
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Stanford, CA
Posts: 301
Rep Power: 5
fpalacios is on a distinguished road
As a side note I would like to point out that one of it most important features of SU2 is it design capability. More details in

http://su2.stanford.edu/documents/SU2_AIAA_ASM2013.pdf

Cheers,
Francisco
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
mpirun, best parameters pablodecastillo Hardware 17 April 27, 2012 13:05
Sgimpi pere OpenFOAM 27 September 24, 2011 07:57
Building OpenFOAM on IRIX lakeat OpenFOAM Installation 7 July 16, 2008 07:27
Error using LaunderGibsonRSTM on SGI ALTIX 4700 jaswi OpenFOAM 2 April 29, 2008 10:54
Is Testsuite on the way or not lakeat OpenFOAM Installation 6 April 28, 2008 11:12


All times are GMT -4. The time now is 02:43.