This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Error with MPI at build

0 votes

Hi there!

I was using FEniCS 1.4 in a PC where I installed it by dorsal procedure. I ran the following commands:

/"fenics_dir"/share/fenics/fenics.conf
/"fenics_dir"/share/dolfin/dolfin.conf

in order to build my code.

In another PC I installed FEniCS 1.4 from this PPA and tried to run the same code. In this case these commands seem not to be required. However at build I get the following error:

/usr/include/dolfin/common/MPI.h:-1: In static member function ‘static ompi_datatype_t* dolfin::MPI::mpi_type() [with T = std::complex<double>, MPI_Datatype = ompi_datatype_t*]’:

/usr/include/dolfin/common/MPI.h:315: instantiated from ‘static void dolfin::MPI::all_to_all(MPI_Comm, std::vector<std::vector<_RealType> >&, std::vector<std::vector<_RealType> >&) [with T = std::complex<double>, MPI_Comm = ompi_communicator_t*]’

/home/jos/Desktop/workspace/MAXEIG/la/ComplexSTLMatrix.cpp:281: instantiated from here

/usr/include/dolfin/common/MPI.h:228: error: static assertion failed: "Unknown MPI type"

I would appreciated it a lot if someone could assist me with this matter.
Thanx in advance!!

asked Apr 27, 2017 by iosif.lazaridis FEniCS Novice (170 points)
...