Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

ngs-petsc with complex numbers

More
4 years 2 months ago #2432 by lkogler
Have you checked out the complex branch? I have not merged the changes into the master yet!
More
4 years 2 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.
More
4 years 2 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.
Time to create page: 0.140 seconds