Loading src/AbsAdaptiveGrid.h→src/AbsOctree.h +3 −3 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ namespace TNL { namespace Meshes { template< typename Real, typename Device, typename Index > class AbsAdaptiveGrid class AbsOctree { protected: Real m_GridWidth; Loading @@ -22,11 +22,11 @@ protected: StaticArray< 3, Real > m_Origin; public: AbsAdaptiveGrid( const Real gridWidth, const StaticArray< 3, Real >& proportions, const StaticArray< 3, Real >& origin ) AbsOctree( const Real gridWidth, const StaticArray< 3, Real >& proportions, const StaticArray< 3, Real >& origin ) : m_GridWidth( gridWidth ), m_Proportions( proportions ), m_Origin( origin ) {} virtual ~AbsAdaptiveGrid() = default; virtual ~AbsOctree() = default; [[nodiscard]] virtual Index getCellCount() const = 0; Loading src/Benchmark/Benchmark.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ #include <TNL/Containers/StaticArray.h> #include "../LinearOctree/AdaptiveGrid.h" #include "../Octree/AdaptiveGrid.h" #include "../AbsAdaptiveGrid.h" #include "../AbsOctree.h" using namespace TNL::Benchmarks; using namespace TNL::Meshes; Loading @@ -32,7 +32,7 @@ constexpr Index BENCHMARK_VERBOSE = 0; using Device = TNL::Devices::Host; using LinearOcreee = TNL::Meshes::LinearOctree::AdaptiveGrid< Real, TNL::Devices::Host, Index >; using ClassicOctree = TNL::Meshes::Octree::AdaptiveGrid< Real, TNL::Devices::Host, Index >; using AbsOctree = TNL::Meshes::AbsAdaptiveGrid< Real, TNL::Devices::Host, Index >; using AbsOctree = TNL::Meshes::AbsOctree< Real, TNL::Devices::Host, Index >; string benchDir; Loading src/Benchmark/BenchmarkMPI.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ using Device = TNL::Devices::Host; using Real = double; using Index = int; using GridType = LinearOctree::AdaptiveGrid< Real, Device, Index >; using AbsOctree = TNL::Meshes::AbsAdaptiveGrid< Real, TNL::Devices::Host, Index >; using AbsOctree = TNL::Meshes::AbsOctree< Real, TNL::Devices::Host, Index >; constexpr Index TEST_ITERATIONS = 3; Loading Loading @@ -163,7 +163,7 @@ main( int argc, char const* argv[] ) map.refineCell( 0, distribution ); AdaptiveParallelGrid< Real, Device, Index, GridType > globalGrid( map, processId ); TNL::Meshes::AbsAdaptiveGrid< Real, Device, Index >& localGrid = globalGrid.getLocalGrid(); TNL::Meshes::AbsOctree< Real, Device, Index >& localGrid = globalGrid.getLocalGrid(); globalGrid.startUsing(); /* Parallel stuff */ Loading src/LinearOctree/AdaptiveGrid.h +3 −3 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ #include "../GridExporter.h" #include "../ExporterGridEntity.h" #include "../AbsAdaptiveGrid.h" #include "../AbsOctree.h" using namespace TNL::Containers; Loading @@ -34,7 +34,7 @@ namespace Meshes { namespace LinearOctree { template< typename Real, typename Device, typename Index > class AdaptiveGrid : public AbsAdaptiveGrid< Real, Device, Index > class AdaptiveGrid : public AbsOctree< Real, Device, Index > { private: /* ----------------- Private Typedefs ------------------ */ Loading Loading @@ -234,7 +234,7 @@ public: constexpr AdaptiveGrid( const Real gridWidth = 1.0, const StaticArray< 3, Real >& proportions = { 1.0, 1.0, 1.0 }, const StaticArray< 3, Real >& origin = { 0, 0, 0 } ) : AbsAdaptiveGrid< Real, Device, Index >( gridWidth, proportions, origin ) : AbsOctree< Real, Device, Index >( gridWidth, proportions, origin ) { /* Insert root */ Cell< Real, Device, Index > root; Loading src/Octree/AdaptiveGrid.h +3 −3 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ #include "../GridExporter.h" #include "../ExporterGridEntity.h" #include "../AbsAdaptiveGrid.h" #include "../AbsOctree.h" using namespace TNL::Containers; Loading @@ -23,7 +23,7 @@ namespace Meshes { namespace Octree { template< typename Real, typename Device, typename Index > class AdaptiveGrid : public AbsAdaptiveGrid< Real, Device, Index > class AdaptiveGrid : public AbsOctree< Real, Device, Index > { private: /* ----------------- Private Typedefs ------------------ */ Loading Loading @@ -51,7 +51,7 @@ public: AdaptiveGrid( const Real gridWidth = 1.0, const StaticArray< 3, Real >& proportions = { 1.0, 1.0, 1.0 }, const StaticArray< 3, Real >& origin = { 0, 0, 0 } ) : AbsAdaptiveGrid< Real, Device, Index >( gridWidth, proportions, origin ) : AbsOctree< Real, Device, Index >( gridWidth, proportions, origin ) { /* Insert root */ Cell< Real, Device, Index > root; Loading Loading
src/AbsAdaptiveGrid.h→src/AbsOctree.h +3 −3 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ namespace TNL { namespace Meshes { template< typename Real, typename Device, typename Index > class AbsAdaptiveGrid class AbsOctree { protected: Real m_GridWidth; Loading @@ -22,11 +22,11 @@ protected: StaticArray< 3, Real > m_Origin; public: AbsAdaptiveGrid( const Real gridWidth, const StaticArray< 3, Real >& proportions, const StaticArray< 3, Real >& origin ) AbsOctree( const Real gridWidth, const StaticArray< 3, Real >& proportions, const StaticArray< 3, Real >& origin ) : m_GridWidth( gridWidth ), m_Proportions( proportions ), m_Origin( origin ) {} virtual ~AbsAdaptiveGrid() = default; virtual ~AbsOctree() = default; [[nodiscard]] virtual Index getCellCount() const = 0; Loading
src/Benchmark/Benchmark.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ #include <TNL/Containers/StaticArray.h> #include "../LinearOctree/AdaptiveGrid.h" #include "../Octree/AdaptiveGrid.h" #include "../AbsAdaptiveGrid.h" #include "../AbsOctree.h" using namespace TNL::Benchmarks; using namespace TNL::Meshes; Loading @@ -32,7 +32,7 @@ constexpr Index BENCHMARK_VERBOSE = 0; using Device = TNL::Devices::Host; using LinearOcreee = TNL::Meshes::LinearOctree::AdaptiveGrid< Real, TNL::Devices::Host, Index >; using ClassicOctree = TNL::Meshes::Octree::AdaptiveGrid< Real, TNL::Devices::Host, Index >; using AbsOctree = TNL::Meshes::AbsAdaptiveGrid< Real, TNL::Devices::Host, Index >; using AbsOctree = TNL::Meshes::AbsOctree< Real, TNL::Devices::Host, Index >; string benchDir; Loading
src/Benchmark/BenchmarkMPI.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ using Device = TNL::Devices::Host; using Real = double; using Index = int; using GridType = LinearOctree::AdaptiveGrid< Real, Device, Index >; using AbsOctree = TNL::Meshes::AbsAdaptiveGrid< Real, TNL::Devices::Host, Index >; using AbsOctree = TNL::Meshes::AbsOctree< Real, TNL::Devices::Host, Index >; constexpr Index TEST_ITERATIONS = 3; Loading Loading @@ -163,7 +163,7 @@ main( int argc, char const* argv[] ) map.refineCell( 0, distribution ); AdaptiveParallelGrid< Real, Device, Index, GridType > globalGrid( map, processId ); TNL::Meshes::AbsAdaptiveGrid< Real, Device, Index >& localGrid = globalGrid.getLocalGrid(); TNL::Meshes::AbsOctree< Real, Device, Index >& localGrid = globalGrid.getLocalGrid(); globalGrid.startUsing(); /* Parallel stuff */ Loading
src/LinearOctree/AdaptiveGrid.h +3 −3 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ #include "../GridExporter.h" #include "../ExporterGridEntity.h" #include "../AbsAdaptiveGrid.h" #include "../AbsOctree.h" using namespace TNL::Containers; Loading @@ -34,7 +34,7 @@ namespace Meshes { namespace LinearOctree { template< typename Real, typename Device, typename Index > class AdaptiveGrid : public AbsAdaptiveGrid< Real, Device, Index > class AdaptiveGrid : public AbsOctree< Real, Device, Index > { private: /* ----------------- Private Typedefs ------------------ */ Loading Loading @@ -234,7 +234,7 @@ public: constexpr AdaptiveGrid( const Real gridWidth = 1.0, const StaticArray< 3, Real >& proportions = { 1.0, 1.0, 1.0 }, const StaticArray< 3, Real >& origin = { 0, 0, 0 } ) : AbsAdaptiveGrid< Real, Device, Index >( gridWidth, proportions, origin ) : AbsOctree< Real, Device, Index >( gridWidth, proportions, origin ) { /* Insert root */ Cell< Real, Device, Index > root; Loading
src/Octree/AdaptiveGrid.h +3 −3 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ #include "../GridExporter.h" #include "../ExporterGridEntity.h" #include "../AbsAdaptiveGrid.h" #include "../AbsOctree.h" using namespace TNL::Containers; Loading @@ -23,7 +23,7 @@ namespace Meshes { namespace Octree { template< typename Real, typename Device, typename Index > class AdaptiveGrid : public AbsAdaptiveGrid< Real, Device, Index > class AdaptiveGrid : public AbsOctree< Real, Device, Index > { private: /* ----------------- Private Typedefs ------------------ */ Loading Loading @@ -51,7 +51,7 @@ public: AdaptiveGrid( const Real gridWidth = 1.0, const StaticArray< 3, Real >& proportions = { 1.0, 1.0, 1.0 }, const StaticArray< 3, Real >& origin = { 0, 0, 0 } ) : AbsAdaptiveGrid< Real, Device, Index >( gridWidth, proportions, origin ) : AbsOctree< Real, Device, Index >( gridWidth, proportions, origin ) { /* Insert root */ Cell< Real, Device, Index > root; Loading