Skip to content

Commit afb83b7

Browse files
roystgnrjwpeterson
authored andcommitted
Correctly init projection unit test matrices
Refs #1593.
1 parent ff83265 commit afb83b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/systems/systems_test.C

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public:
281281
std::unique_ptr<SparseMatrix<Number> > gold_mat_ptr =
282282
SparseMatrix<Number>::build(*TestCommWorld);
283283
SparseMatrix<Number> & gold_mat = *gold_mat_ptr;
284-
gold_mat.init(n_new_dofs, n_old_dofs, n_new_dofs_local, n_old_dofs);
284+
gold_mat.init(n_new_dofs, n_old_dofs, n_new_dofs_local, n_old_dofs_local);
285285

286286
// construct the gold projection matrix using static node numbering as reference info
287287
for ( const auto & node : mesh.local_node_ptr_range() )
@@ -430,7 +430,7 @@ public:
430430
std::unique_ptr<SparseMatrix<Number> > gold_mat_ptr =
431431
SparseMatrix<Number>::build(*TestCommWorld);
432432
SparseMatrix<Number> & gold_mat = *gold_mat_ptr;
433-
gold_mat.init(n_new_dofs, n_old_dofs, n_new_dofs_local, n_old_dofs);
433+
gold_mat.init(n_new_dofs, n_old_dofs, n_new_dofs_local, n_old_dofs_local);
434434

435435
// construct the gold projection matrix using static node numbering as reference info
436436
for ( const auto & node : mesh.local_node_ptr_range() )
@@ -608,7 +608,7 @@ public:
608608
std::unique_ptr<SparseMatrix<Number> > gold_mat_ptr =
609609
SparseMatrix<Number>::build(*TestCommWorld);
610610
SparseMatrix<Number> & gold_mat = *gold_mat_ptr;
611-
gold_mat.init(n_new_dofs, n_old_dofs, n_new_dofs_local, n_old_dofs);
611+
gold_mat.init(n_new_dofs, n_old_dofs, n_new_dofs_local, n_old_dofs_local);
612612

613613
// construct the gold projection matrix using static node numbering as reference info
614614
for ( const auto & node : mesh.local_node_ptr_range() )

0 commit comments

Comments
 (0)