1、修复了数据从json读入的函数使用错误

feature/struct-menu-20241023
mzh 1 week ago
parent cf82571cae
commit ee50694540

@ -35,23 +35,23 @@ void CFDStructDataSolverComputingControlManager::saveDataToDom(rapidjson::Docume
void CFDStructDataSolverComputingControlManager::readDataFromDom(rapidjson::Document &dom) { void CFDStructDataSolverComputingControlManager::readDataFromDom(rapidjson::Document &dom) {
QVariant temp; QVariant temp;
jsonAdd(dom, temp, {"couplingSolver", "unSteady", "savedSteps"}); jsonRead(dom, temp, {"couplingSolver", "unSteady", "savedSteps"});
if (temp != QVariant()) { if (temp != QVariant()) {
m_DataSaveFrequency = temp.toInt(); m_DataSaveFrequency = temp.toInt();
} }
jsonAdd(dom, temp, {"couplingSolver", "steady", "savedIters"}); jsonRead(dom, temp, {"couplingSolver", "steady", "savedIters"});
if (temp != QVariant()) { if (temp != QVariant()) {
m_DataSaveFrequency = temp.toInt(); m_DataSaveFrequency = temp.toInt();
} }
jsonAdd(dom, temp, {"couplingSolver", "mpi", "core"}); jsonRead(dom, temp, {"couplingSolver", "mpi", "core"});
if (temp != QVariant()) { if (temp != QVariant()) {
m_NumericalComputationCores = temp.toInt(); m_NumericalComputationCores = temp.toInt();
} }
jsonAdd(dom, temp, {"couplingSolver", "mpi", "on"}); jsonRead(dom, temp, {"couplingSolver", "mpi", "on"});
if (temp != QVariant()) { if (temp != QVariant()) {
m_enableMPI = temp.toInt(); m_enableMPI = temp.toInt();
} }
jsonAdd(dom, temp, {"couplingSolver", "mpi", "type"}); jsonRead(dom, temp, {"couplingSolver", "mpi", "type"});
if (temp != QVariant()) { if (temp != QVariant()) {
m_mpiLibType = temp.toInt(); m_mpiLibType = temp.toInt();
} }

Loading…
Cancel
Save