Skip to content

Commit

Permalink
Cut-n-paste typo fix in adjoints_ex4
Browse files Browse the repository at this point in the history
  • Loading branch information
roystgnr committed Jul 23, 2013
1 parent 962bd2c commit b056941
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/adjoints/adjoints_ex4/adjoints_ex4.C
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,9 @@ int main (int argc, char** argv)
// For refinement purposes we need to sort by error
// *magnitudes*, but AdjointRefinement gives us signed errors.
if (!param.refine_uniformly)
for (std::size_t i=0; i<error_per_cell.size(); i++)
if (error_per_cell[i] != 0.)
error_per_cell[i] = std::abs(error_per_cell[i]);
for (std::size_t i=0; i<QoI_elementwise_error.size(); i++)
if (QoI_elementwise_error[i] != 0.)
QoI_elementwise_error[i] = std::abs(QoI_elementwise_error[i]);

// We have to refine either based on reaching an error tolerance or
// a number of elements target, which should be verified above
Expand Down

0 comments on commit b056941

Please sign in to comment.