I am trying to install PETSc on my Ubuntu laptop. The first step in the installation is to call the following commands in the top-level directory of the PETSc directory in the terminal.
export PETSC_DIR=$PWD
./config/configure.py --with-cc=gcc --with-fc=gfortran --download-f-blas-lapack=1 --download-mpich=1
make all test
Question 1: Should I really enter the word "PWD" or the address of the top-level directory of PETSc?
Question 2: What I wanted to understand is that the export keyword does in general, and in particular, what it does in this example. I looked at some links to the export keyword, and all of them did not really explain clearly. I was probably looking for the wrong place.
I have never done any shell scripts, so a detailed answer would be very helpful ... Thank you so much!
source
share