- Thank you received: 17
ngs-petsc with complex numbers
4 years 8 months ago #2432
by lkogler
Replied by lkogler on topic ngs-petsc with complex numbers
Have you checked out the complex branch? I have not merged the changes into the master yet!
4 years 8 months ago #2433
by gcdiwan
Replied by gcdiwan on topic ngs-petsc with complex numbers
Yes, this is what i have in the build script:
I am not sure if ngsolve-petsc has to be inside ${BASEDIR}/ngsolve-src/external_dependencies or in the ${BASEDIR} itself.
Code:
export BASEDIR=/home/diwang/Documents/extsofts/
mkdir -p $BASEDIR
cd $BASEDIR && git clone https://github.com/NGSolve/ngsolve.git ngsolve-src
cd $BASEDIR && git clone https://github.com/NGSolve/ngs-petsc.git ngsolve-petsc
cd $BASEDIR/ngsolve-petsc && git checkout complex && git pull
cd $BASEDIR/ngsolve-src && git submodule update --init --recursive
mkdir $BASEDIR/ngsolve-build
mkdir $BASEDIR/ngsolve-install
cd $BASEDIR/ngsolve-build
cmake -DINSTALL_DIR=${BASEDIR}/ngsolve-install ${BASEDIR}/ngsolve-src \
-DUSE_OCC=ON \
-DUSE_GUI=OFF \
-DUSE_PYTHON=ON \
-DUSE_MPI=ON \
-DUSE_MUMPS=ON \
-DUSE_UMFPACK=ON \
-DCMAKE_CXX_COMPILER=/usr/bin/g++ \
-DCMAKE_C_COMPILER=/usr/bin/gcc \
-DPETSC_COMPLEX=ON \
-DLIB_MPIF90=/usr/lib/libmpifort.so
make -j4
make install
echo "export NETGENDIR=${BASEDIR}/ngsolve-install/bin" >> ~/.bashrc
echo "export PATH=\$NETGENDIR:\$PATH" >> ~/.bashrc
export PYTHONPATH_TMP=`python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1,0,''))"`
echo "export PYTHONPATH=\$NETGENDIR/../${PYTHONPATH_TMP}:\$PATH" >> ~/.bashrc
source ~/.bashrc
cd ${BASEDIR}/ngsolve-install/share/ngsolve/py_tutorials/intro
I am not sure if ngsolve-petsc has to be inside ${BASEDIR}/ngsolve-src/external_dependencies or in the ${BASEDIR} itself.
4 years 8 months ago #2434
by lkogler
Replied by lkogler on topic ngs-petsc with complex numbers
You have to run cmake/make seperately for ngs-petsc. It is not integrated into the NGSolve SuperBuild right now.
So first install Netgen/NGSolve and PETSc, then install ngs-petsc.
So first install Netgen/NGSolve and PETSc, then install ngs-petsc.
Time to create page: 0.095 seconds