Skip to content

Commit a5aacc3

Browse files
committed
fix: added more debug messages to polyester test for windows compatibility
1 parent 1bce742 commit a5aacc3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/polyester.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ TEST_CASE("Visco-elastic testing")
206206
std::fill(dr, dr + 3, 0.0);
207207
REQUIRE(MoorDyn_Init(system, r, dr) == MOORDYN_SUCCESS);
208208

209+
// check the system is still not null
210+
REQUIRE(system);
211+
209212
// Read the csv with the motions
210213
std::ifstream csv("Mooring/polyester/viscoelastic/visco_motion.csv");
211214
aria::csv::CsvParser csv_parser(csv);
@@ -243,6 +246,10 @@ TEST_CASE("Visco-elastic testing")
243246
double x_dst = xdata.at(i);
244247
dr[0] = (x_dst - r[0]) / dt;
245248
double f[3];
249+
// info for if it fails
250+
INFO("Time " << t);
251+
INFO("r: [" << r[0] << ", " << r[1] << ", " << r[2] << "], dr: [" << dr[0] << ", " << dr[1] << ", " << dr[2] << "]");
252+
REQUIRE(system);
246253
REQUIRE(MoorDyn_Step(system, r, dr, f, &t, &dt) == MOORDYN_SUCCESS);
247254
times.push_back(t);
248255
double ten;

0 commit comments

Comments
 (0)