From dbb25bea51531b7e4e0c9b5e4def3a7fadf8367c Mon Sep 17 00:00:00 2001 From: David Schneider Date: Thu, 22 Sep 2022 13:56:09 +0200 Subject: [PATCH] Remove isWriteDataRequired --- include/adapter/adapter.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/include/adapter/adapter.h b/include/adapter/adapter.h index d393304..925788f 100644 --- a/include/adapter/adapter.h +++ b/include/adapter/adapter.h @@ -366,17 +366,13 @@ namespace Adapter // This is essentially the same as during initialization // We have already all IDs and just need to convert our obtained data to // the preCICE compatible 'write_data' vector, which is done in the - // format_deal_to_precice function. All this is of course only done in - // case write data is required. - if (precice.isWriteDataRequired(computed_timestep_length)) - { - format_deal_to_precice(deal_to_precice); + // format_deal_to_precice function. + format_deal_to_precice(deal_to_precice); - precice.writeBlockVectorData(write_data_id, - n_interface_nodes, - interface_nodes_ids.data(), - write_data.data()); - } + precice.writeBlockVectorData(write_data_id, + n_interface_nodes, + interface_nodes_ids.data(), + write_data.data()); // Here, we need to specify the computed time step length and pass it to // preCICE