Commit c28fd155 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

maxdepth

parent b8db11cc
......@@ -253,7 +253,7 @@ var STWkit;
self.control.showTable();
for (var i = 0; i < coordinates.length; i++)
self.positions.push([coordinates[i][1], coordinates[i][0], self.forcingBoundary.depth(coordinates[i][1], coordinates[i][0])]);
self.positionMaxDepth = self.positions[0][2];
self.positionMaxDepth = Math.floor(self.positions[0][2]);
self.validate();
}
}
......
This diff is collapsed.
......@@ -279,7 +279,7 @@ module STWkit {
self.control.showTable();
for (var i = 0; i < coordinates.length; i++)
self.positions.push([coordinates[i][1], coordinates[i][0], self.forcingBoundary.depth(coordinates[i][1], coordinates[i][0])]);
self.positionMaxDepth = self.positions[0][2];
self.positionMaxDepth = Math.floor(self.positions[0][2]);
self.validate();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment