18static const std::vector<std::string> namedFields = { hiceName, ciceName, uName, vName };
19DummyDynamics::DummyDynamics()
24void DummyDynamics::setData(
const ModelState::DataMap& ms)
26 IDynamics::setData(ms);
29 for (
const auto& fieldName : namedFields) {
30 kernel.setData(fieldName, ms.at(fieldName));
34void DummyDynamics::update(
const TimestepTime& tst)
36 kernel.setData(hiceName, hice.data());
37 kernel.setData(ciceName, cice.data());
38 kernel.setData(uName, uice);
39 kernel.setData(vName, vice);
43 hice.data() = kernel.getDG0Data(hiceName);
44 cice.data() = kernel.getDG0Data(ciceName);
45 uice = kernel.getDG0Data(uName);
46 vice = kernel.getDG0Data(vName);