Documente Academic
Documente Profesional
Documente Cultură
Introduction to SU2
Quick Start
Installation
Download (/docs/Download/)
Installation (/docs/Installation/)
AD Build (/docs/AD-Build/)
Input Files
Running SU2
Developer Docs
FAQ
Contact
Cygwin packages
https://su2code.github.io/docs/Cygwin-Build-for-Windows/ 1/4
7/18/2019 Cygwin Build for Windows
At the package selection step, search for the following terms and select the associated packages to install. This list is a
work-in-progress, and further packages may be required or desired.
Basic
g++, gcc compiler
python: install the packages under the python sub-heading
cpp: all debug, pre-processor, regular expression packages.
setup-x86_64.exe (https://www.cygwin.com/setup-x86_64.exe)
Inside the Cygwin Setup GUI use C:\cygwin64 for both Root Directory and Local Package Directory . Chose
a Download Site close to you (also http mirrors often work better). Continue to complete the bare minimum
installation. This will end with a desktop icon named Cygwin64 Terminal . Double-click this to open the shell
and launch further commands from there.
For detailed informations on how to install CYGWIN and selected packages see CYGWIN Installation
(https://cygwin.com/install.html).
Install development tools (dependencies on these packages will be automatically selected by CYGWIN)
NOTE: A single command installing all required packages in one is given below this
list
https://su2code.github.io/docs/Cygwin-Build-for-Windows/ 2/4
7/18/2019 Cygwin Build for Windows
setup-x86_64.exe -q -P autoconf,autoconf2.5,autogen,automake,automake1.15,libtool,make,gcc-g++,mingw
64-x86_64-gcc-core,mingw64-x86_64-gcc-g++,python37,python37-devel,python3-configobj,libopenmpi-devel,o
penmpi,vim,rsh,wget,zlib-devel
2. Con gure CYGWINs default mount point (optional, but following steps use a syntax relying on this)
mount -c / -o binary,noacl,posix=0
mount -m > /etc/fstab
Because in OpenMPI the C++ interface was removed, the option -lmpi_cxx has to be removed from the linker
defaults. We need to check if this option is contained in the wrapper control le. This depends on the installed
OpenMPI libraries.
Assuming the 64-bit CYGWIN is installed in C:\cygwin64 and /etc/fstab has been modi ed as in the previous step:
If the option is set, then the following lines would be the result of the above grep command:
libs=-lmpi_cxx -lmpi
libs_static=-lmpi_cxx -lmpi -lopen-rte -lopen-pal -lm -lgdi3
If this is the case, edit mpic++-wrapper-data.txt and remove the -lmpi_cxx options so that the respective lines look
like this:
libs=-lmpi
libs_static=-lmpi -lopen-rte -lopen-pal -lm -lgdi3
4. Set the Python version for the installation process (for permanent setting add this line to ~/.profile )
export PYTHON=/usr/bin/python3.7
wget https://github.com/su2code/SU2/archive/v6.2.0.tar.gz
Extract les and change into the folder where the les were extracted to:
NOTE: This is later the folder where the SU2_HOME variable points to
./bootstrap
NOTE: didn’t yet get tecio working, therefore disabled with --disable-tecio
NOTE: Removed -DHAVE_EXECINFO_H from metis cpp ags (potentially could be solved via
gnulib (https://www.gnu.org/software/gnulib/manual/html_node/execinfo_002eh.html))
https://su2code.github.io/docs/Cygwin-Build-for-Windows/ 3/4
7/18/2019 Cygwin Build for Windows
make
make install
10. Add the $SU2_HOME and $SU2_RUN environment variables to ~/.bashrc (and source ~/.bashrc )
cd $SU2_HOME/QuickStart
SERIAL command (due to the previous step SU2_CFD.exe should now be available in the path):
SU2_CFD.exe inv_NACA0012.cfg
PARALLEL command: Both mpirun and mpiexec do the same; mpiexec is recommended as the standard command.
If more processes are requested than cores are available an error will be thrown:
On WINDOWS this can be if hyperthreading is active. A system physically having 4 CPUs (cores), would show 8 CPUs
in case of hyperthreading. Oversubscribe allows more processes than cores (which not necessarily is faster).
SU2 Multiphysics Simulation and Design Software 2019 | Powered by Jekyll Doc Theme
(https://github.com/aksakalli/jekyll-doc-theme) | Privacy Policy
https://su2code.github.io/docs/Cygwin-Build-for-Windows/ 4/4