On 2013-11-26 11:00, Markus Blatt wrote:
I want to compile dune-cornerpoint with MPI but did not succeed. In
CMakeCache.txt I read USE_MPI:BOOL=ON and all the MPI variables seem
to be correctly set.
The MPI support in opm-core is done like this: dune-cornerpoint has a
required dependency on dune-common, which in turn has a non-required
dependency on MPI. It is through that chain that the build of
dune-cornerpoint will "inherit" the paths to MPI. If the option USE_MPI
is *not* turned on, the code in cmake/Modules/OpmLibMain.cmake:74--77
will inhibit the MPI CMake module from loading, and switch dune-common
into serial mode. (Notice that havoc will ensue if you compile DUNE with
MPI and OPM without or vice versa -- no check is made to ensure that
there are done compatibly).
However, I seem to recall that MPI did not quite follow the conventions
(sic) of the other CMake packages, perhaps this is also dependent on the
version of CMake you have. A first checkpoint is therefore to add a
if (NAME STREQUAL "MPI")
message ("*** ${MPI_INCLUDE_PATH} ***")
message ("*** ${MPI_LIBRARY} ***")
endif ()
around cmake/Modules/OpmFind.cmake:164 and see if they get picked up at all.
--
Roland.
_______________________________________________
Opm mailing list
[email protected]
http://www.opm-project.org/mailman/listinfo/opm