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

Method get_ofs_ptr

Src/Base/AMReX_ParallelContext.cpp:118–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118std::ofstream *
119Frame::get_ofs_ptr ()
120{
121 if (m_out_filename.empty()) {
122 return nullptr;
123 } else {
124 if (!m_out) {
125 m_out = std::make_unique<std::ofstream>(m_out_filename, std::ios_base::app);
126 }
127 return m_out.get();
128 }
129}
130
131}

Callers 2

OFSPtrAllFunction · 0.80
OFSPtrSubFunction · 0.80

Calls 2

emptyMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected