Skip to content

Commit 1331728

Browse files
Fix vector reference (#170)
* Updates for latest main * Remove deprecated lines * Change auto to std::vector<T>&
1 parent d26d8d6 commit 1331728

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/elasticity_problem.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ MatNullSpace build_near_nullspace(const fem::FunctionSpace<double>& V)
5050
}
5151

5252
// Rotations
53-
auto x3 = basis[3].array();
54-
auto x4 = basis[4].array();
55-
auto x5 = basis[5].array();
53+
std::vector<T>& x3 = basis[3].array();
54+
std::vector<T>& x4 = basis[4].array();
55+
std::vector<T>& x5 = basis[5].array();
5656

5757
const std::vector<double> x = V.tabulate_dof_coordinates(false);
5858
const std::int32_t* dofs = V.dofmap()->map().data_handle();

0 commit comments

Comments
 (0)