Skip to content
Snippets Groups Projects

added Environment for MPI initialization

Merged Praetorius, Simon requested to merge feature/environment into master
1 file
+ 29
1
Compare changes
  • Side-by-side
  • Inline
+ 29
1
@@ -4,6 +4,8 @@
# include "config.h"
#endif
#include <dune/common/deprecated.hh>
#include <amdis/AdaptInfo.hpp>
#include <amdis/Environment.hpp>
#include <amdis/Initfile.hpp>
@@ -11,4 +13,30 @@
#include <amdis/Output.hpp>
#include <amdis/ProblemStat.hpp>
namespace AMDiS {} // end namespace AMDiS
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
Loading