Skip to content

Commit d44e926

Browse files
authored
Add ParamParse::getPrefix (#4612)
It was removed in #4031. But it is still used by ImpactX in an assert, and it is still useful.
1 parent bd315df commit d44e926

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Src/Base/AMReX_ParmParse.H

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,6 +1700,8 @@ public:
17001700

17011701
static std::string ParserPrefix;
17021702

1703+
[[nodiscard]] std::string const& getPrefix () const;
1704+
17031705
[[nodiscard]] std::string prefixedName (const std::string_view& str) const;
17041706

17051707
protected:

Src/Base/AMReX_ParmParse.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,6 +1091,12 @@ bool pp_parser (const ParmParse::Table& table, const std::string& parser_prefix,
10911091

10921092
} // End of unnamed namespace.
10931093

1094+
std::string const&
1095+
ParmParse::getPrefix () const
1096+
{
1097+
return m_prefix;
1098+
}
1099+
10941100
std::string
10951101
ParmParse::prefixedName (const std::string_view& str) const
10961102
{

0 commit comments

Comments
 (0)