Commit eb5bcf86 authored by FRIEDEMANN Sebastian's avatar FRIEDEMANN Sebastian
Browse files

Dirty fix in copyassimilator

parent d30835c8
Pipeline #408149 passed with stage
in 19 minutes and 23 seconds
......@@ -43,12 +43,12 @@ void CopyAssimilator::on_init_state(const int runner_id, const
// let's use this to set the init.
// you may not have more runners than ensemble members here! Otherwise some
// would stay uninitialized!
assert(static_cast<size_t>(runner_id) < field.ensemble_members.size());
assert(runner_id == 0);
//assert(static_cast<size_t>(runner_id) < field.ensemble_members.size());
//assert(runner_id == 0);
// For nnow we copy the first received ensemble state everywhere.... I know this is a rather stupid way to init the ensemble!
// TODO: later we should at least perturb all members a bit using the index map and so on...
if (runner_id == 0)
{
//if (runner_id == 0) // FIXME: removal of this if will generate chimare states that are made up from multiple members input
//{
for (auto & member : field.ensemble_members)
{
member.store_background_state_part(part,
......@@ -67,5 +67,5 @@ void CopyAssimilator::on_init_state(const int runner_id, const
member.state_hidden.data() +
hidden_part.local_offset_server);
}
}
//}
}
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