From eb31f3fad9472197c4e5589a9b5dea329d2d7f7e Mon Sep 17 00:00:00 2001 From: Guillaume Giudicelli Date: Fri, 22 Nov 2024 13:40:03 -0700 Subject: [PATCH] Address Alex's review Add constness to a status-getter Co-authored-by: Alex Lindsay --- framework/include/problems/SubProblem.h | 2 +- framework/src/problems/SubProblem.C | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/include/problems/SubProblem.h b/framework/include/problems/SubProblem.h index cbfe65c2ad48..8428e1d8c1ca 100644 --- a/framework/include/problems/SubProblem.h +++ b/framework/include/problems/SubProblem.h @@ -158,7 +158,7 @@ class SubProblem : public Problem * @returns false if the tag is not within the set of vectors that are * intended to not be zero or if the set is empty. returns true otherwise */ - bool vectorTagNotZeroed(const TagID tag); + bool vectorTagNotZeroed(const TagID tag) const; /** * Get a VectorTag from a TagID. diff --git a/framework/src/problems/SubProblem.C b/framework/src/problems/SubProblem.C index 8125eaa8b575..d86d001b05b3 100644 --- a/framework/src/problems/SubProblem.C +++ b/framework/src/problems/SubProblem.C @@ -142,7 +142,7 @@ SubProblem::addNotZeroedVectorTag(const TagID tag) } bool -SubProblem::vectorTagNotZeroed(const TagID tag) +SubProblem::vectorTagNotZeroed(const TagID tag) const { return _not_zeroed_tagged_vectors.count(tag); }