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

3 4 5
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
6

7 8
#include <dune/common/deprecated.hh>

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

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 41 42
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