We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ee4fc3 commit 879862aCopy full SHA for 879862a
1 file changed
src/numerics/petsc_vector.C
@@ -533,9 +533,9 @@ PetscVector<T>::operator = (const PetscVector<T> & v)
533
libmesh_assert (v.closed());
534
535
AssignmentType assign_type = Error;
536
- if (this->type() == SERIAL && v.type() != SERIAL && v.size() == this->local_size())
+ if (this->type() == SERIAL && v.type() != SERIAL)
537
assign_type = ParallelToSerial;
538
- else if (this->type() != SERIAL && v.type() == SERIAL && this->size() == v.local_size())
+ else if (this->type() != SERIAL && v.type() == SERIAL)
539
assign_type = SerialToParallel;
540
else if (this->local_size() == v.local_size())
541
assign_type = SameToSame;
0 commit comments