diff --git a/src/benchmarks/SofaBaseLinearSolver/CompressedRowSparse.cpp b/src/benchmarks/SofaBaseLinearSolver/CompressedRowSparse.cpp index d8125d6..0cc4d83 100644 --- a/src/benchmarks/SofaBaseLinearSolver/CompressedRowSparse.cpp +++ b/src/benchmarks/SofaBaseLinearSolver/CompressedRowSparse.cpp @@ -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; } } @@ -143,4 +143,4 @@ BENCHMARK_TEMPLATE_F(BM_CRS_Fixture, Add3x3BlocScalar_CRS3x3d, sofa::type::Mat<3 { this->addBlocScalar(st); } -} \ No newline at end of file +} diff --git a/src/benchmarks/SofaCore/MultiVecId.cpp b/src/benchmarks/SofaCore/MultiVecId.cpp index 777e5f2..4ae07ad 100644 --- a/src/benchmarks/SofaCore/MultiVecId.cpp +++ b/src/benchmarks/SofaCore/MultiVecId.cpp @@ -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); @@ -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); } -} \ No newline at end of file +}