Skip to content
Snippets Groups Projects
Forked from Core Modules / dune-common
Source project has a limited visibility.
  • Steffen Müthing's avatar
    ed3e3167
    [MPI] Make parallel version CollectiveCommunication default-constructible · ed3e3167
    Steffen Müthing authored
    In order to simplify fallback handling between code with and without MPI
    support, this patch makes the specialization of CollectiveCommunication
    for MPI communicators default-constructible by defaulting the underlying
    MPI communicator to MPI_COMM_WORLD, which should be reasonable for most
    scenarios.
    
    As the non-specialized version for sequential code is already
    default-constructible, this allows grid constructors to accept a
    CollectiveCommunication object regardless of whether MPI support is
    enabled or not and to provide a default value for this parameter.
    
    This patch resolves FS#1497.
    ed3e3167
    History
    [MPI] Make parallel version CollectiveCommunication default-constructible
    Steffen Müthing authored
    In order to simplify fallback handling between code with and without MPI
    support, this patch makes the specialization of CollectiveCommunication
    for MPI communicators default-constructible by defaulting the underlying
    MPI communicator to MPI_COMM_WORLD, which should be reasonable for most
    scenarios.
    
    As the non-specialized version for sequential code is already
    default-constructible, this allows grid constructors to accept a
    CollectiveCommunication object regardless of whether MPI support is
    enabled or not and to provide a default value for this parameter.
    
    This patch resolves FS#1497.