Skip to content

Commit

Permalink
Correcting test tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicDirkx committed Dec 19, 2024
1 parent e98ef0a commit 9b196aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ void testObservationPartials(
{
runSimulation = false;
}

// Remove retransmission delay from the retransmitting reference link end: computation of multi-leg light currently doesn't support
// retransmission delays at the reference link end
std::shared_ptr< observation_models::ObservationAncilliarySimulationSettings > modifiedAncilliarySettings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,24 +244,20 @@ BOOST_AUTO_TEST_CASE( test_RadiationPressurePartialsFromEstimation )
if( parameterIndex < 6 )
{
// Modify tolernace for geometrically poor term
if( ( test == 1 && parameterIndex == 3 ) || ( test == 3 && parameterIndex == 4 ) )
if( ( test == 1 && parameterIndex == 3 ) || ( test == 1 && parameterIndex == 6 ) || ( test == 3 && parameterIndex == 4 ) )
{
TUDAT_CHECK_MATRIX_CLOSE_FRACTION( numericalValue, analyticalValue, ( toleranceStates * 20.0 ) );
}
else
{
TUDAT_CHECK_MATRIX_CLOSE_FRACTION( numericalValue, analyticalValue, ( toleranceStates * 2.5 ) );
TUDAT_CHECK_MATRIX_CLOSE_FRACTION( numericalValue, analyticalValue, ( toleranceStates ) );
}
}
else
{
TUDAT_CHECK_MATRIX_CLOSE_FRACTION( numericalValue, analyticalValue, ( toleranceParameter * 5.0 ) );
}

// Eigen::VectorXd ratio = ( numericalValue - analyticalValue ).cwiseQuotient( analyticalValue );
// std::cout<<ratio.segment( 0, 3 ).maxCoeff( )<<" "<<ratio.segment( 3, 3 ).maxCoeff( )<<" "<<ratio( 6 )<<std::endl;
}

}
}

Expand Down

0 comments on commit 9b196aa

Please sign in to comment.