Skip to content

Commit

Permalink
Remove isReadDataAvailable
Browse files Browse the repository at this point in the history
  • Loading branch information
davidscn committed Sep 23, 2022
1 parent d7aee79 commit 52536b9
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions include/adapter/adapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -346,15 +346,12 @@ namespace Adapter
precice.initializeData();

// read initial readData from preCICE if required for the first time step
if (precice.isReadDataAvailable())
{
precice.readBlockVectorData(read_data_id,
n_interface_nodes,
interface_nodes_ids.data(),
read_data.data());
precice.readBlockVectorData(read_data_id,
n_interface_nodes,
interface_nodes_ids.data(),
read_data.data());

format_precice_to_deal(precice_to_deal);
}
format_precice_to_deal(precice_to_deal);
}


Expand Down Expand Up @@ -387,15 +384,12 @@ namespace Adapter

// Here, we obtain data from another participant. Again, we insert the
// data in our global vector by calling format_precice_to_deal
if (precice.isReadDataAvailable())
{
precice.readBlockVectorData(read_data_id,
n_interface_nodes,
interface_nodes_ids.data(),
read_data.data());
precice.readBlockVectorData(read_data_id,
n_interface_nodes,
interface_nodes_ids.data(),
read_data.data());

format_precice_to_deal(precice_to_deal);
}
format_precice_to_deal(precice_to_deal);
}


Expand Down

0 comments on commit 52536b9

Please sign in to comment.