mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-05 11:45:56 +01:00
minor code cleaning
This commit is contained in:
parent
1e10b4571d
commit
a0d8eb2c24
@ -42,10 +42,7 @@ Application::Application(const std::string parameterFileName)
|
||||
|
||||
// destructor //////////////////////////////////////////////////////////////////
|
||||
Application::~Application(void)
|
||||
{
|
||||
LOG(Message) << "Grid is finalizing now" << std::endl;
|
||||
Grid_finalize();
|
||||
}
|
||||
{}
|
||||
|
||||
// execute /////////////////////////////////////////////////////////////////////
|
||||
void Application::run(void)
|
||||
|
@ -26,5 +26,3 @@ HadronsLogger Hadrons::HadronsLogError(1,"Error");
|
||||
HadronsLogger Hadrons::HadronsLogWarning(1,"Warning");
|
||||
HadronsLogger Hadrons::HadronsLogMessage(1,"Message");
|
||||
HadronsLogger Hadrons::HadronsLogDebug(1,"Debug");
|
||||
|
||||
|
||||
|
@ -33,6 +33,8 @@ int main(int argc, char *argv[])
|
||||
std::exit(EXIT_FAILURE);
|
||||
}
|
||||
parameterFileName = argv[1];
|
||||
|
||||
// initialization
|
||||
Grid_init(&argc, &argv);
|
||||
HadronsLogError.Active(GridLogError.isActive());
|
||||
HadronsLogWarning.Active(GridLogWarning.isActive());
|
||||
@ -45,5 +47,9 @@ int main(int argc, char *argv[])
|
||||
|
||||
application.run();
|
||||
|
||||
// epilogue
|
||||
LOG(Message) << "Grid is finalizing now" << std::endl;
|
||||
Grid_finalize();
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user