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

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 20, 2013, 22: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: 13
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, 07:04
Default
  #2
Member
 
Jianming Liu
Join Date: Mar 2009
Location: China
Posts: 71
Rep Power: 17
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 07:15. Reason: incomplete
liujmljm is offline   Reply With Quote

Old   January 21, 2013, 07:10
Default
  #3
New Member
 
feeling
Join Date: Jan 2013
Posts: 21
Rep Power: 13
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, 07:29
Default
  #4
Member
 
Jianming Liu
Join Date: Mar 2009
Location: China
Posts: 71
Rep Power: 17
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, 07:34
Default
  #5
New Member
 
feeling
Join Date: Jan 2013
Posts: 21
Rep Power: 13
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, 08:02
Default
  #6
Member
 
Jianming Liu
Join Date: Mar 2009
Location: China
Posts: 71
Rep Power: 17
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
http://www.cfd-online.com/Forums/su2...osing-su2.html
I think SU2 is more better for compressible flow.
liujmljm is offline   Reply With Quote

Old   February 5, 2013, 00:08
Default
  #7
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15
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


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
mpirun, best parameters pablodecastillo Hardware 18 November 10, 2016 12:36
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 18:32.