From 82c5839e3a613fbef2183a0776566e96a8c1bd37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu> Date: Wed, 7 Sep 2022 12:23:03 +0200 Subject: [PATCH] Close file once it-s done --- ...t_simulation_problem_force_torque_inertial_dynamics.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/gtest_simulation_problem_force_torque_inertial_dynamics.cpp b/test/gtest_simulation_problem_force_torque_inertial_dynamics.cpp index 3cf239a..bcad107 100644 --- a/test/gtest_simulation_problem_force_torque_inertial_dynamics.cpp +++ b/test/gtest_simulation_problem_force_torque_inertial_dynamics.cpp @@ -356,15 +356,16 @@ TEST_F(Test_SimulationProblemForceTorqueInertialDynamics_yaml, preintegration_an << "\n"; } + fout.close(); } TEST_F(Test_SimulationProblemForceTorqueInertialDynamics_yaml, simulation) { // Calibration params - Vector6d bias_guess = S->getStateBlock('I')->getState(); - Vector3d cdm_guess = S->getStateBlock('C')->getState(); + Vector6d bias_guess = S->getStateBlock('I')->getState(); + Vector3d cdm_guess = S->getStateBlock('C')->getState(); Vector3d inertia_guess = S->getStateBlock('i')->getState(); - double mass_guess = S->getStateBlock('m')->getState()(0); + double mass_guess = S->getStateBlock('m')->getState()(0); S->getStateBlock('P')->fix(); S->getStateBlock('O')->fix(); -- GitLab