Commit 4791076e authored by Sonja Happ's avatar Sonja Happ

fix in forward sweep: allow doing fw sweep computation while convergence check has started

parent f09ded30
......@@ -166,7 +166,7 @@ void Model::do_forward_sweep() {
//perform convergence check for all node agents
int index = 0;
for (auto i : agents_scheduling) { // iterate forward...
if(state[index] == DONE_FORWARD_SWEEP || distribution_method == "evenly" ){
if(state[index] <= DONE_FORWARD_SWEEP || distribution_method == "evenly" ){
state[index] = i->do_forward_sweep(agent_network_elec);
IO->log_info("Conv. ID " + std::to_string(i->getId().id()) + " state="+ std::to_string(state[index]));
if(state[index] == DONE_CONVERGENCE_CHECK){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment