Skip to content
Snippets Groups Projects
Select Git revision
  • e2dc76af424759e549aac679525db2fffbc0ca6e
  • develop default protected
  • feature/advection
  • feature/composite-scheme-other-fluxes
  • origin/stage/bouguettaia
  • save_clemence
  • feature/local-dt-fsi
  • feature/variational-hydro
  • feature/gmsh-reader
  • feature/reconstruction
  • feature/kinetic-schemes
  • feature/composite-scheme-sources
  • feature/serraille
  • feature/composite-scheme
  • hyperplastic
  • feature/polynomials
  • feature/gks
  • feature/implicit-solver-o2
  • feature/coupling_module
  • feature/implicit-solver
  • feature/merge-local-dt-fsi
  • 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

test_FunctionProcessor.cpp

Blame
  • FreeBoundaryConditionDescriptor.hpp 1.08 KiB
    #ifndef FREE_BOUNDARY_CONDITION_DESCRIPTOR_HPP
    #define FREE_BOUNDARY_CONDITION_DESCRIPTOR_HPP
    
    #include <mesh/IBoundaryDescriptor.hpp>
    #include <scheme/IBoundaryConditionDescriptor.hpp>
    
    #include <memory>
    
    class FreeBoundaryConditionDescriptor : public IBoundaryConditionDescriptor
    {
     private:
      std::ostream&
      _write(std::ostream& os) const final
      {
        os << "free(" << *m_boundary_descriptor << ")";
        return os;
      }
    
      std::shared_ptr<const IBoundaryDescriptor> m_boundary_descriptor;
    
     public:
      const IBoundaryDescriptor&
      boundaryDescriptor() const final
      {
        return *m_boundary_descriptor;
      }
    
      Type
      type() const final
      {
        return Type::free;
      }
    
      FreeBoundaryConditionDescriptor(std::shared_ptr<const IBoundaryDescriptor> boundary_descriptor)
        : m_boundary_descriptor(boundary_descriptor)
      {
        ;
      }
    
      FreeBoundaryConditionDescriptor(const FreeBoundaryConditionDescriptor&) = delete;
      FreeBoundaryConditionDescriptor(FreeBoundaryConditionDescriptor&&)      = delete;
    
      ~FreeBoundaryConditionDescriptor() = default;
    };
    
    #endif   // FREE_BOUNDARY_CONDITION_DESCRIPTOR_HPP