X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/f567cc2cc693372bb3f920f0eb068cde3dffaa44..950f83d0e71dc886fcf5be9889796c5b2a85fa4c:/Model/src/union.cpp diff --git a/Model/src/union.cpp b/Model/src/union.cpp index 443cb2b..baf3cc3 100644 --- a/Model/src/union.cpp +++ b/Model/src/union.cpp @@ -8,9 +8,10 @@ Union::Union(const std::string &_name):Transport(_name) { in_slots = 2; out_slots = 1; - max_flow = actual_flow = 0.0f; + max_flow = 0.0f; in_on_zero = 0; in_ready = 0; + actual_flow = 999999; } Union::~Union() @@ -110,7 +111,6 @@ void Union::simulate() std::cout << name << "::Flujo actual = " << actual_flow << std::endl; updated = false; - actual_flow = 99999; in_on_zero = 0; in_ready = 0; }