...
export COMPILER=intel.22
export CC=mpicc
export CXX=mpicpc
export F77=mpifort
export FC=mpifort
export COMPOPT="-fPIC -O3 -xHost qopt-zmm-usage=high -march=skylake-avx512 -mcmodel=medium -ipo -fno-alias -align -fp-model precise -shared-intel"
#export I_MPI_HYDRA_TOPOLIB=ipl
#export I_MPI_HYDRA_BRANCH_COUNT=-1
mkdir export BUILDDIR=build_aec_$COMPILER
mkdir $BUILDDIR
cd build_aec_$COMPILER$BUILDDIR
parentdir="$(dirname "$(pwd)")"
export BUILDDIR=$parentdir
echo "building in "$BUILDDIR
...