Commit 9a50ce52 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Moved saveFailedLinearSystem to PDEProblem and added default implementation

parent 71ceb5b3
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -96,11 +96,6 @@ public PDEProblem< Mesh,
                                 DofVectorPointer& rightHandSide,
                                 MeshDependentDataPointer& meshDependentData );

      template< typename Matrix >
      void saveFailedLinearSystem( const Matrix& matrix,
                                   const DofVectorType& dofs,
                                   const DofVectorType& rightHandSide ) const;

   protected:

      MeshFunctionPointer uPointer;
+0 −13
Original line number Diff line number Diff line
@@ -223,17 +223,4 @@ assemblyLinearSystem( const RealType& time,
{
}

template< typename Mesh,
          typename BoundaryCondition,
          typename RightHandSide,
          typename DifferentialOperator >
    template< typename Matrix >
void
transportEquationProblem< Mesh, BoundaryCondition, RightHandSide, DifferentialOperator >::
saveFailedLinearSystem( const Matrix& matrix,
                        const DofVectorType& dofs,
                        const DofVectorType& rightHandSide ) const
{
}

} // namespace TNL
+0 −5
Original line number Diff line number Diff line
@@ -108,11 +108,6 @@ class HeatEquationProblem : public PDEProblem< Mesh,
                                 DofVectorPointer& rightHandSidePointer,
                                 MeshDependentDataPointer& meshDependentData );

      template< typename Matrix >
      void saveFailedLinearSystem( const Matrix& matrix,
                                   const DofVectorType& dofs,
                                   const DofVectorType& rightHandSide ) const;

      protected:
         
         MeshFunctionPointer uPointer;
+0 −13
Original line number Diff line number Diff line
@@ -250,18 +250,5 @@ assemblyLinearSystem( const RealType& time,
      bPointer );
}

template< typename Mesh,
          typename BoundaryCondition,
          typename RightHandSide,
          typename DifferentialOperator >
    template< typename Matrix >
void
HeatEquationProblem< Mesh, BoundaryCondition, RightHandSide, DifferentialOperator >::
saveFailedLinearSystem( const Matrix& matrix,
                        const DofVectorType& dofs,
                        const DofVectorType& rightHandSide ) const
{
}

} // namespace Problems
} // namespace TNL
+0 −5
Original line number Diff line number Diff line
@@ -97,11 +97,6 @@ class MeanCurvatureFlowProblem : public PDEProblem< Mesh,
                                 DofVectorType& rightHandSide,
                                 MeshDependentDataPointer& meshDependentData );

      template< typename Matrix >
      void saveFailedLinearSystem( const Matrix& matrix,
                                   const DofVectorType& dofs,
                                   const DofVectorType& rightHandSide ) const;

      protected:

      SharedVector< RealType, DeviceType, IndexType > solution;
Loading