← Back to team overview

dolfin team mailing list archive

Issues when compiling DOLFIN without MPI

 


I'm trying to compile dolfin with PETSc and SLEPc, but without MPI:

    ./scons.local enableMpi=no withPetscDir=$PETSC_DIR
   withSlepcDir=$SLEPC_DIR

This gives the following error:


   scons: Reading SConscript files ...
   Using options from scons/options.cache
   Checking for pkg-config... yes
   Checking for numpy-1... yes
   Checking for scotch... no (pkg-config file not found)
    Trying to generate pkg-config file for scotch... failed
   Checking for trilinos... yes
   Checking for ufc-1... yes
   Checking for umfpack... yes
   Checking for mtl4... no (pkg-config file not found)
    Trying to generate pkg-config file for mtl4... failed
   Checking for petsc... yes
   Checking for gts... yes
   Checking for boost... yes
   Checking for cholmod... no (pkg-config file not found)
    Trying to generate pkg-config file for cholmod... failed
   Checking for python-2... yes
   Checking for slepc... yes
   Checking for libxml-2.0... yes
   Resolving compiler... done
   Found optional package: petsc
   Found optional package: slepc
   Found optional package: umfpack
   Found optional package: gts
   Found optional package: trilinos
   Unable to find optional package: scotch
   Unable to find optional package: cholmod
   Unable to find optional package: mtl4
   Enabling compilation of PyDOLFIN
   scons: done reading SConscript files.
   scons: Building targets ...


   c++ -o dolfin/main/SubSystemsManager.os -c -Wall -pipe -ansi -DDEBUG
   -g -Werror -DNDEBUG -O2 -DPACKAGE_VERSION=\"0.8.0\" -DHAS_PETSC=1
   -DHAS_SLEPC=1 -DHAS_UMFPACK=1 -DHAS_GTS=1 -DHAS_TRILINOS=1 -fPIC -I.
   -I/usr/include/libxml2
   -I/home/meg/src/petsc-2.3.3-p13/bmake/linux-gnu-c-debug
   -I/home/meg/src/petsc-2.3.3-p13/include
   -I/home/meg/src/petsc-2.3.3-p13/include/mpiuni
   -I/home/meg/src/slepc-2.3.3 -I/home/meg/src/slepc-2.3.3/include
   -I/home/meg/src/petsc-2.3.3-p13/bmake/linux-gnu-c-debug
   -I/home/meg/src/petsc-2.3.3-p13/include
   -I/home/meg/src/petsc-2.3.3-p13/include/mpiuni
   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
   -I/home/meg/src/trilinos/local/include dolfin/main/SubSystemsManager.cpp
   dolfin/main/SubSystemsManager.cpp: In static member function 'static
   void dolfin::SubSystemsManager::initPETSc(int, char**, bool)':
   dolfin/main/SubSystemsManager.cpp:90: error: 'MPI' has not been declared
   dolfin/main/SubSystemsManager.cpp:107: error: 'MPI' has not been
   declared
   scons: *** [dolfin/main/SubSystemsManager.os] Error 1
   scons: building terminated because of errors.


Any suggestions?

--
Marie E. Rognes
Ph.D Fellow, Centre of Mathematics for Applications, University of Oslo
http://folk.uio.no/meg



Follow ups