Skip to content

Commit

Permalink
update 3d
Browse files Browse the repository at this point in the history
  • Loading branch information
ftomei committed Sep 8, 2023
1 parent 0242f34 commit 385088e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Binary file modified DATA/PROJECT/Montue/DATA/crop_Montue.db
Binary file not shown.
10 changes: 6 additions & 4 deletions bin/CRITERIA3D/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2150,8 +2150,9 @@ void MainWindow::on_actionCriteria3D_Initialize_triggered()
ui->layerNrEdit->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");
}
}
}
Expand Down Expand Up @@ -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)
{
Expand Down
1 change: 0 additions & 1 deletion bin/CRITERIA3D/shared/project3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 385088e

Please sign in to comment.