Skip to content

Commit 807c7a2

Browse files
authored
Parser: minor update (#4718)
Always assert that the number of variables in compile() and registerVariables() match.
1 parent d4b3f26 commit 807c7a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/Base/Parser/AMReX_Parser.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ ParserExecutor<N>
143143
Parser::compileHost () const
144144
{
145145
if (m_data && m_data->m_parser) {
146-
AMREX_ASSERT(N == m_data->m_nvars);
146+
AMREX_ALWAYS_ASSERT(N == m_data->m_nvars);
147147

148148
// Make sure all user functions have been registered.
149149
for (auto const& [ufname, nargs] : m_ufs) {

0 commit comments

Comments
 (0)