Closed cconvey closed 3 months ago
I think you need to build USML in Debug mode to see this runtime error.
Boost checks the runtime value of these indices via its BOOST_UBLAS_CHECK
macro, which is enabled in pretty much the same circumstances as C++'s assert
macro.
Fixed in pull request #226 Import changes from GUWA project.
Using a Debug build of USML, the
rvbts_test
produced the following error output:One aspect of the problem is found on this line:
https://github.com/campreilly/UnderSeaModelingLibrary/blob/226e335b1c17df66af9122b0c9111edc2065a0e5/rvbts/rvbts_collection.cc#L122
When the problem occurs,
n
andfirst
both have the value0
. Because the expression has type unsigned long,t
's value becomes18446744073709551615
(i.e., the value produced by0ul - 1
).