Skip to content

Commit 7662586

Browse files
committed
Clear out the old rhs before assembling an adjoint rhs
git-svn-id: file:///Users/petejw/Documents/libmesh_svn_bak@3444 434f946d-2f3d-0410-ba4c-cb9f52fb0dbf
1 parent f223c84 commit 7662586

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

trunk/libmesh/src/solvers/fem_system.C

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,9 @@ void FEMSystem::assemble_qoi_derivative()
551551
AutoPtr<DiffContext> con = this->build_context();
552552
FEMContext &_femcontext = libmesh_cast_ref<FEMContext&>(*con);
553553

554+
// In case there's already a rhs in use
555+
rhs->zero();
556+
554557
// Loop over every active mesh element on this processor
555558
MeshBase::const_element_iterator el =
556559
mesh.active_local_elements_begin();

0 commit comments

Comments
 (0)