Skip to content
Snippets Groups Projects
Commit 23700b49 authored by Anthony Royer's avatar Anthony Royer
Browse files

Merge branch 'SizeOfSubdomainField' into 'master'

Get number of subfields in a SubdomainField

See merge request !20
parents dc2169e8 1b16d2ed
No related branches found
No related tags found
1 merge request!20Get number of subfields in a SubdomainField
Pipeline #10101 passed
...@@ -62,6 +62,12 @@ namespace gmshddm ...@@ -62,6 +62,12 @@ namespace gmshddm
return T_Form; return T_Form;
} }
template< class T_Scalar, gmshfem::field::Form T_Form >
unsigned long long SubdomainField< T_Scalar, T_Form >::size() const
{
return _fields.size();
}
template< class T_Scalar, gmshfem::field::Form T_Form > template< class T_Scalar, gmshfem::field::Form T_Form >
const gmshfem::field::Field< T_Scalar, T_Form > &SubdomainField< T_Scalar, T_Form >::operator()(const unsigned int i) const const gmshfem::field::Field< T_Scalar, T_Form > &SubdomainField< T_Scalar, T_Form >::operator()(const unsigned int i) const
{ {
......
...@@ -38,6 +38,7 @@ namespace gmshddm ...@@ -38,6 +38,7 @@ namespace gmshddm
SubdomainField &operator=(const SubdomainField< T_Scalar, T_Form > &other); SubdomainField &operator=(const SubdomainField< T_Scalar, T_Form > &other);
gmshfem::field::Form form() const; gmshfem::field::Form form() const;
unsigned long long size() const;
const gmshfem::field::Field< T_Scalar, T_Form > &operator()(const unsigned int i) 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); gmshfem::field::Field< T_Scalar, T_Form > &operator()(const unsigned int i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment