Commit 9934aee5 authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#531 Renaming.

parent a2a64858
......@@ -550,12 +550,15 @@ namespace HappyHeart
{
auto& elementary_data = local_operator.GetNonCstElementaryData();
auto& local_matrix = elementary_data.GetNonCstMatrixResult();
const auto& unknown = local_operator.GetUnknown();
const auto& unknown_and_numbering_subset = elementary_data.GetRefFElt(unknown).GetUnknownAndNumberingSubset();
const auto& local2global = local_felt_space.GetFiniteElt(unknown_and_numbering_subset).template GetLocal2Global<MpiScale::program_wise>();
auto& local_matrix = elementary_data.GetNonCstMatrixResult();
// Private::ReportValuesInGlobalMatrix531(linear_algebra_tuple);
// auto& global_matrix = global_linear_algebra.first;
// Private::ReportValuesInGlobalMatrix(local_matrix, global_linear_algebra.second, local2global, local2global, global_matrix);
......
......@@ -26,12 +26,14 @@ namespace HappyHeart
template<class LinearAlgebraTupleT, std::size_t I, std::size_t TupleSizeT>
struct Assembly531
struct Recursivity
{
using current_type = typename std::tuple_element<I, LinearAlgebraTupleT>::type;
static void Perform(const LinearAlgebraTupleT& linear_algebra_tuple);
static void Assembly531(const LinearAlgebraTupleT& linear_algebra_tuple);
};
......@@ -39,11 +41,11 @@ namespace HappyHeart
template<class LinearAlgebraTupleT, std::size_t TupleSizeT>
struct Assembly531<LinearAlgebraTupleT, TupleSizeT, TupleSizeT>
struct Recursivity<LinearAlgebraTupleT, TupleSizeT, TupleSizeT>
{
static void Perform(const LinearAlgebraTupleT& linear_algebra_tuple);
static void Assembly531(const LinearAlgebraTupleT& linear_algebra_tuple);
};
......
......@@ -23,21 +23,21 @@ namespace HappyHeart
template<class LinearAlgebraTupleT, std::size_t I, std::size_t TupleSizeT>
void Assembly531<LinearAlgebraTupleT, I, TupleSizeT>
::Perform(const LinearAlgebraTupleT& linear_algebra_tuple)
void Recursivity<LinearAlgebraTupleT, I, TupleSizeT>
::Assembly531(const LinearAlgebraTupleT& linear_algebra_tuple)
{
static_assert(I < TupleSizeT, "Otherwise endless recursion!");
auto& current_linear_algebra = std::get<I>(linear_algebra_tuple).first;
current_linear_algebra.Assembly(__FILE__, __LINE__);
Assembly531<LinearAlgebraTupleT, I + 1, TupleSizeT>::Perform(linear_algebra_tuple);
Recursivity<LinearAlgebraTupleT, I + 1, TupleSizeT>::Assembly531(linear_algebra_tuple);
}
template<class LinearAlgebraTupleT, std::size_t TupleSizeT>
void Assembly531<LinearAlgebraTupleT, TupleSizeT, TupleSizeT>
::Perform(const LinearAlgebraTupleT& linear_algebra_tuple)
void Recursivity<LinearAlgebraTupleT, TupleSizeT, TupleSizeT>
::Assembly531(const LinearAlgebraTupleT& linear_algebra_tuple)
{
// End recursion.
}
......
......@@ -22,8 +22,8 @@ namespace HappyHeart
void Assembly531(const LinearAlgebraTupleT& linear_algebra_tuple)
{
Impl::Assembly531<LinearAlgebraTupleT, 0, std::tuple_size<LinearAlgebraTupleT>::value>
::Perform(linear_algebra_tuple);
Impl::Recursivity<LinearAlgebraTupleT, 0, std::tuple_size<LinearAlgebraTupleT>::value>
::Assembly531(linear_algebra_tuple);
}
......
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