Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MoReFEM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
46
Issues
46
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MoReFEM
CoreLibrary
MoReFEM
Commits
9fdd145e
Commit
9fdd145e
authored
Jun 18, 2020
by
GILLES Sebastien
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1531
FromVertexMatching model: write prepartitioned data related to the operator.
parent
8d458883
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
9 deletions
+31
-9
Sources/Test/Operators/NonConformInterpolator/FromVertexMatching/Model.cpp
...ators/NonConformInterpolator/FromVertexMatching/Model.cpp
+27
-5
Sources/Test/Operators/NonConformInterpolator/FromVertexMatching/demo_scalar_P1.lua
...ConformInterpolator/FromVertexMatching/demo_scalar_P1.lua
+1
-1
Sources/Test/Operators/NonConformInterpolator/FromVertexMatching/demo_vectorial_P1.lua
...formInterpolator/FromVertexMatching/demo_vectorial_P1.lua
+1
-1
Sources/Test/Operators/NonConformInterpolator/FromVertexMatching/demo_vectorial_P1b.lua
...ormInterpolator/FromVertexMatching/demo_vectorial_P1b.lua
+1
-1
Sources/Test/Operators/NonConformInterpolator/FromVertexMatching/demo_vectorial_P2.lua
...formInterpolator/FromVertexMatching/demo_vectorial_P2.lua
+1
-1
No files found.
Sources/Test/Operators/NonConformInterpolator/FromVertexMatching/Model.cpp
View file @
9fdd145e
...
...
@@ -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.
}
}
...
...
Sources/Test/Operators/NonConformInterpolator/FromVertexMatching/demo_scalar_P1.lua
View file @
9fdd145e
...
...
@@ -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}/Prepartition
ed
Data/Test/NonConformInterpolator/FromVertexMatching/ScalarP1'
}
-- Parallelism
Sources/Test/Operators/NonConformInterpolator/FromVertexMatching/demo_vectorial_P1.lua
View file @
9fdd145e
...
...
@@ -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}/Prepartition
ed
Data/Test/NonConformInterpolator/FromVertexMatching/VectorialP1'
}
-- Parallelism
...
...
Sources/Test/Operators/NonConformInterpolator/FromVertexMatching/demo_vectorial_P1b.lua
View file @
9fdd145e
...
...
@@ -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}/Prepartition
ed
Data/Test/NonConformInterpolator/FromVertexMatching/VectorialP1b'
}
-- Parallelism
Sources/Test/Operators/NonConformInterpolator/FromVertexMatching/demo_vectorial_P2.lua
View file @
9fdd145e
...
...
@@ -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}/Prepartition
ed
Data/Test/NonConformInterpolator/FromVertexMatching/VectorialP2'
}
-- Parallelism
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment