Bertini 2 d882924 (2026-10-06 19:56 UTC)
Numerical algebraic geometry library (C++ core)
Loading...
Searching...
No Matches
initialize_finalize.hpp File Reference

Provides the free initialization and finalization routines for Bertini2. More...

#include <iostream>
#include "bertini2/logging.hpp"
#include "bertini2/io/splash.hpp"
Include dependency graph for initialize_finalize.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  bertini
namespace  bertini::parallel
namespace  bertini::serial

Functions

void bertini::parallel::Finalize ()
 Finalize the parallel (MPI) environment.
void bertini::parallel::Initialize ()
 Initialize the parallel (MPI) environment.
int bertini::parallel::Rank ()
 Get this process's rank (0 in serial builds).
int bertini::parallel::Size ()
 Get the number of ranks (1 in serial builds).
bool bertini::parallel::IsManager ()
 Query whether this rank is the manager (rank 0).
bool bertini::parallel::IsWorker ()
 Query whether this rank is a worker (rank != 0).
void bertini::serial::Finalize ()
 Finalize the serial environment (no-op counterpart to the parallel version).
void bertini::serial::Initialize ()
 Initialize the serial environment (no-op counterpart to the parallel version).

Detailed Description

Provides the free initialization and finalization routines for Bertini2.