bash commands.sh
- Follow PETSc make instructions given in output. The
make check
command results in errors related to multi-threading + multiple MPI processes for me.
make PETSC_DIR=<PETSC_DIR> PETSC_ARCH=<PETSC_ARCH> all
make PETSC_DIR=<PETSC_DIR> PETSC_ARCH=<PETSC_ARCH> check
- set environment variables for CMake
export PETSC_DIR=<PETSC_DIR> PETSC_ARCH=<PETSC_ARCH>
bash test.sh
cd build
make
./ex19f
or./ex1f
or./ex19
depending on what file is being built inCMakeLists.txt
. most files from./examples
folder give compiler errors except forex19.F90
Checklist:
- PETSc
-
LAPACK95why doesn't this work - LAPACK
- Spherepack
- FFTW
- NetCDF