Skip to content

Commit f4f6ae9

Browse files
authored
Add get/set of AMRErrorTagInfo in AMRErrorTag (#3317)
## Summary This add Get/Set routines of the AMRErrorTagInfo object in AMRErrorTag. ## Additional background The purpose of this change is to allow dynamically changing the error tag info objects (without creating whole new ones). The larger goal is to allow more control over whether a regard is done or not.
1 parent ac85741 commit f4f6ae9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Src/AmrCore/AMReX_ErrorList.H

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,10 @@ std::ostream& operator << (std::ostream& os, const ErrorList& elst);
482482
int NGrow() const noexcept {return m_ngrow;}
483483
const std::string& Field () const noexcept {return m_field;}
484484

485+
AMRErrorTagInfo& GetInfo () noexcept {return m_info;}
486+
AMRErrorTagInfo const& GetInfo () const noexcept {return m_info;}
487+
void SetInfo (AMRErrorTagInfo const& info) noexcept {m_info = info;}
488+
485489
protected:
486490
int SetNGrow () const noexcept;
487491

0 commit comments

Comments
 (0)