Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/benchmarks/SofaBaseLinearSolver/CompressedRowSparse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class BM_CRS_Fixture : public benchmark::Fixture

for (const auto& pos : matrixPositions)
{
*(mat.wbloc(pos.first / 3, pos.second / 3, true)) += bloc;
*(mat.wblock(pos.first / 3, pos.second / 3, true)) += bloc;
}
}

Expand Down Expand Up @@ -143,4 +143,4 @@ BENCHMARK_TEMPLATE_F(BM_CRS_Fixture, Add3x3BlocScalar_CRS3x3d, sofa::type::Mat<3
{
this->addBlocScalar(st);
}
}
}
6 changes: 3 additions & 3 deletions src/benchmarks/SofaCore/MultiVecId.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ BENCHMARK(BM_PassMultivecidByReference);

void BM_PassMultivecidByValue(benchmark::State& state)
{
auto pos = sofa::core::VecCoordId::position();
auto pos = sofa::core::vec_id::write_access::position;
for (auto _ : state)
{
fooByValue(pos);
Expand All @@ -32,9 +32,9 @@ void BM_PassMultivecidByValue(benchmark::State& state)

void BM_PassMultivecidByReference(benchmark::State& state)
{
auto pos = sofa::core::VecCoordId::position();
auto pos = sofa::core::vec_id::write_access::position;
for (auto _ : state)
{
fooByReference(pos);
}
}
}
Loading