Rodin::Context module

Execution contexts for local and distributed computation.

Local selects local execution, and MPI carries the environment and communicator for distributed execution. Mesh, connectivity, and finite element specializations use these context types to select their data distribution and backend behavior while preserving the same mathematical interfaces.

Supported Contexts

  • Local Context: Single-machine execution with shared memory
  • Distributed Context: Multi-node execution with message passing (MPI)

Representative use

A mesh's context selects its execution environment without changing its geometric role:

using LocalMesh = Geometry::Mesh<Context::Local>;
auto mesh = LocalMesh::UniformGrid(Geometry::Polytope::Type::Triangle, {8, 8});

Classes

class Base
Abstract base class for all execution contexts.
class Local
Represents a single machine context.
class MPI
MPI context for parallel computing with Message Passing Interface.