Skip to content

Commit 2f21e94

Browse files
committed
Add some parallel only assertion checks
1 parent 25ab562 commit 2f21e94

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/numerics/petsc_matrix.C

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,8 @@ void PetscMatrix<T>::_get_submatrix(SparseMatrix<T> & submatrix,
806806
const_cast<PetscMatrix<T> *>(this)->close();
807807
}
808808

809+
semiparallel_only();
810+
809811
// Make sure the SparseMatrix passed in is really a PetscMatrix
810812
PetscMatrix<T> * petsc_submatrix = cast_ptr<PetscMatrix<T> *>(&submatrix);
811813

@@ -1217,6 +1219,8 @@ void PetscMatrix<T>::get_row (numeric_index_type i_in,
12171219
template <typename T>
12181220
PetscMatrix<T> & PetscMatrix<T>::operator= (const PetscMatrix<T> & v)
12191221
{
1222+
semiparallel_only();
1223+
12201224
if (this->_mat)
12211225
{
12221226
PetscBool assembled;

src/systems/condensed_eigen_system.C

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ void
323323
CondensedEigenSystem::copy_super_to_sub(const SparseMatrix<Number> & super,
324324
SparseMatrix<Number> & sub)
325325
{
326+
parallel_object_only();
327+
326328
libmesh_assert_equal_to(sub.local_m(), local_non_condensed_dofs_vector.size());
327329
libmesh_assert_equal_to(sub.local_m() + this->get_dof_map().n_local_constrained_dofs(),
328330
super.local_m());

0 commit comments

Comments
 (0)