| 1190 | } |
| 1191 | |
| 1192 | void Solver::load_vars(BoutReal* udata) { |
| 1193 | // Make sure data is allocated |
| 1194 | for (const auto& f : f2d) { |
| 1195 | f.var->allocate(); |
| 1196 | } |
| 1197 | for (const auto& f : f3d) { |
| 1198 | f.var->allocate(); |
| 1199 | f.var->setLocation(f.location); |
| 1200 | } |
| 1201 | |
| 1202 | loop_vars(udata, SOLVER_VAR_OP::LOAD_VARS); |
| 1203 | |
| 1204 | // Mark each vector as either co- or contra-variant |
| 1205 | |
| 1206 | for (const auto& v : v2d) { |
| 1207 | v.var->covariant = v.covariant; |
| 1208 | } |
| 1209 | for (const auto& v : v3d) { |
| 1210 | v.var->covariant = v.covariant; |
| 1211 | } |
| 1212 | } |
| 1213 | |
| 1214 | void Solver::load_derivs(BoutReal* udata) { |
| 1215 | // Make sure data is allocated |
no test coverage detected