From 385088e21738e81d9ff5409c9aba48e42cd1df41 Mon Sep 17 00:00:00 2001 From: ftomei Date: Fri, 8 Sep 2023 16:34:49 +0200 Subject: [PATCH] update 3d --- DATA/PROJECT/Montue/DATA/crop_Montue.db | Bin 13312 -> 13312 bytes bin/CRITERIA3D/mainwindow.cpp | 10 ++++++---- bin/CRITERIA3D/shared/project3D.cpp | 1 - 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/DATA/PROJECT/Montue/DATA/crop_Montue.db b/DATA/PROJECT/Montue/DATA/crop_Montue.db index 2d3d798e3405e985256ec516ad7a8a2ba95ed1b8..83345401a18d6bd166a42a72a64447213fc3127b 100644 GIT binary patch delta 94 zcmZq3Xvml#&FC{x#+lJ)W5PmdUgmZNW@ZfrW)0?j%<-EAd8C*ppOiPB94{}ab}bDI s>;sZ~FMVA3hk=2?Tvk_7-hzpPQC8OyOiIc#PM#pIFu7gcX_0~m0P)5dbpQYW delta 67 zcmV-J0KETzXn<&t8v#j?976#~v0$Ma4FCWD0|Q?G1IYu217EWd3{eAlayerNrEdit->setMaximum(myProject.nrLayers - 1); ui->layerNrEdit->setValue(1); - float depth = myProject.layerDepth[1]; - ui->layerDepthEdit->setText(QString::number(depth) + " m"); + QString depthStr; + depthStr.sprintf("%04.2f", myProject.layerDepth[1]); + ui->layerDepthEdit->setText(depthStr + " m"); } } } @@ -3042,8 +3043,9 @@ void MainWindow::on_layerNrEdit_valueChanged(int layerIndex) ui->layerNrEdit->setValue(layerIndex); } - float depth = myProject.layerDepth[layerIndex]; - ui->layerDepthEdit->setText(QString::number(depth) + " m"); + QString depthStr; + depthStr.sprintf("%04.2f", myProject.layerDepth[layerIndex]); + ui->layerDepthEdit->setText(depthStr + " m"); if (view3DVariable && current3DlayerIndex != 0) { diff --git a/bin/CRITERIA3D/shared/project3D.cpp b/bin/CRITERIA3D/shared/project3D.cpp index 2938ed940..76b6fcfdc 100644 --- a/bin/CRITERIA3D/shared/project3D.cpp +++ b/bin/CRITERIA3D/shared/project3D.cpp @@ -1042,7 +1042,6 @@ void Project3D::computeWaterBalance3D(double timeStep) { double previousWaterContent = soilFluxes3D::getTotalWaterContent(); logInfo("total water [m^3]: " + QString::number(previousWaterContent)); - logInfo("precipitation [m^3]: " + QString::number(totalPrecipitation)); logInfo("evaporation [m^3]: " + QString::number(-totalEvaporation)); logInfo("transpiration [m^3]: " + QString::number(-totalTranspiration));