... | @@ -18,7 +18,11 @@ Install cygwin from https://www.cygwin.com. Accept all defaults and select View |
... | @@ -18,7 +18,11 @@ Install cygwin from https://www.cygwin.com. Accept all defaults and select View |
|
* curl
|
|
* curl
|
|
* unzip
|
|
* unzip
|
|
|
|
|
|
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
|
|
## Cygwin terminal and Bash environment variables
|
|
|
|
|
... | @@ -33,6 +37,11 @@ export FC=x86_64-w64-mingw32-gfortran |
... | @@ -33,6 +37,11 @@ export FC=x86_64-w64-mingw32-gfortran |
|
export PETSC_DIR=/usr/local/petsc
|
|
export PETSC_DIR=/usr/local/petsc
|
|
export PETSC_ARCH=complex_mumps_seq
|
|
export PETSC_ARCH=complex_mumps_seq
|
|
```
|
|
```
|
|
|
|
Then
|
|
|
|
```shell
|
|
|
|
cd
|
|
|
|
source .bash_profile
|
|
|
|
```
|
|
|
|
|
|
## PETSc
|
|
## PETSc
|
|
|
|
|
... | @@ -41,8 +50,6 @@ Download and configure PETSc: |
... | @@ -41,8 +50,6 @@ Download and configure PETSc: |
|
cd /usr/local
|
|
cd /usr/local
|
|
git clone -b maint https://gitlab.com/petsc/petsc.git petsc
|
|
git clone -b maint https://gitlab.com/petsc/petsc.git petsc
|
|
cd petsc
|
|
cd petsc
|
|
export PETSC_DIR=$PWD
|
|
|
|
export PETSC_ARCH=complex_mumps_seq
|
|
|
|
./configure --CXX=x86_64-w64-mingw32-g++ --CC=x86_64-w64-mingw32-gcc --FC=x86_64-w64-mingw32-gfortran --with-clanguage=cxx --with-debugging=0 --with-mpi=0 --with-fortran-bindings=0 --download-mumps=yes --with-mumps-serial --with-shared-libraries=1 --with-x=0 --with-ssl=0 --with-scalar-type=complex --download-f2cblaslapack=1
|
|
./configure --CXX=x86_64-w64-mingw32-g++ --CC=x86_64-w64-mingw32-gcc --FC=x86_64-w64-mingw32-gfortran --with-clanguage=cxx --with-debugging=0 --with-mpi=0 --with-fortran-bindings=0 --download-mumps=yes --with-mumps-serial --with-shared-libraries=1 --with-x=0 --with-ssl=0 --with-scalar-type=complex --download-f2cblaslapack=1
|
|
```
|
|
```
|
|
|
|
|
... | | ... | |