Commit dc161772 authored by GILLES Sebastien's avatar GILLES Sebastien

#1443 Remove an unused GodOfDof method.

parent 91279de9
......@@ -616,10 +616,6 @@ namespace MoReFEM
template<class MoReFEMDataT>
void FromPreprocessedInit(const MoReFEMDataT& morefem_data,
DoConsiderProcessorWiseLocal2Global do_consider_proc_wise_local_2_global);
void FromPreprocessedInit(LuaOptionFile& god_of_dof_prepartioned_data,
DoConsiderProcessorWiseLocal2Global do_consider_proc_wise_local_2_global,
const Internal::Parallelism* parallelism);
......
......@@ -100,45 +100,6 @@ namespace MoReFEM
}
template<class MoReFEMDataT>
void GodOfDof::FromPreprocessedInit(const MoReFEMDataT& morefem_data,
DoConsiderProcessorWiseLocal2Global do_consider_proc_wise_local_2_global)
{
static_cast<void>(morefem_data);
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);
namespace ipl = Utilities::InputDataNS;
decltype(auto) prepartitioned_data_dir_str =
ipl::Extract<InputDataNS::Parallelism::Directory>::Path(morefem_data.GetInputData());
decltype(auto) mpi = GetMpi();
FilesystemNS::Directory prepartitioned_data_dir(mpi,
prepartitioned_data_dir_str,
FilesystemNS::behaviour::read,
__FILE__, __LINE__);
FilesystemNS::Directory mesh_subdir(prepartitioned_data_dir,
"Mesh_" + std::to_string(GetUniqueId()),
__FILE__, __LINE__);
const auto god_of_dof_prepartitioned_data_file = mesh_subdir.AddFile("god_of_dof.hhdata");
LuaOptionFile god_of_dof_prepartitioned_data(god_of_dof_prepartitioned_data_file, __FILE__, __LINE__);
FromPreprocessedInit(god_of_dof_prepartitioned_data,
do_consider_proc_wise_local_2_global);
// \todo Sort the nodes to distinguish processor-wise and ghosts!
throw ExceptionNS::GracefulExit(__FILE__, __LINE__); // TMP #1443
}
template<class MoReFEMDataT>
void GodOfDof::StandardInit(const MoReFEMDataT& morefem_data,
DoConsiderProcessorWiseLocal2Global do_consider_proc_wise_local_2_global)
......
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