Commit 0ee00863 by Stefan Philips

[ADD] Warning for invalid index

parent f87e29ed
......@@ -141,6 +141,7 @@ WSymmetricSphericalHarmonic< double > WDataSetSphericalHarmonics::interpolate( c
WSymmetricSphericalHarmonic< double > WDataSetSphericalHarmonics::getSphericalHarmonicAt( size_t index ) const
{
if( index < m_valueSet->size() ) return WSymmetricSphericalHarmonic< double >( m_valueSet->getWValueDouble( index ) );
wlog::warn( "WDataSetSphericalHarmonics" ) << "Invalid index. Must be smaller than " << m_valueSet->size();
return WSymmetricSphericalHarmonic< double >();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment