Skip to content

Commit 7d38136

Browse files
lindsayadjwpeterson
authored andcommitted
Make indexing add/set operations toggle _is_closed
1 parent dcb654a commit 7d38136

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/numerics/distributed_vector.h

+7
Original file line numberDiff line numberDiff line change
@@ -572,10 +572,14 @@ void DistributedVector<T>::set (const numeric_index_type i, const T value)
572572
libmesh_assert_less (i-first_local_index(), local_size());
573573

574574
_values[i - _first_local_index] = value;
575+
576+
577+
this->_is_closed = false;
575578
}
576579

577580

578581

582+
579583
template <typename T>
580584
inline
581585
void DistributedVector<T>::add (const numeric_index_type i, const T value)
@@ -587,6 +591,9 @@ void DistributedVector<T>::add (const numeric_index_type i, const T value)
587591
libmesh_assert_less (i-first_local_index(), local_size());
588592

589593
_values[i - _first_local_index] += value;
594+
595+
596+
this->_is_closed = false;
590597
}
591598

592599

0 commit comments

Comments
 (0)