Skip to content

Commit 5dba5c6

Browse files
committed
Update to latest ChLoadHydrodynamics API
1 parent 4e0fe1e commit 5dba5c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hydro/hydro_system.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ HydroSystem::HydroSystem(std::vector<std::shared_ptr<ChBody>> user_bodies,
281281
const auto& body_info = file_info_.GetBodyInfos();
282282
ChBodyAddedMassBlocks body_blocks;
283283
for (size_t i = 0; i < num_bodies_; i++) {
284-
body_blocks.insert(std::pair(bodies_[i], body_info[i].inf_added_mass));
284+
body_blocks.push_back({bodies_[i], body_info[i].inf_added_mass});
285285
}
286286
if (num_bodies_ > 0) {
287287
auto hydro_load = chrono_types::make_shared<ChLoadHydrodynamics>(body_blocks);

0 commit comments

Comments
 (0)