Skip to content
Snippets Groups Projects
Commit 1b16d2ed authored by Nicolas Marsic's avatar Nicolas Marsic
Browse files

get number of subfields in a SubdomainField

parent dc2169e8
No related branches found
No related tags found
1 merge request!20Get number of subfields in a SubdomainField
Pipeline #10100 passed
......@@ -62,6 +62,12 @@ namespace gmshddm
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 >
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
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment