Commit 7ee95763 authored by Praetorius, Simon's avatar Praetorius, Simon

change position of deprecated attribute

parent 133356fc
Pipeline #5102 passed with stage
in 48 minutes and 9 seconds
......@@ -15,7 +15,8 @@ namespace AMDiS
{
/// Initialized the Environment for MPI.
/**
* NOTE: deprecated
* \deprecated
*
* Use \ref Environment at the beginning of the main() instead:
*
* int main(int argc, char** argv) {
......@@ -24,17 +25,19 @@ namespace AMDiS
* }
*
**/
inline void [[deprecated]] init(int& argc, char**& argv, std::string const& initFileName = "")
[[deprecated("Use Environment at the beginning of main() instead")]]
inline void init(int& argc, char**& argv, std::string const& initFileName = "")
{
static Environment env(argc, argv, initFileName);
}
/// Closes the MPI environment
/**
* NOTE: deprecated
* \deprecated
*
* The \ref Environment is closed automatically on destruction.
**/
inline void [[deprecated]] finalize() { /* no nothing */ }
[[deprecated("Use Environment at the beginning of main() instead")]]
inline void 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