// indicate that we're back to a
// pristine state
last_action = VectorOperation::unknown;
-
- // update ghost values if needed
- update_ghost_values();
}
const PetscErrorCode ierr = VecScale(vector, a);
AssertThrow(ierr == 0, ExcPETScError(ierr));
- // update ghost values if needed
- update_ghost_values();
-
return *this;
}
const PetscErrorCode ierr = VecScale(vector, factor);
AssertThrow(ierr == 0, ExcPETScError(ierr));
- // update ghost values if needed
- update_ghost_values();
-
return *this;
}
const PetscErrorCode ierr = VecAXPY(vector, 1, v);
AssertThrow(ierr == 0, ExcPETScError(ierr));
- // update ghost values if needed
- update_ghost_values();
-
return *this;
}
const PetscErrorCode ierr = VecAXPY(vector, -1, v);
AssertThrow(ierr == 0, ExcPETScError(ierr));
- // update ghost values if needed
- update_ghost_values();
return *this;
}
const PetscErrorCode ierr = VecShift(vector, s);
AssertThrow(ierr == 0, ExcPETScError(ierr));
-
- // update ghost values if needed
- update_ghost_values();
}
const PetscErrorCode ierr = VecAXPY(vector, a, v);
AssertThrow(ierr == 0, ExcPETScError(ierr));
-
- // update ghost values if needed
- update_ghost_values();
}
const PetscErrorCode ierr = VecMAXPY(vector, 2, weights, addends);
AssertThrow(ierr == 0, ExcPETScError(ierr));
-
- // update ghost values if needed
- update_ghost_values();
}
const PetscErrorCode ierr = VecAYPX(vector, s, v);
AssertThrow(ierr == 0, ExcPETScError(ierr));
-
- // update ghost values if needed
- update_ghost_values();
}
Assert(!has_ghost_elements(), ExcGhostsPresent());
const PetscErrorCode ierr = VecPointwiseMult(vector, factors, vector);
AssertThrow(ierr == 0, ExcPETScError(ierr));
-
- // update ghost values if needed
- update_ghost_values();
}