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

Method toArray

src/oneD/Domain1D.cpp:149–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149shared_ptr<SolutionArray> Domain1D::toArray(bool normalize) const {
150 if (!m_state) {
151 throw CanteraError("Domain1D::toArray",
152 "Domain needs to be installed in a container before calling asArray.");
153 }
154 auto ret = asArray(m_state->data() + m_iloc);
155 if (normalize) {
156 ret->normalize();
157 }
158 return ret;
159}
160
161void Domain1D::fromArray(const shared_ptr<SolutionArray>& arr)
162{

Callers

nothing calls this directly

Calls 2

CanteraErrorClass · 0.85
normalizeMethod · 0.80

Tested by

no test coverage detected