Skip to content

Commit 975d43b

Browse files
authored
Merge pull request #4356 from lindsayad/use-n-elem
Clarify elem comment in jump_error_estimator
2 parents 3bc4c55 + 15ab5f1 commit 975d43b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/error_estimation/jump_error_estimator.C

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ void JumpErrorEstimator::estimate_error (const System & system,
110110
const DofMap & dof_map = system.get_dof_map();
111111
#endif
112112

113-
// Resize the error_per_cell vector to be
114-
// the number of elements, initialize it to 0.
113+
// Resize the error_per_cell vector according to the
114+
// maximum element ID because we will be indexing it with IDs.
115+
// Initialize to 0.
115116
error_per_cell.resize (mesh.max_elem_id());
116117
std::fill (error_per_cell.begin(), error_per_cell.end(), 0.);
117118

0 commit comments

Comments
 (0)