|
## Windows
|
|
# Windows
|
|
|
|
|
|
|
|
## Cygwin and Windows PATH
|
|
|
|
|
|
Install cygwin from https://www.cygwin.com. Accept all defaults and select View "Full". Install the following packages:
|
|
Install cygwin from https://www.cygwin.com. Accept all defaults and select View "Full". Install the following packages:
|
|
* mingw64_x86_64-gcc-g++
|
|
* mingw64_x86_64-gcc-g++
|
... | @@ -16,6 +18,8 @@ Install cygwin from https://www.cygwin.com. Accept all defaults and select View |
... | @@ -16,6 +18,8 @@ Install cygwin from https://www.cygwin.com. Accept all defaults and select View |
|
|
|
|
|
Type "path" in the Windows search box and choose "Edit the system environment variables". Go to "Advanced" and select "Environment variables". If the `PATH` variable does not exist (note the ALL CAPS!), create it and set it to `C:\cygwin64\usr\local\bin\;C:\cygwin64\usr\local\lib;C:\cygwin64\usr\local\petsc\complex_mumps_seq\lib;C:\cygwin64\usr\x86_64-w64-mingw32\sys-root\mingw\bin`. If `PATH` already exists, append the value (don't forget the semicolon!).
|
|
Type "path" in the Windows search box and choose "Edit the system environment variables". Go to "Advanced" and select "Environment variables". If the `PATH` variable does not exist (note the ALL CAPS!), create it and set it to `C:\cygwin64\usr\local\bin\;C:\cygwin64\usr\local\lib;C:\cygwin64\usr\local\petsc\complex_mumps_seq\lib;C:\cygwin64\usr\x86_64-w64-mingw32\sys-root\mingw\bin`. If `PATH` already exists, append the value (don't forget the semicolon!).
|
|
|
|
|
|
|
|
## Cygwin terminal and Bash environment variables
|
|
|
|
|
|
Open the Cygwin terminal.
|
|
Open the Cygwin terminal.
|
|
|
|
|
|
Edit the `~/.bash_profile` and add the following at the end:
|
|
Edit the `~/.bash_profile` and add the following at the end:
|
... | @@ -28,6 +32,8 @@ export PETSC_DIR=/usr/local/petsc |
... | @@ -28,6 +32,8 @@ export PETSC_DIR=/usr/local/petsc |
|
export PETSC_ARCH=complex_mumps_seq
|
|
export PETSC_ARCH=complex_mumps_seq
|
|
```
|
|
```
|
|
|
|
|
|
|
|
## PETSc
|
|
|
|
|
|
Download and configure PETSc:
|
|
Download and configure PETSc:
|
|
```shell
|
|
```shell
|
|
cd /usr/local
|
|
cd /usr/local
|
... | @@ -50,6 +56,8 @@ Build and install PETSc: |
... | @@ -50,6 +56,8 @@ Build and install PETSc: |
|
make install
|
|
make install
|
|
```
|
|
```
|
|
|
|
|
|
|
|
## Gmsh
|
|
|
|
|
|
Download, build and install Gmsh (here we build a barebones version - see the Gmsh wiki to compile a full-featured version with OpenCASCADE, the graphical user interface, ...):
|
|
Download, build and install Gmsh (here we build a barebones version - see the Gmsh wiki to compile a full-featured version with OpenCASCADE, the graphical user interface, ...):
|
|
```shell
|
|
```shell
|
|
cd
|
|
cd
|
... | @@ -70,6 +78,8 @@ cp gmsh-git-Windows64-sdk/include/* /usr/local/include/ |
... | @@ -70,6 +78,8 @@ cp gmsh-git-Windows64-sdk/include/* /usr/local/include/ |
|
cp gmsh-git-Windows64-sdk/lib/* /usr/local/lib/
|
|
cp gmsh-git-Windows64-sdk/lib/* /usr/local/lib/
|
|
```
|
|
```
|
|
|
|
|
|
|
|
## GmshFEM
|
|
|
|
|
|
Build and install GmshFEM:
|
|
Build and install GmshFEM:
|
|
```shell
|
|
```shell
|
|
cd
|
|
cd
|
... | @@ -81,6 +91,8 @@ cmake .. |
... | @@ -81,6 +91,8 @@ cmake .. |
|
make install
|
|
make install
|
|
```
|
|
```
|
|
|
|
|
|
|
|
## GmshDDM
|
|
|
|
|
|
Build and install GmshDDM:
|
|
Build and install GmshDDM:
|
|
```shell
|
|
```shell
|
|
cd
|
|
cd
|
... | | ... | |