MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / load_vars

Method load_vars

src/solver/solver.cxx:1192–1212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1190}
1191
1192void 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
1214void Solver::load_derivs(BoutReal* udata) {
1215 // Make sure data is allocated

Callers 1

PetscMonitorFunction · 0.80

Calls 1

allocateMethod · 0.80

Tested by

no test coverage detected