Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • A amdis-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • Deployments
    • Deployments
    • Releases
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • amdis
  • amdis-core
  • Merge requests
  • !36

added Environment for MPI initialization

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Praetorius, Simon requested to merge feature/environment into master Apr 26, 2019
  • Overview 1
  • Commits 3
  • Changes 38

This MR replaces the old AMDiS::init() - AMDiS::finalize() pattern with a RAII class Environment, to be instantiated at the begin of the main method, i.e.

int main(int argc, char** argv)
{
  Environment env(argc, argv);

  // get MPI rank and size from environment after instantiation:
  std::cout << Environment::mpiRank();
  std::cout << Environment::mpiSize(); 
}

the ``finalize'' is called automatically when env is destructed, i.e. at the end of main().

Edited Apr 26, 2019 by Praetorius, Simon
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature/environment