|
|
@ -33,6 +33,30 @@ void CFDStructDataSolverComputingControlManager::saveDataToDom(rapidjson::Docume
|
|
|
|
jsonAdd(dom, m_mpiLibType, {"couplingSolver", "mpi", "type"});
|
|
|
|
jsonAdd(dom, m_mpiLibType, {"couplingSolver", "mpi", "type"});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CFDStructDataSolverComputingControlManager::readDataFromDom(rapidjson::Document &dom) {
|
|
|
|
|
|
|
|
QVariant temp;
|
|
|
|
|
|
|
|
jsonAdd(dom, temp, {"couplingSolver", "unSteady", "savedSteps"});
|
|
|
|
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
|
|
|
|
m_DataSaveFrequency = temp.toInt();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
jsonAdd(dom, temp, {"couplingSolver", "steady", "savedIters"});
|
|
|
|
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
|
|
|
|
m_DataSaveFrequency = temp.toInt();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
jsonAdd(dom, temp, {"couplingSolver", "mpi", "core"});
|
|
|
|
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
|
|
|
|
m_NumericalComputationCores = temp.toInt();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
jsonAdd(dom, temp, {"couplingSolver", "mpi", "on"});
|
|
|
|
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
|
|
|
|
m_enableMPI = temp.toInt();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
jsonAdd(dom, temp, {"couplingSolver", "mpi", "type"});
|
|
|
|
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
|
|
|
|
m_mpiLibType = temp.toInt();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CUIConfig *CFDStructDataSolverComputingControlManager::genUIConfig() {
|
|
|
|
CUIConfig *CFDStructDataSolverComputingControlManager::genUIConfig() {
|
|
|
|
return new CUIConfig(
|
|
|
|
return new CUIConfig(
|
|
|
|
{
|
|
|
|
{
|
|
|
|