Skip to content
Snippets Groups Projects
Commit 56d9bff9 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Replaced some asserts in examples with NotImplementedError to avoid compiler warnings

parent 823ebd35
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@
#include <TNL/Problems/PDEProblem.h>
#include <TNL/Functions/MeshFunction.h>
#include <TNL/Exceptions/NotImplementedError.h>
#include "CompressibleConservativeVariables.h"
......@@ -85,7 +86,10 @@ class navierStokesProblem:
DofVectorPointer& _fu );
void applyBoundaryConditions( const RealType& time,
DofVectorPointer& dofs ) { TNL_ASSERT( false, "TODO:Implement")};
DofVectorPointer& dofs )
{
throw Exceptions::NotImplementedError("TODO:Implement");
}
template< typename Matrix >
void assemblyLinearSystem( const RealType& time,
......
......@@ -12,6 +12,7 @@
#include <TNL/Problems/PDEProblem.h>
#include <TNL/Functions/MeshFunction.h>
#include <TNL/Exceptions/NotImplementedError.h>
#include "CompressibleConservativeVariables.h"
......@@ -86,7 +87,10 @@ class navierStokesProblem:
DofVectorPointer& _fu );
void applyBoundaryConditions( const RealType& time,
DofVectorPointer& dofs ) { TNL_ASSERT( false, "TODO:Implement")};
DofVectorPointer& dofs )
{
throw Exceptions::NotImplementedError("TODO:Implement");
}
template< typename Matrix >
void assemblyLinearSystem( const RealType& time,
......
......@@ -12,6 +12,7 @@
#include <TNL/Problems/PDEProblem.h>
#include <TNL/Functions/MeshFunction.h>
#include <TNL/Exceptions/NotImplementedError.h>
#include "CompressibleConservativeVariables.h"
......@@ -86,7 +87,10 @@ class navierStokesProblem:
DofVectorPointer& _fu );
void applyBoundaryConditions( const RealType& time,
DofVectorPointer& dofs ) { TNL_ASSERT( false, "TODO:Implement")};
DofVectorPointer& dofs )
{
throw Exceptions::NotImplementedError("TODO:Implement");
}
template< typename Matrix >
void assemblyLinearSystem( const RealType& time,
......
......@@ -12,6 +12,7 @@
#include <TNL/Problems/PDEProblem.h>
#include <TNL/Functions/MeshFunction.h>
#include <TNL/Exceptions/NotImplementedError.h>
#include "CompressibleConservativeVariables.h"
......@@ -86,7 +87,10 @@ class eulerProblem:
DofVectorPointer& _fu );
void applyBoundaryConditions( const RealType& time,
DofVectorPointer& dofs ) { TNL_ASSERT( false, "TODO:Implement")};
DofVectorPointer& dofs )
{
throw Exceptions::NotImplementedError( "TODO: implement BC ... see HeatEquationProblem" );
}
template< typename Matrix >
void assemblyLinearSystem( const RealType& time,
......
......@@ -12,6 +12,7 @@
#include <TNL/Problems/PDEProblem.h>
#include <TNL/Functions/MeshFunction.h>
#include <TNL/Exceptions/NotImplementedError.h>
#include "CompressibleConservativeVariables.h"
......@@ -86,7 +87,10 @@ class eulerProblem:
DofVectorPointer& _fu );
void applyBoundaryConditions( const RealType& time,
DofVectorPointer& dofs ) { TNL_ASSERT( false, "TODO:Implement")};
DofVectorPointer& dofs )
{
throw Exceptions::NotImplementedError( "TODO: implement BC ... see HeatEquationProblem" );
}
template< typename Matrix >
void assemblyLinearSystem( const RealType& time,
......
......@@ -16,6 +16,7 @@
#include <TNL/Solvers/PDE/LinearSystemAssembler.h>
#include <TNL/Solvers/PDE/BackwardTimeDiscretisation.h>
#include <TNL/Functions/Analytic/VectorNorm.h>
#include <TNL/Exceptions/NotImplementedError.h>
#include "RiemannProblemInitialCondition.h"
#include "CompressibleConservativeVariables.h"
......@@ -320,8 +321,7 @@ applyBoundaryConditions( const RealType& time,
DofVectorPointer& dofs )
{
this->bindDofs( dofs );
TNL_ASSERT( false, "TODO: implement BC ... see HeatEquationProblem" );
throw Exceptions::NotImplementedError( "TODO: implement BC ... see HeatEquationProblem" );
}
template< typename Mesh,
......
......@@ -15,6 +15,7 @@
#include <TNL/Solvers/PDE/ExplicitUpdater.h>
#include <TNL/Solvers/PDE/LinearSystemAssembler.h>
#include <TNL/Solvers/PDE/BackwardTimeDiscretisation.h>
#include <TNL/Exceptions/NotImplementedError.h>
#include "transportEquationProblem.h"
......@@ -223,7 +224,7 @@ applyBoundaryConditions( const RealType& time,
DofVectorPointer& dofs )
{
this->bindDofs( dofs );
TNL_ASSERT( false, "TODO: implement BC ... see HeatEquationProblem" );
throw Exceptions::NotImplementedError("TODO: implement BC ... see HeatEquationProblem");
}
template< typename Mesh,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment