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

El Capitan with 1.6 DMG: Teuchos MPI not found

0 votes

Dear all,

I upgraded Fenics to 1.6, since I had an upgrade to OSX 10.11, but now I cannot compile my C++ programs using dolfin. The error is simple, but weird:

In file included from /Users/sensei/Documents/Projects/fracture/fenicspp/fenicspp/Utilities.cpp:9:
In file included from /Users/sensei/Documents/Projects/fracture/fenicspp/fenicspp/Utilities.h:12:
In file included from /Applications/FEniCS.app/Contents/Resources/include/dolfin.h:22:
In file included from /Applications/FEniCS.app/Contents/Resources/include/dolfin/la/dolfin_la.h:29:
/Applications/FEniCS.app/Contents/Resources/include/dolfin/la/TpetraMatrix.h:29:10: fatal error: 'Teuchos_GlobalMPISession.hpp' file not found
#include <Teuchos_GlobalMPISession.hpp>
         ^
1 error generated.

Now that's weird, it worked before perfectly, and now I find that Teuchos isn't part of the package. The problem is, as far as I understand, that dolfin.h relies indirectly on Tpetra (which is good!), and Tpetra needs Teuchos (as the underlying communication).

How can I correct this error?

Thanks!

PS. I reverted to 1.5, modifying the script to make it run on 10.11, and it compiles/links successfully.

asked Nov 24, 2015 by senseiwa FEniCS User (2,620 points)
edited Nov 24, 2015 by senseiwa

So nobody is using the binary version on 10.11?

1 Answer

+1 vote

Trilinos is optional for DOLFIN and the DMG was built without it for the 1.6 release. You will have to build from source if you need DOLFIN built with Trilinos.

answered Nov 27, 2015 by johannr FEniCS Expert (17,350 points)

I have to check, because I don't use Trilinos anywhere in my code. My errors say that the chain failing is:

mycode -> 
    myheader -> 
        dolfin.h -> 
            dolfin_la.h -> 
                TpetraMatrix.h -> 
                    Teuchos_GlobalMPISession.hpp (FILE NOT FOUND)

The only Fenics-related header I always include is dolfin.h, but I will check again, though!

Thanks!

I moved on for many months using 1.5, and only now I am back trying 1.6.

I can confirm that I don't use Trilinos in any part of my code.

The only thing that I really wish to use is Eigen with MKL...

Thanks!

...