Skip to content
Snippets Groups Projects
Select Git revision
  • a848b86090f00df3c780ede83f6955ec0ef90fdf
  • master default protected
  • alphashapes
  • quadMeshingTools
  • cygwin_conv_path
  • macos_arm64
  • add-transfiniteautomatic-to-geo
  • patch_releases_4_10
  • HierarchicalHDiv
  • isuruf-master-patch-63355
  • hyperbolic
  • hexdom
  • hxt_update
  • jf
  • 1618-pythonocc-and-gmsh-api-integration
  • octreeSizeField
  • hexbl
  • alignIrregularVertices
  • getEdges
  • patch_releases_4_8
  • isuruf-master-patch-51992
  • gmsh_4_11_0
  • gmsh_4_10_5
  • gmsh_4_10_4
  • gmsh_4_10_3
  • gmsh_4_10_2
  • gmsh_4_10_1
  • gmsh_4_10_0
  • gmsh_4_9_5
  • gmsh_4_9_4
  • gmsh_4_9_3
  • gmsh_4_9_2
  • gmsh_4_9_1
  • gmsh_4_9_0
  • gmsh_4_8_4
  • gmsh_4_8_3
  • gmsh_4_8_2
  • gmsh_4_8_1
  • gmsh_4_8_0
  • gmsh_4_7_1
  • gmsh_4_7_0
41 results

gmshc.h

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    SubdomainField.h 1.52 KiB
    // GmshDDM - Copyright (C) 2019-2022, A. Royer, C. Geuzaine, Université de Liège
    //
    // See the LICENSE.txt file for license information. Please report all
    // issues on https://gitlab.onelab.info/gmsh/ddm/issues
    
    #ifndef H_GMSHDDM_SUBDOMAINFIELD
    #define H_GMSHDDM_SUBDOMAINFIELD
    
    #include "Subdomain.h"
    
    #include <gmshfem/FieldInterface.h>
    #include <string>
    #include <vector>
    
    
    namespace gmshddm
    {
    
    
      namespace field
      {
    
    
        template< class T_Scalar, gmshfem::field::Form T_Form >
        class SubdomainField
        {
         private:
          std::string _name;
          std::vector< gmshfem::field::Field< T_Scalar, T_Form > > _fields;
    
         public:
          SubdomainField();
          SubdomainField(const std::string &name, const domain::Subdomain &domains, const gmshfem::field::FunctionSpaceOfForm< T_Form > &type, const unsigned int degree = 1);
          SubdomainField(const std::string &name, const std::vector< gmshfem::field::Field< T_Scalar, T_Form > > &fields);
          SubdomainField(const SubdomainField< T_Scalar, T_Form > &other);
          SubdomainField(SubdomainField< T_Scalar, T_Form > &&other);
          ~SubdomainField();
    
          SubdomainField &operator=(const SubdomainField< T_Scalar, T_Form > &other);
    
          gmshfem::field::Form form() const;
          unsigned long long size() const;
    
          const gmshfem::field::Field< T_Scalar, T_Form > &operator()(const unsigned int i) const;
          gmshfem::field::Field< T_Scalar, T_Form > &operator()(const unsigned int i);
        };
    
    
      } // namespace field
    
    
    } // namespace gmshddm
    
    
    #endif // H_GMSHDDM_SUBDOMAINFIELD