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

Merge branch 'SubdomainFieldFromVectorOfFields' into 'master'

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

See merge request !19
parents 23700b49 0354bc07
No related branches found
No related tags found
1 merge request!19Create a SubdomainField<> from a vector of Fields<>
Pipeline #10102 passed
...@@ -31,6 +31,12 @@ namespace gmshddm ...@@ -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 > template< class T_Scalar, gmshfem::field::Form T_Form >
SubdomainField< T_Scalar, T_Form >::SubdomainField(const SubdomainField< T_Scalar, T_Form > &other) : SubdomainField< T_Scalar, T_Form >::SubdomainField(const SubdomainField< T_Scalar, T_Form > &other) :
_name(other._name), _fields(other._fields) _name(other._name), _fields(other._fields)
......
...@@ -31,6 +31,7 @@ namespace gmshddm ...@@ -31,6 +31,7 @@ namespace gmshddm
public: public:
SubdomainField(); 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 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(const SubdomainField< T_Scalar, T_Form > &other);
SubdomainField(SubdomainField< T_Scalar, T_Form > &&other); SubdomainField(SubdomainField< T_Scalar, T_Form > &&other);
~SubdomainField(); ~SubdomainField();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment