Commit 7c48240d authored by ledig's avatar ledig
Browse files

[FIX] compile in Win, WExcpetion needs specific std::string cast

parent b712ada5
......@@ -150,17 +150,17 @@ double WDataSetSingle::interpolate( wmath::WPosition pos )
// TODO(wiebel): change this to eassert.
if( !grid )
{
throw WException( "This data set has a grid whose type is not yet supported for interpolation." );
throw WException( std::string( "This data set has a grid whose type is not yet supported for interpolation." ) );
}
// TODO(wiebel): change this to eassert.
if( grid->getTransformationMatrix() != wmath::WMatrix<double>( 4, 4 ).makeIdentity() )
{
throw WException( "Only feasible for untranslated grid so far." );
throw WException( std::string( "Only feasible for untranslated grid so far." ) );
}
// TODO(wiebel): change this to eassert.
if( !( m_valueSet->order() == 0 && m_valueSet->dimension() == 1 ) )
{
throw WException( "Only implemented for scalar values so far." );
throw WException( std::string( "Only implemented for scalar values so far." ) );
}
std::vector< size_t > vertexIds = grid->getCellVertexIds( grid->getCellId( pos ) );
......
......@@ -24,6 +24,7 @@
#include <cmath>
#include <vector>
#include <string>
#include "../common/exceptions/WOutOfBounds.h"
#include "../common/math/WLinearAlgebraFunctions.h"
......@@ -293,7 +294,7 @@ size_t WGridRegular3D::getCellId( const wmath::WPosition& pos ) const
// TODO(wiebel): change this to eassert.
if( m_matrix != wmath::WMatrix<double>( 4, 4 ).makeIdentity() )
{
throw WException( "Only feasible for untranslated grid so far." );
throw WException( std::string( "Only feasible for untranslated grid so far." ) );
}
wmath::WPosition posRelativeToOrigin = pos - m_origin;
......
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