AMDiS.cpp 588 Bytes
Newer Older
1
2
3
#include "AMDiS.hpp"

// AMDiS includes
4
5
#include <amdis/Initfile.hpp>
#include <amdis/Output.hpp>
6
7
8

namespace AMDiS
{
9
  Dune::MPIHelper& init(int& argc, char**& argv, std::string const& initFileName)
10
11
  {
    // Maybe initialize MPI
12
    Dune::MPIHelper& mpiHelper = Dune::MPIHelper::instance(argc, argv);
13

14
15
    Parameters::clearData();

16
    if (initFileName == "") {
17
18
      test_exit(argc > 1, "No init file specified!\n");
      Parameters::init(argv[1]);
19
    } else {
20
21
22
      Parameters::init(initFileName);
    }

23
    return mpiHelper;
24
25
26
27
28
29
30
  }


  void finalize()
  {}

} // end namespace AMDiS