MCPcopy Create free account
hub / github.com/Cantera/cantera / _resize

Method _resize

src/base/SolutionArray.cpp:208–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208void SolutionArray::_resize(size_t size)
209{
210 m_size = size;
211 m_dataSize = size;
212 m_data->resize(m_dataSize * m_stride, 0.);
213 for (auto& [key, data] : *m_extra) {
214 _resizeExtra(key);
215 }
216 m_active.clear();
217 for (size_t i = 0; i < m_dataSize; ++i) {
218 m_active.push_back(static_cast<int>(i));
219 }
220}
221
222namespace { // restrict scope of helper functions to local translation unit
223

Callers

nothing calls this directly

Calls 2

resizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected