Skip to content
Snippets Groups Projects
Commit 0b786d62 authored by Christoph Lehmann's avatar Christoph Lehmann
Browse files

[App] adapted to ProjectData and Process changes

parent e6495059
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@
#include "Applications/ApplicationsLib/LinearSolverLibrarySetup.h"
#include "Applications/ApplicationsLib/LogogSetup.h"
#include "Applications/ApplicationsLib/ProjectData.h"
#include "Applications/ApplicationsLib/UncoupledProcessesTimeLoop.h"
#include "ProcessLib/UncoupledProcessesTimeLoop.h"
#include "NumLib/NumericsConfig.h"
......@@ -108,16 +108,13 @@ int main(int argc, char *argv[])
project_config.checkAndInvalidate();
BaseLib::ConfigTree::assertNoSwallowedErrors();
// Create processes.
project.buildProcesses();
BaseLib::ConfigTree::assertNoSwallowedErrors();
INFO("Initialize processes.");
for (auto p_it = project.processesBegin();
p_it != project.processesEnd(); ++p_it)
{
(*p_it)->initialize();
p_it->second->initialize();
}
BaseLib::ConfigTree::assertNoSwallowedErrors();
......@@ -125,7 +122,7 @@ int main(int argc, char *argv[])
INFO("Solve processes.");
auto& time_loop = project.getTimeLoop();
solver_succeeded = time_loop.loop(project);
solver_succeeded = time_loop.loop();
} // This nested scope ensures that everything that could possibly
// possess a ConfigTree is destructed before the final check below is
// done.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment