From 7c57715667e1cf3e4dc6595b149892582af6a8ea Mon Sep 17 00:00:00 2001 From: Daniel Diez Date: Wed, 18 Dec 2024 14:56:02 +0100 Subject: [PATCH] [Core] Bugfix - Initialize DOF set flag in residual-based block builder and solver (#12952) * Initialize DOF set flag in residual-based block builder and solver * merging master --------- Co-authored-by: Daniel Diez --- .../strategies/builder_and_solvers/test_builder_and_solver.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/kratos/tests/cpp_tests/strategies/builder_and_solvers/test_builder_and_solver.cpp b/kratos/tests/cpp_tests/strategies/builder_and_solvers/test_builder_and_solver.cpp index 63131d73cc86..c9a43e398775 100644 --- a/kratos/tests/cpp_tests/strategies/builder_and_solvers/test_builder_and_solver.cpp +++ b/kratos/tests/cpp_tests/strategies/builder_and_solvers/test_builder_and_solver.cpp @@ -403,6 +403,7 @@ namespace Kratos::Testing SparseSpaceType::MatrixPointerType pA; /// The LHS matrix of the system of equations pBuilderAndSolver->SetUpDofSet(pScheme, rModelPart); + KRATOS_EXPECT_TRUE(pBuilderAndSolver->GetDofSetIsInitializedFlag()) pBuilderAndSolver->SetUpSystem(rModelPart); pBuilderAndSolver->ResizeAndInitializeVectors(pScheme, pA, pDx, pb, rModelPart);