Commit c4e2b1a2 authored by GILLES Sebastien's avatar GILLES Sebastien

#1443 More simplification in GodOfDof: do_consider_proc_wise_local_2_global is...

#1443 More simplification in GodOfDof: do_consider_proc_wise_local_2_global is not needed before the call to FinalizeInitialization().
parent b02a9984
......@@ -164,13 +164,8 @@ namespace MoReFEM
}
void GodOfDof::Init3(DoConsiderProcessorWiseLocal2Global do_consider_proc_wise_local_2_global,
const std::map<unsigned int, std::vector<unsigned int>>& dof_list_per_felt_space)
void GodOfDof::Init3(const std::map<unsigned int, std::vector<unsigned int>>& dof_list_per_felt_space)
{
assert("do_consider_proc_wise_local_2_global_ is only stored in debug mode (in release its value "
"is propagated through arguments) but it is not expected to change in the process" &&
GetDoConsiderProcessorWiseLocal2Global() == do_consider_proc_wise_local_2_global);
const auto& mpi = GetMpi();
const auto rank = mpi.GetRank<unsigned int>();
......
......@@ -556,11 +556,9 @@ namespace MoReFEM
* \internal <b><tt>[internal]</tt></b> This part is compiled.
* \endinternal
*
* \copydetails doxygen_hide_do_consider_processor_wise_local_2_global
* \copydetails doxygen_hide_dof_list_per_felt_space_arg
*/
void Init3(DoConsiderProcessorWiseLocal2Global do_consider_processor_wise_local_2_global,
const std::map<unsigned int, std::vector<unsigned int>>& dof_list_per_felt_space);
void Init3(const std::map<unsigned int, std::vector<unsigned int>>& dof_list_per_felt_space);
/*!
* \brief Init the output directories and the list of \a FEltSpace to consider.
......@@ -578,15 +576,13 @@ namespace MoReFEM
/*!
* \brief The method called by \a Init() for all parallelism strategy save "run_from_preprocessed_data".
*
* \copydetails doxygen_hide_do_consider_processor_wise_local_2_global
* \copydoc doxygen_hide_morefem_data_param
*
* <b>Prerequisite:</b> \a FEltSpace and output directories must have been initialized.
*
*/
template<class MoReFEMDataT>
void StandardInit(const MoReFEMDataT& morefem_data,
DoConsiderProcessorWiseLocal2Global do_consider_processor_wise_local_2_global);
void StandardInit(const MoReFEMDataT& morefem_data);
/*!
......
......@@ -36,8 +36,7 @@ namespace MoReFEM
if constexpr (!MoReFEMDataT::HasParallelismField())
{
assert(morefem_data.GetParallelismPtr() == nullptr);
StandardInit(morefem_data,
do_consider_proc_wise_local_2_global);
StandardInit(morefem_data);
}
else
{
......@@ -52,8 +51,7 @@ namespace MoReFEM
case Advanced::parallelism_strategy::none:
case Advanced::parallelism_strategy::parallel_no_write:
{
StandardInit(morefem_data,
do_consider_proc_wise_local_2_global);
StandardInit(morefem_data);
break;
}
......@@ -101,8 +99,7 @@ namespace MoReFEM
template<class MoReFEMDataT>
void GodOfDof::StandardInit(const MoReFEMDataT& morefem_data,
DoConsiderProcessorWiseLocal2Global do_consider_proc_wise_local_2_global)
void GodOfDof::StandardInit(const MoReFEMDataT& morefem_data)
{
std::map<unsigned int, std::vector<unsigned int>> dof_list_per_felt_space;
......@@ -110,7 +107,7 @@ namespace MoReFEM
Init2(morefem_data);
Init3(do_consider_proc_wise_local_2_global, dof_list_per_felt_space);
Init3(dof_list_per_felt_space);
}
......
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