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

Create a SubdomainField<> from a vector of Fields<>

parent dc2169e8
No related branches found
No related tags found
1 merge request!19Create a SubdomainField<> from a vector of Fields<>
Pipeline #10099 passed
......@@ -31,6 +31,12 @@ namespace gmshddm
}
}
template< class T_Scalar, gmshfem::field::Form T_Form >
SubdomainField< T_Scalar, T_Form >::SubdomainField(const std::string &name, const std::vector< gmshfem::field::Field< T_Scalar, T_Form > > &fields) :
_name(name), _fields(fields)
{
}
template< class T_Scalar, gmshfem::field::Form T_Form >
SubdomainField< T_Scalar, T_Form >::SubdomainField(const SubdomainField< T_Scalar, T_Form > &other) :
_name(other._name), _fields(other._fields)
......
......@@ -31,6 +31,7 @@ namespace gmshddm
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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment