Commit 96c63511 authored by Praetorius, Simon's avatar Praetorius, Simon

add deprecated functions init() and finalize() for backward compatibility

parent a6311162
Pipeline #2039 passed with stage
in 65 minutes and 27 seconds
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment