Skip to content

Commit 2dadb16

Browse files
fix(core): Water depth warning was printed no matter whether it was corrected or not
1 parent d44096a commit 2dadb16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/MoorDyn2.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,9 +1098,10 @@ moordyn::MoorDyn::ReadInFile()
10981098
// node (so water depth input is optional)
10991099
// TODO - this probably doesn't care about 3d seafloor?
11001100
// Note - this is not in MD-F
1101-
if (r0[2] < -env->WtrDpth)
1101+
if (r0[2] < -env->WtrDpth) {
11021102
env->WtrDpth = -r0[2];
11031103
LOGWRN << "\t Water depth set to point " << PointList.size() << " z position because point was specified below the seabed" << endl;
1104+
}
11041105

11051106
LOGDBG << "\t'" << number << "'"
11061107
<< " - of type " << Point::TypeName(type) << " with id "

0 commit comments

Comments
 (0)