Loading src/TNL/Experimental/Hamilton-Jacobi/Solvers/CMakeLists.txt +1 −1 Original line number Diff line number Diff line ADD_SUBDIRECTORY( hamilton-jacobi ) #ADD_SUBDIRECTORY( hamilton-jacobi ) src/TNL/Experimental/Hamilton-Jacobi/Solvers/hamilton-jacobi/tnlDirectEikonalProblem.h +2 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,8 @@ class tnlDirectEikonalProblem using DofVectorPointer = SharedPointer< DofVectorType >; using MeshDependentDataPointer = SharedPointer< MeshDependentDataType >; static constexpr bool isTimeDependent() { return false; }; static String getTypeStatic(); String getPrologHeader() const; Loading src/TNL/Experimental/Hamilton-Jacobi/Solvers/hamilton-jacobi/tnlDirectEikonalProblem_impl.h +1 −1 Original line number Diff line number Diff line Loading @@ -123,5 +123,5 @@ solve( const MeshPointer& mesh, DofVectorPointer& dofs ) { tnlFastSweepingMethod< MeshType, AnisotropyType > fsm; return fsm.solve( mesh, anisotropy, initialData ); //return fsm.solve( mesh, anisotropy, initialData ); } src/TNL/Problems/PDEProblem.h +3 −3 Original line number Diff line number Diff line Loading @@ -13,6 +13,7 @@ #include <TNL/Problems/Problem.h> #include <TNL/SharedPointer.h> #include <TNL/Matrices/SlicedEllpack.h> #include <TNL/Solvers/PDE/TimeDependentPDESolver.h> namespace TNL { namespace Problems { Loading @@ -38,14 +39,13 @@ class PDEProblem : public Problem< Real, Device, Index > typedef Containers::Vector< RealType, DeviceType, IndexType > MeshDependentDataType; typedef SharedPointer< MeshDependentDataType, DeviceType > MeshDependentDataPointer; static constexpr bool isTimeDependent() { return true; }; /**** * This means that the time stepper will be set from the command line arguments. */ typedef void TimeStepper; template< typename TimeStepper_ > using PDESolverType = Solvers::PDE::TimeDependentPDESolver< Problem, TimeStepper_ >; static String getTypeStatic(); String getPrologHeader() const; Loading src/TNL/Solvers/DummyProblem.h +5 −0 Original line number Diff line number Diff line Loading @@ -30,7 +30,12 @@ class DummyProblem typedef Containers::Vector< Real, Device, Index > DofVectorType; typedef Meshes::Grid< 1, Real, Device, Index > MeshType; typedef DofVectorType MeshDependentDataType; static constexpr bool isTimeDependent(){ return true; }; }; class DummySolver {}; } // namespace Solvers } // namespace TNL Loading
src/TNL/Experimental/Hamilton-Jacobi/Solvers/CMakeLists.txt +1 −1 Original line number Diff line number Diff line ADD_SUBDIRECTORY( hamilton-jacobi ) #ADD_SUBDIRECTORY( hamilton-jacobi )
src/TNL/Experimental/Hamilton-Jacobi/Solvers/hamilton-jacobi/tnlDirectEikonalProblem.h +2 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,8 @@ class tnlDirectEikonalProblem using DofVectorPointer = SharedPointer< DofVectorType >; using MeshDependentDataPointer = SharedPointer< MeshDependentDataType >; static constexpr bool isTimeDependent() { return false; }; static String getTypeStatic(); String getPrologHeader() const; Loading
src/TNL/Experimental/Hamilton-Jacobi/Solvers/hamilton-jacobi/tnlDirectEikonalProblem_impl.h +1 −1 Original line number Diff line number Diff line Loading @@ -123,5 +123,5 @@ solve( const MeshPointer& mesh, DofVectorPointer& dofs ) { tnlFastSweepingMethod< MeshType, AnisotropyType > fsm; return fsm.solve( mesh, anisotropy, initialData ); //return fsm.solve( mesh, anisotropy, initialData ); }
src/TNL/Problems/PDEProblem.h +3 −3 Original line number Diff line number Diff line Loading @@ -13,6 +13,7 @@ #include <TNL/Problems/Problem.h> #include <TNL/SharedPointer.h> #include <TNL/Matrices/SlicedEllpack.h> #include <TNL/Solvers/PDE/TimeDependentPDESolver.h> namespace TNL { namespace Problems { Loading @@ -38,14 +39,13 @@ class PDEProblem : public Problem< Real, Device, Index > typedef Containers::Vector< RealType, DeviceType, IndexType > MeshDependentDataType; typedef SharedPointer< MeshDependentDataType, DeviceType > MeshDependentDataPointer; static constexpr bool isTimeDependent() { return true; }; /**** * This means that the time stepper will be set from the command line arguments. */ typedef void TimeStepper; template< typename TimeStepper_ > using PDESolverType = Solvers::PDE::TimeDependentPDESolver< Problem, TimeStepper_ >; static String getTypeStatic(); String getPrologHeader() const; Loading
src/TNL/Solvers/DummyProblem.h +5 −0 Original line number Diff line number Diff line Loading @@ -30,7 +30,12 @@ class DummyProblem typedef Containers::Vector< Real, Device, Index > DofVectorType; typedef Meshes::Grid< 1, Real, Device, Index > MeshType; typedef DofVectorType MeshDependentDataType; static constexpr bool isTimeDependent(){ return true; }; }; class DummySolver {}; } // namespace Solvers } // namespace TNL