MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / ~Data

Method ~Data

Src/Base/Parser/AMReX_Parser.cpp:50–64  ·  view source on GitHub ↗

\cond DOXYGEN_IGNORE

Source from the content-addressed store, hash-verified

48
49/// \cond DOXYGEN_IGNORE
50Parser::Data::~Data ()
51{
52 m_expression.clear();
53 if (m_parser) { amrex_parser_delete(m_parser); }
54 if (m_host_executor) {
55 if (m_use_arena) {
56 The_Pinned_Arena()->free(m_host_executor);
57 } else {
58 std::free(m_host_executor);
59 }
60 }
61#ifdef AMREX_USE_GPU
62 if (m_device_executor) { The_Arena()->free(m_device_executor); }
63#endif
64}
65/// \endcond
66
67Parser::operator bool () const

Callers

nothing calls this directly

Calls 5

amrex_parser_deleteFunction · 0.85
The_Pinned_ArenaFunction · 0.85
The_ArenaFunction · 0.85
clearMethod · 0.45
freeMethod · 0.45

Tested by

no test coverage detected