Skip to content

Commit

Permalink
RixsDynamics: bug fix introducing during clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
g1257 committed May 18, 2019
1 parent f1deb65 commit 24c483d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Engine/TargetingRixsDynamic.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ class TargetingRixsDynamic : public TargetingBase<LanczosSolverType_,VectorWithO

RealType weight(SizeType i) const
{
assert(i < weight_.size());
return weight_[i];
}

Expand Down Expand Up @@ -560,6 +561,7 @@ class TargetingRixsDynamic : public TargetingBase<LanczosSolverType_,VectorWithO
calcVectors(indices, Eg, direction, block1, !firstCall);
calcVectors(indices2, Eg, direction, block1, !firstCall);
firstCall = false;
setWeights(numberOfWeights);
}

void calcVectors(const VectorSizeType& indices,
Expand Down

0 comments on commit 24c483d

Please sign in to comment.