Commit d4f14988 authored by GILLES Sebastien's avatar GILLES Sebastien

#1443 Modify slightly API of a method: ComputeNumberingSubsetList() now...

#1443 Modify slightly API of a method: ComputeNumberingSubsetList() now returns the reference directly, avoiding to add a line to do this step.
parent ff0b15b8
......@@ -100,9 +100,7 @@ namespace MoReFEM
felt_space_list_ = std::move(a_felt_space_list);
const auto& felt_space_list = GetFEltSpaceList();
ComputeNumberingSubsetList();
decltype(auto) numbering_subset_list = GetNumberingSubsetList();
decltype(auto) numbering_subset_list = ComputeNumberingSubsetList();
output_directory_storage_ =
std::make_unique<Internal::GodOfDofNS::OutputDirectoryStorage>(output_directory,
......@@ -762,7 +760,7 @@ namespace MoReFEM
}
void GodOfDof::ComputeNumberingSubsetList()
const NumberingSubset::vector_const_shared_ptr& GodOfDof::ComputeNumberingSubsetList()
{
const auto& felt_space_list = GetFEltSpaceList();
......@@ -782,6 +780,8 @@ namespace MoReFEM
Utilities::PointerComparison::Equal<NumberingSubset::const_shared_ptr>());
assert(!numbering_subset_list_.empty() && "There must be at least one...");
return numbering_subset_list_;
}
......
......@@ -470,8 +470,10 @@ namespace MoReFEM
/*!
* \brief Iterate through all finite element spaces and compute the list of all numbering subsets.
*
* \return The generated list.
*/
void ComputeNumberingSubsetList();
const NumberingSubset::vector_const_shared_ptr& ComputeNumberingSubsetList();
private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment