Skip to content
Snippets Groups Projects
Select Git revision
  • 145e2d9e015c26f23a567d4a8a42467108dda0af
  • develop default protected
  • feature/gmsh-reader
  • origin/stage/bouguettaia
  • feature/kinetic-schemes
  • feature/reconstruction
  • feature/local-dt-fsi
  • feature/composite-scheme-sources
  • feature/composite-scheme-other-fluxes
  • feature/serraille
  • feature/variational-hydro
  • feature/composite-scheme
  • hyperplastic
  • feature/polynomials
  • feature/gks
  • feature/implicit-solver-o2
  • feature/coupling_module
  • feature/implicit-solver
  • feature/merge-local-dt-fsi
  • master protected
  • feature/escobar-smoother
  • v0.5.0 protected
  • v0.4.1 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • v0.2.0 protected
  • v0.1.0 protected
  • Kidder
  • v0.0.4 protected
  • v0.0.3 protected
  • v0.0.2 protected
  • v0 protected
  • v0.0.1 protected
33 results

PugsParser.cpp

Blame
  • NoSplitting.hpp 12.21 KiB
    #ifndef NO_SPLITTING_HPP
    #define NO_SPLITTING_HPP
    
    // --- INCLUSION fichiers headers ---
    
    #include <Kokkos_Core.hpp>
    
    #include <rang.hpp>
    #include <BlockPerfectGas.hpp>
    
    #include <TinyVector.hpp>
    #include <TinyMatrix.hpp>
    #include <Mesh.hpp>
    #include <MeshData.hpp>
    #include <FiniteVolumesEulerUnknowns.hpp>
    
    // ---------------------------------
    
    // Creation classe NoSplitting
    
    template<typename MeshData> 
    class NoSplitting 
    {
      typedef typename MeshData::MeshType MeshType; 
      typedef FiniteVolumesEulerUnknowns<MeshData> UnknownsType; 
    
      MeshData& m_mesh_data; 
      MeshType& m_mesh;
      const typename MeshType::Connectivity& m_connectivity;
    
      constexpr static size_t dimension = MeshType::dimension; 
    
      typedef TinyVector<dimension> Rd; 
      typedef TinyMatrix<dimension> Rdd;
    
    private:
    
      struct ReduceMin
      {
      private:
        const Kokkos::View<const double*> x_;
    
      public:
        typedef Kokkos::View<const double*>::non_const_value_type value_type;
    
        ReduceMin(const Kokkos::View<const double*>& x) : x_ (x) {}
    
        typedef Kokkos::View<const double*>::size_type size_type;
        
        KOKKOS_INLINE_FUNCTION void
        operator() (const size_type i, value_type& update) const
        {
          if (x_(i) < update) {
    	update = x_(i);
          }
        }
    
        KOKKOS_INLINE_FUNCTION void
        join (volatile value_type& dst,
    	  const volatile value_type& src) const
        {
          if (src < dst) {
    	dst = src;
          }
        }
    
        KOKKOS_INLINE_FUNCTION void
        init (value_type& dst) const
        { // The identity under max is -Inf.
          dst= Kokkos::reduction_identity<value_type>::min();