From ee50694540d6bfc3f2c52c14c3b26041a5a66925 Mon Sep 17 00:00:00 2001 From: mzh Date: Thu, 7 Nov 2024 16:57:57 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E5=A4=8D=E4=BA=86=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E4=BB=8Ejson=E8=AF=BB=E5=85=A5=E7=9A=84=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E4=BD=BF=E7=94=A8=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CFDStructDataSolverComputingControlManager.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CFDStruct/CFDStructDataManager/CFDStructDataSolverComputingControlManager.cpp b/CFDStruct/CFDStructDataManager/CFDStructDataSolverComputingControlManager.cpp index 251c536..9779f2a 100644 --- a/CFDStruct/CFDStructDataManager/CFDStructDataSolverComputingControlManager.cpp +++ b/CFDStruct/CFDStructDataManager/CFDStructDataSolverComputingControlManager.cpp @@ -35,23 +35,23 @@ void CFDStructDataSolverComputingControlManager::saveDataToDom(rapidjson::Docume void CFDStructDataSolverComputingControlManager::readDataFromDom(rapidjson::Document &dom) { QVariant temp; - jsonAdd(dom, temp, {"couplingSolver", "unSteady", "savedSteps"}); + jsonRead(dom, temp, {"couplingSolver", "unSteady", "savedSteps"}); if (temp != QVariant()) { m_DataSaveFrequency = temp.toInt(); } - jsonAdd(dom, temp, {"couplingSolver", "steady", "savedIters"}); + jsonRead(dom, temp, {"couplingSolver", "steady", "savedIters"}); if (temp != QVariant()) { m_DataSaveFrequency = temp.toInt(); } - jsonAdd(dom, temp, {"couplingSolver", "mpi", "core"}); + jsonRead(dom, temp, {"couplingSolver", "mpi", "core"}); if (temp != QVariant()) { m_NumericalComputationCores = temp.toInt(); } - jsonAdd(dom, temp, {"couplingSolver", "mpi", "on"}); + jsonRead(dom, temp, {"couplingSolver", "mpi", "on"}); if (temp != QVariant()) { m_enableMPI = temp.toInt(); } - jsonAdd(dom, temp, {"couplingSolver", "mpi", "type"}); + jsonRead(dom, temp, {"couplingSolver", "mpi", "type"}); if (temp != QVariant()) { m_mpiLibType = temp.toInt(); }