AMDiS.hpp 939 Bytes
Newer Older
1 2
#pragma once

Praetorius, Simon's avatar
Praetorius, Simon committed
3
#include <config.h>
4

5 6
#include <dune/common/deprecated.hh>

7 8 9 10 11 12 13
#include <amdis/AdaptInfo.hpp>
#include <amdis/Environment.hpp>
#include <amdis/Initfile.hpp>
#include <amdis/LinearAlgebra.hpp>
#include <amdis/Output.hpp>
#include <amdis/ProblemStat.hpp>

14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
namespace AMDiS
{
  /// Initialized the Environment for MPI.
  /**
   * NOTE: deprecated
   * Use \ref Environment at the beginning of the main() instead:
   *
   *   int main(int argc, char** argv) {
   *      Environment env(argc, argv);
   *      // do somthing.
   *   }
   *
   **/
  inline void DUNE_DEPRECATED init(int& argc, char**& argv, std::string const& initFileName = "")
  {
    static Environment env(argc, argv, initFileName);
  }

  /// Closes the MPI environment
  /**
   * NOTE: deprecated
   *
   * The \ref Environment is closed automatically on destruction.
   **/
  inline void DUNE_DEPRECATED finalize() { /* no nothing */ }

} // end namespace AMDiS