@@ -24,3 +24,66 @@ At the package selection step, search for the following terms and select the ass
2424* python: install the packages under the python sub-heading
2525* cpp: all debug, pre-processor, regular expression packages.
2626
27+ #### Example SU2 installation on WINDOWS 10 using 64-bit Cygwin
28+ The shell used for all command line steps is the the default Cygwin bash shell.
29+
30+ 1 ) Install CYGWIN (64-bit version)
31+ a) Download and run https://www.cygwin.com/setup-x86_64.exe
32+ b) Install development tools (also 64-bit versions):
33+ i) gcc, gfortran, python3.7, openmpi, automake, libtools, autoconf, etc.
34+ ii) python-configobj needs to be installed for the same python version
35+ (Python module for handling config files)
36+ often there are installation problems (not yet figured out when and why)
37+ after installation it should reside in the folder /usr/bin as shown below
38+ iii) folder /usr/bin as it should be for python3.7 and python-config
39+ lrwxrwxrwx 1 Andreas None 14 17. Mrz 19:29 /usr/bin/python3.7 -> python3.7m.exe
40+ -rwxr-xr-x 1 Andreas None 3,3K 17. Mrz 19:46 /usr/bin/python3.7-config
41+ -rwxr-xr-x 1 Andreas None 9,1K 15. Feb 10:05 /usr/bin/python3.7m.exe
42+ -rwxr-xr-x 1 Andreas None 3,3K 17. Mrz 19:46 /usr/bin/python3.7m-config
43+
44+ 2 ) Set Python version for the installation process
45+ export PYTHON=/usr/bin/python3.7
46+
47+ 3 ) Goto folder where the SU2 source distribtution has been unzipped
48+ a) download the SU2 source installation file for version 6.2.0
49+ https://github.com/su2code/SU2/archive/v6.2.0.tar.gz
50+ b) unzip and untar
51+ c) change into the folder where files were untarred
52+ NOTE: this is later (see step 7) the folder where the SU2_HOME variable points to
53+
54+ 3a) ./bootstrap
55+
56+ 4 ) Launch following configure command:
57+ NOTE: didn't get tecio working, therefore disabled with --disable-tecio
58+ NOTE: "--enable-mpi-cxx" instead of "--enable-mpi"
59+ (see http://cygwin.1069669.n5.nabble.com/libmpi-cxx-dll-a-missing-td142324.html )
60+
61+ ./configure --prefix=path_where_you_want_the_Executables --disable-tecio --enable-mpi-cxx CXXFLAGS=-O3
62+
63+ 5 ) Compile and link using:
64+ make
65+
66+ 6 ) Not really needed (if a setup like in 7 is used)
67+ make install
68+
69+ 7 ) Add the $SU2_HOME and $SU2_RUN environment variables to ~ /.bashrc (and "source ~ /.bashrc")
70+
71+ export SU2_RUN="path_where_you_want_the_Executables" (use same folder here as in the configure command above)
72+ export SU2_HOME="/d/software/CFD/SU2/SU2-6.2.0" <-- UPDATE THIS folder to your environment
73+ export PATH=$PATH:$SU2_RUN
74+ export PYTHONPATH=$PYTHONPATH:$SU2_RUN
75+
76+ 8 ) cd to the QuickStart folder and try serial and parallel versions
77+
78+ SERIAL command:
79+
80+ SU2_CFD.exe inv_NACA0012.cfg
81+
82+ PARALLEL command:
83+ (mpirun and mpiexec should be the same; mpiexec recommended as standard command)
84+ (-oversubscribe allows more processes than cores)
85+ (although I have 8 cores, even with "-n 6" I had to use the option)
86+ (otherwise I got: There are not enough slots available in the system ...)
87+
88+ mpiexec -n 6 -oversubscribe SU2_CFD.exe inv_NACA0012.cfg
89+
0 commit comments