Skip to content

Commit

Permalink
Test working all along
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicDirkx committed Dec 19, 2024
1 parent bbe99a0 commit aaa93f8
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,30 +241,27 @@ BOOST_AUTO_TEST_CASE( test_RadiationPressurePartialsFromEstimation )
numericalValue( parameterIndex ) -= 1.0;
}

std::cout<<analyticalValue.transpose( )<<std::endl;
std::cout<<numericalValue.transpose( )<<std::endl;
std::cout<<( ( analyticalValue - numericalValue ).cwiseQuotient( numericalValue ) ).transpose( )<<std::endl;

if( parameterIndex < 6 )
{
// Modify tolernace for geometrically poor term
if( ( test == 1 && parameterIndex == 3 ) || ( test == 1 && parameterIndex == 6 ) || ( test == 3 && parameterIndex == 4 ) )
if( ( test == 1 && parameterIndex == 3 ) || ( test == 3 && parameterIndex == 4 ) )
{
std::cout<<"Test A "<<( toleranceStates * 20.0 )<<std::endl;
TUDAT_CHECK_MATRIX_CLOSE_FRACTION( numericalValue, analyticalValue, ( toleranceStates * 20.0 ) );
}
else
{
std::cout<<"Test B "<<( toleranceStates )<<std::endl;
TUDAT_CHECK_MATRIX_CLOSE_FRACTION( numericalValue, analyticalValue, ( toleranceStates ) );
}
}
else
{
std::cout<<"Test C "<<( toleranceParameter * 5.0 )<<std::endl;
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 aaa93f8

Please sign in to comment.