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

Merge branch 'handy_size_formulation' into 'master'

get the size of volume and surface formulations in DD Formulation

See merge request !14
parents 82866702 62c90c45
No related branches found
No related tags found
1 merge request!14get the size of volume and surface formulations in DD Formulation
Pipeline #10030 passed
...@@ -257,6 +257,18 @@ namespace gmshddm ...@@ -257,6 +257,18 @@ namespace gmshddm
} }
} }
template< class T_Scalar >
unsigned int Formulation< T_Scalar >::size() const
{
return _volume.size();
}
template< class T_Scalar >
unsigned int Formulation< T_Scalar >::size(unsigned int i) const
{
return _surface.at(i).size();
}
template< class T_Scalar > template< class T_Scalar >
const gmshfem::function::ScalarFunction< T_Scalar > Formulation< T_Scalar >::physicalSource(const gmshfem::function::ScalarFunction< T_Scalar > &f) const gmshfem::function::ScalarFunction< T_Scalar > Formulation< T_Scalar >::physicalSource(const gmshfem::function::ScalarFunction< T_Scalar > &f)
{ {
......
...@@ -58,6 +58,9 @@ namespace gmshddm ...@@ -58,6 +58,9 @@ namespace gmshddm
Formulation(const std::string &name, const std::vector< gmshfem::problem::Formulation< T_Scalar > * > &volume, const std::vector< std::unordered_map< unsigned int, gmshfem::problem::Formulation< T_Scalar > * > > &surface); Formulation(const std::string &name, const std::vector< gmshfem::problem::Formulation< T_Scalar > * > &volume, const std::vector< std::unordered_map< unsigned int, gmshfem::problem::Formulation< T_Scalar > * > > &surface);
~Formulation(); ~Formulation();
unsigned int size() const;
unsigned int size(unsigned int i) const;
const gmshfem::function::ScalarFunction< T_Scalar > physicalSource(const gmshfem::function::ScalarFunction< T_Scalar > &f); const gmshfem::function::ScalarFunction< T_Scalar > physicalSource(const gmshfem::function::ScalarFunction< T_Scalar > &f);
const gmshfem::function::VectorFunction< T_Scalar > physicalSource(const gmshfem::function::VectorFunction< T_Scalar > &f); const gmshfem::function::VectorFunction< T_Scalar > physicalSource(const gmshfem::function::VectorFunction< T_Scalar > &f);
void physicalSourceTerm(const unsigned int termTag); void physicalSourceTerm(const unsigned int termTag);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment