| 147 | } |
| 148 | |
| 149 | shared_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 | |
| 161 | void Domain1D::fromArray(const shared_ptr<SolutionArray>& arr) |
| 162 | { |
nothing calls this directly
no test coverage detected