From d0bdf8f004e2e7b1590075f9a168cb650db4e102 Mon Sep 17 00:00:00 2001 From: Jose Luis Cercos-Pita Date: Mon, 4 Nov 2024 13:31:44 +0100 Subject: [PATCH] fix(core): Water depth warning was printed no matter whether it was corrected or not --- source/MoorDyn2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/MoorDyn2.cpp b/source/MoorDyn2.cpp index 5c90ff6f..80188bcd 100644 --- a/source/MoorDyn2.cpp +++ b/source/MoorDyn2.cpp @@ -1098,9 +1098,10 @@ moordyn::MoorDyn::ReadInFile() // node (so water depth input is optional) // TODO - this probably doesn't care about 3d seafloor? // Note - this is not in MD-F - if (r0[2] < -env->WtrDpth) + if (r0[2] < -env->WtrDpth) { env->WtrDpth = -r0[2]; LOGWRN << "\t Water depth set to point " << PointList.size() << " z position because point was specified below the seabed" << endl; + } LOGDBG << "\t'" << number << "'" << " - of type " << Point::TypeName(type) << " with id "