Commit 702437a4 authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#1532 Test MatrixIO: add a numbering subset and an unknown.

parent cd76e898
......@@ -33,14 +33,26 @@ namespace MoReFEM::TestNS::PetscNS::MatrixIONS
constexpr auto sole = 1;
constexpr auto row_index = 1;
constexpr auto column_index = 2;
constexpr auto unknown1_index = 1;
constexpr auto unknown2_index = 2;
//! \copydoc doxygen_hide_input_data_tuple
using InputDataTuple = std::tuple
<
InputDataNS::Mesh<sole>,
InputDataNS::Unknown<sole>,
InputDataNS::Unknown<unknown1_index>,
InputDataNS::Unknown<unknown2_index>,
InputDataNS::Domain<sole>,
InputDataNS::NumberingSubset<sole>,
InputDataNS::NumberingSubset<row_index>,
InputDataNS::NumberingSubset<column_index>,
InputDataNS::FEltSpace<sole>,
InputDataNS::Result
......
......@@ -70,7 +70,7 @@ Unknown1 = {
-- Name of the unknown (used for displays in output).
-- Expected format: "VALUE"
name = "sole",
name = "unknown1",
-- Index of the god of dof into which the finite element space is defined.
......@@ -80,13 +80,30 @@ Unknown1 = {
} -- Unknown1
Unknown2 = {
-- Name of the unknown (used for displays in output).
-- Expected format: "VALUE"
name = "unknown2",
-- Index of the god of dof into which the finite element space is defined.
-- Expected format: "VALUE"
-- Constraint: value_in(v, {'scalar', 'vectorial'})
nature = "scalar"
} -- Unknown2
NumberingSubset1 = {
-- Name of the numbering subset (not really used; at the moment I just need one input parameter to ground
-- the possible values to choose elsewhere).
-- Expected format: "VALUE"
name = "sole",
name = "row",
-- Whether a vector defined on this numbering subset might be used to compute a movemesh. If true, a
......@@ -99,6 +116,25 @@ NumberingSubset1 = {
} -- NumberingSubset1
NumberingSubset2 = {
-- Name of the numbering subset (not really used; at the moment I just need one input parameter to ground
-- the possible values to choose elsewhere).
-- Expected format: "VALUE"
name = "column",
-- Whether a vector defined on this numbering subset might be used to compute a movemesh. If true, a
-- FEltSpace featuring this numbering subset will compute additional quantities to enable fast computation.
-- This should be false for most numbering subsets, and when it's true the sole unknown involved should be a
-- displacement.
-- Expected format: 'true' or 'false' (without the quote)
do_move_mesh = false
} -- NumberingSubset2
FiniteElementSpace1 = {
......@@ -115,17 +151,17 @@ FiniteElementSpace1 = {
-- List of all unknowns defined in the finite element space. Unknowns here must be defined in this file as
-- an 'Unknown' block; expected name/identifier is the name given there.
-- Expected format: {"VALUE1", "VALUE2", ...}
unknown_list = { "sole" },
unknown_list = { "unknown1", "unknown2" },
-- List of the shape function to use for each unknown;
-- Expected format: {"VALUE1", "VALUE2", ...}
shape_function_list = { "P1" },
shape_function_list = { "P1", "P1b" },
-- List of the numbering subset to use for each unknown;
-- Expected format: { VALUE1, VALUE2, ...}
numbering_subset_list = { 1 }
numbering_subset_list = { 1, 2 }
} -- FiniteElementSpace1
......
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