Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
96c63511
Commit
96c63511
authored
Apr 30, 2019
by
Praetorius, Simon
Browse files
add deprecated functions init() and finalize() for backward compatibility
parent
a6311162
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/amdis/AMDiS.hpp
View file @
96c63511
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment