1
0
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:
Antonin Portelli 2016-02-23 16:33:00 +00:00
parent 1e10b4571d
commit a0d8eb2c24
3 changed files with 7 additions and 6 deletions

View File

@ -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)

View File

@ -26,5 +26,3 @@ HadronsLogger Hadrons::HadronsLogError(1,"Error");
HadronsLogger Hadrons::HadronsLogWarning(1,"Warning");
HadronsLogger Hadrons::HadronsLogMessage(1,"Message");
HadronsLogger Hadrons::HadronsLogDebug(1,"Debug");

View File

@ -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;
}