Commit 9fdd145e authored by GILLES Sebastien's avatar GILLES Sebastien

#1531 FromVertexMatching model: write prepartitioned data related to the operator.

parent 8d458883
......@@ -31,11 +31,33 @@ namespace MoReFEM
using type = NonConformInterpolatorNS::FromVertexMatching;
decltype(auto) morefem_data = parent::GetMoReFEMData();
unknown_solid_2_fluid_ =
std::make_unique<type>(morefem_data.GetInputData(),
EnumUnderlyingType(InitVertexMatchingInterpolator::unknown_on_solid),
EnumUnderlyingType(InitVertexMatchingInterpolator::unknown_on_fluid),
NonConformInterpolatorNS::store_matrix_pattern::yes);
decltype(auto) parallelism_ptr = morefem_data.GetParallelismPtr();
assert(!(!parallelism_ptr));
const auto& parallelism = *parallelism_ptr;
if (parallelism.GetParallelismStrategy() != Advanced::parallelism_strategy::run_from_preprocessed)
{
unknown_solid_2_fluid_ =
std::make_unique<type>(morefem_data.GetInputData(),
EnumUnderlyingType(InitVertexMatchingInterpolator::unknown_on_solid),
EnumUnderlyingType(InitVertexMatchingInterpolator::unknown_on_fluid),
NonConformInterpolatorNS::store_matrix_pattern::yes);
// Store the interpolator data inside an ad hoc directory.
decltype(auto) parallelism_dir = parallelism.GetDirectory();
FilesystemNS::Directory interpolator_directory(parallelism_dir,
"Solid2FluidInterpolator",
__FILE__, __LINE__);
unknown_solid_2_fluid_->Print(GetMpi(), interpolator_directory);
}
else
{
// Init directly from the matrix stored during prepartition.
}
}
......
......@@ -342,6 +342,6 @@ Parallelism = {
-- Directory in which parallelism data will be written or read (depending on the policy).
-- Expected format: "VALUE"
directory = '${MOREFEM_TEST_OUTPUT_DIR}/PrepartitionData/Test/NonConformInterpolator/FromVertexMatching/ScalarP1'
directory = '${MOREFEM_TEST_OUTPUT_DIR}/PrepartitionedData/Test/NonConformInterpolator/FromVertexMatching/ScalarP1'
} -- Parallelism
......@@ -309,7 +309,7 @@ Parallelism = {
-- Directory in which parallelism data will be written or read (depending on the policy).
-- Expected format: "VALUE"
directory = '${MOREFEM_TEST_OUTPUT_DIR}/PrepartitionData/Test/NonConformInterpolator/FromVertexMatching/VectorialP1'
directory = '${MOREFEM_TEST_OUTPUT_DIR}/PrepartitionedData/Test/NonConformInterpolator/FromVertexMatching/VectorialP1'
} -- Parallelism
......
......@@ -344,6 +344,6 @@ Parallelism = {
-- Directory in which parallelism data will be written or read (depending on the policy).
-- Expected format: "VALUE"
directory = '${MOREFEM_TEST_OUTPUT_DIR}/PrepartitionData/Test/NonConformInterpolator/FromVertexMatching/VectorialP1b'
directory = '${MOREFEM_TEST_OUTPUT_DIR}/PrepartitionedData/Test/NonConformInterpolator/FromVertexMatching/VectorialP1b'
} -- Parallelism
......@@ -343,6 +343,6 @@ Parallelism = {
-- Directory in which parallelism data will be written or read (depending on the policy).
-- Expected format: "VALUE"
directory = '${MOREFEM_TEST_OUTPUT_DIR}/PrepartitionData/Test/NonConformInterpolator/FromVertexMatching/VectorialP2'
directory = '${MOREFEM_TEST_OUTPUT_DIR}/PrepartitionedData/Test/NonConformInterpolator/FromVertexMatching/VectorialP2'
} -- Parallelism
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