CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   SU2 (http://www.cfd-online.com/Forums/su2/)
-   -   Error about MPI happens when I enter "g++ SU2_CFD.cpp" (http://www.cfd-online.com/Forums/su2/112034-error-about-mpi-happens-when-i-enter-g-su2_cfd-cpp.html)

sxhqjfl January 20, 2013 23:10

Error about MPI happens when I enter "g++ SU2_CFD.cpp"
 
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...

liujmljm January 21, 2013 08:04

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).

sxhqjfl January 21, 2013 08:10

Quote:

Originally Posted by liujmljm (Post 403093)
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.

liujmljm January 21, 2013 08:29

Quote:

Originally Posted by sxhqjfl (Post 403095)
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.

sxhqjfl January 21, 2013 08:34

Quote:

Originally Posted by liujmljm (Post 403101)
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?

liujmljm January 21, 2013 09:02

Quote:

Originally Posted by sxhqjfl (Post 403102)
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.

fpalacios February 5, 2013 01:08

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


All times are GMT -4. The time now is 14:44.