ngs-petsc with complex numbers

More
2 years 3 months ago #2432 by lkogler
Have you checked out the complex branch? I have not merged the changes into the master yet!

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #2433 by gcdiwan
Yes, this is what i have in the build script:
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.

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #2434 by lkogler
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.

Please Log in or Create an account to join the conversation.

Time to create page: 0.127 seconds