396 lines
27 KiB
XML
396 lines
27 KiB
XML
|
|
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||
|
|
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.13.2" xml:lang="en-US">
|
||
|
|
<compounddef id="model_2computations_2physical__blocks_8hpp" kind="file" language="C++">
|
||
|
|
<compoundname>physical_blocks.hpp</compoundname>
|
||
|
|
<includes local="no">array</includes>
|
||
|
|
<includes local="no">limits</includes>
|
||
|
|
<includes local="no">tuple</includes>
|
||
|
|
<includes refid="system_8hpp" local="yes">serif/backend/mfem/model/system.hpp</includes>
|
||
|
|
<includes refid="model_2keys_8hpp" local="yes">serif/model/keys.hpp</includes>
|
||
|
|
<includes refid="linearized__system__view_8hpp" local="yes">serif/operators/linearized_system_view.hpp</includes>
|
||
|
|
<includes refid="computation_8hpp" local="yes">serif/utils/dependencies/computation.hpp</includes>
|
||
|
|
<includedby refid="backend_2mfem_2model_2preconditioning_2computations_8hpp" local="yes">src/include/serif/backend/mfem/model/preconditioning/computations.hpp</includedby>
|
||
|
|
<incdepgraph>
|
||
|
|
<node id="1">
|
||
|
|
<label>src/include/serif/backend/mfem/model/computations/physical_blocks.hpp</label>
|
||
|
|
<link refid="model_2computations_2physical__blocks_8hpp"/>
|
||
|
|
<childnode refid="2" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="3" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="4" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="5" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="15" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="16" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="34" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="5">
|
||
|
|
<label>serif/backend/mfem/model/system.hpp</label>
|
||
|
|
<link refid="system_8hpp"/>
|
||
|
|
<childnode refid="6" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="7" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="9" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="10" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="10">
|
||
|
|
<label>serif/backend/mfem/operators/actions.hpp</label>
|
||
|
|
<link refid="backend_2mfem_2operators_2actions_8hpp"/>
|
||
|
|
<childnode refid="11" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="9" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="12" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="12">
|
||
|
|
<label>serif/backend/mfem/operators/linearized_block.hpp</label>
|
||
|
|
<link refid="backend_2mfem_2operators_2linearized__block_8hpp"/>
|
||
|
|
<childnode refid="11" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="6" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="9" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="13" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="14" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="20">
|
||
|
|
<label>serif/discretization/blocks/base.hpp</label>
|
||
|
|
<link refid="base_8hpp"/>
|
||
|
|
</node>
|
||
|
|
<node id="18">
|
||
|
|
<label>serif/discretization/blocks/system_layout.hpp</label>
|
||
|
|
<link refid="system__layout_8hpp"/>
|
||
|
|
<childnode refid="2" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="19" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="17" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="20" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="21" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="15">
|
||
|
|
<label>serif/model/keys.hpp</label>
|
||
|
|
<link refid="model_2keys_8hpp"/>
|
||
|
|
</node>
|
||
|
|
<node id="16">
|
||
|
|
<label>serif/operators/linearized_system_view.hpp</label>
|
||
|
|
<link refid="linearized__system__view_8hpp"/>
|
||
|
|
<childnode refid="17" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="18" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="28" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="24">
|
||
|
|
<label>serif/utils/dependencies/binding.hpp</label>
|
||
|
|
<link refid="utils_2dependencies_2binding_8hpp"/>
|
||
|
|
<childnode refid="2" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="17" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="25" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="34">
|
||
|
|
<label>serif/utils/dependencies/computation.hpp</label>
|
||
|
|
<link refid="computation_8hpp"/>
|
||
|
|
<childnode refid="29" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="11" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="17" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="30" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="23" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="28">
|
||
|
|
<label>serif/utils/dependencies/dependency_context.hpp</label>
|
||
|
|
<link refid="dependency__context_8hpp"/>
|
||
|
|
<childnode refid="29" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="4" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="17" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="30" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="31" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="22" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="33" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="22">
|
||
|
|
<label>serif/utils/dependencies/detail/type_lists.hpp</label>
|
||
|
|
<link refid="type__lists_8hpp"/>
|
||
|
|
<childnode refid="2" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="19" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="17" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="23" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="23">
|
||
|
|
<label>serif/utils/dependencies/key_list.hpp</label>
|
||
|
|
<link refid="key__list_8hpp"/>
|
||
|
|
<childnode refid="17" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="24" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="25" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="27" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="21">
|
||
|
|
<label>serif/utils/dependencies/key_list_operations.hpp</label>
|
||
|
|
<link refid="key__list__operations_8hpp"/>
|
||
|
|
<childnode refid="19" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="17" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="22" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="31">
|
||
|
|
<label>serif/utils/dependencies/resource.hpp</label>
|
||
|
|
<link refid="resource_8hpp"/>
|
||
|
|
<childnode refid="11" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="17" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="30" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="32" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="32">
|
||
|
|
<label>serif/utils/dependencies/snapshot.hpp</label>
|
||
|
|
<link refid="snapshot_8hpp"/>
|
||
|
|
<childnode refid="29" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="11" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="6" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="17" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="30" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="33">
|
||
|
|
<label>serif/utils/misc/concepts/concat.hpp</label>
|
||
|
|
<link refid="concat_8hpp"/>
|
||
|
|
<childnode refid="27" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="26">
|
||
|
|
<label>serif/utils/misc/std_helper/cleaning.hpp</label>
|
||
|
|
<link refid="cleaning_8hpp"/>
|
||
|
|
<childnode refid="17" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="25">
|
||
|
|
<label>serif/utils/misc/traits/type_uniqueness.hpp</label>
|
||
|
|
<link refid="traits_2type__uniqueness_8hpp"/>
|
||
|
|
<childnode refid="2" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="26" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="27">
|
||
|
|
<label>serif/utils/types/type_list.hpp</label>
|
||
|
|
<link refid="type__list_8hpp"/>
|
||
|
|
</node>
|
||
|
|
<node id="2">
|
||
|
|
<label>array</label>
|
||
|
|
</node>
|
||
|
|
<node id="29">
|
||
|
|
<label>concepts</label>
|
||
|
|
</node>
|
||
|
|
<node id="19">
|
||
|
|
<label>cstddef</label>
|
||
|
|
</node>
|
||
|
|
<node id="11">
|
||
|
|
<label>functional</label>
|
||
|
|
</node>
|
||
|
|
<node id="3">
|
||
|
|
<label>limits</label>
|
||
|
|
</node>
|
||
|
|
<node id="6">
|
||
|
|
<label>memory</label>
|
||
|
|
</node>
|
||
|
|
<node id="13">
|
||
|
|
<label>mfem/linalg/operator.hpp</label>
|
||
|
|
</node>
|
||
|
|
<node id="14">
|
||
|
|
<label>mfem/linalg/sparsemat.hpp</label>
|
||
|
|
</node>
|
||
|
|
<node id="7">
|
||
|
|
<label>optional</label>
|
||
|
|
</node>
|
||
|
|
<node id="8">
|
||
|
|
<label>span</label>
|
||
|
|
</node>
|
||
|
|
<node id="4">
|
||
|
|
<label>tuple</label>
|
||
|
|
</node>
|
||
|
|
<node id="17">
|
||
|
|
<label>type_traits</label>
|
||
|
|
</node>
|
||
|
|
<node id="30">
|
||
|
|
<label>utility</label>
|
||
|
|
</node>
|
||
|
|
<node id="9">
|
||
|
|
<label>vector</label>
|
||
|
|
</node>
|
||
|
|
</incdepgraph>
|
||
|
|
<invincdepgraph>
|
||
|
|
<node id="5">
|
||
|
|
<label>src/compile_time_checks/serif/model/state.cpp</label>
|
||
|
|
<link refid="state_8cpp"/>
|
||
|
|
</node>
|
||
|
|
<node id="1">
|
||
|
|
<label>src/include/serif/backend/mfem/model/computations/physical_blocks.hpp</label>
|
||
|
|
<link refid="model_2computations_2physical__blocks_8hpp"/>
|
||
|
|
<childnode refid="2" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="4">
|
||
|
|
<label>src/include/serif/backend/mfem/model/equilibrium.hpp</label>
|
||
|
|
<link refid="backend_2mfem_2model_2equilibrium_8hpp"/>
|
||
|
|
<childnode refid="5" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="6" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="3">
|
||
|
|
<label>src/include/serif/backend/mfem/model/equilibrium_evaluator.hpp</label>
|
||
|
|
<link refid="equilibrium__evaluator_8hpp"/>
|
||
|
|
<childnode refid="4" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="2">
|
||
|
|
<label>src/include/serif/backend/mfem/model/preconditioning/computations.hpp</label>
|
||
|
|
<link refid="backend_2mfem_2model_2preconditioning_2computations_8hpp"/>
|
||
|
|
<childnode refid="3" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="7">
|
||
|
|
<label>src/include/serif/backend/mfem/solver/equilibrium.hpp</label>
|
||
|
|
<link refid="backend_2mfem_2solver_2equilibrium_8hpp"/>
|
||
|
|
<childnode refid="8" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="6">
|
||
|
|
<label>src/include/serif/backend/mfem/solver/nonlinear/stellar_problem.hpp</label>
|
||
|
|
<link refid="stellar__problem_8hpp"/>
|
||
|
|
<childnode refid="7" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="9">
|
||
|
|
<label>src/include/serif/solver/continuation/equilibrium.hpp</label>
|
||
|
|
<link refid="solver_2continuation_2equilibrium_8hpp"/>
|
||
|
|
<childnode refid="10" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="8">
|
||
|
|
<label>src/include/serif/solver/equilibrium.hpp</label>
|
||
|
|
<link refid="solver_2equilibrium_8hpp"/>
|
||
|
|
<childnode refid="9" relation="include">
|
||
|
|
</childnode>
|
||
|
|
<childnode refid="10" relation="include">
|
||
|
|
</childnode>
|
||
|
|
</node>
|
||
|
|
<node id="10">
|
||
|
|
<label>src/include/serif/solver/solver.hpp</label>
|
||
|
|
<link refid="solver_2solver_8hpp"/>
|
||
|
|
</node>
|
||
|
|
</invincdepgraph>
|
||
|
|
<innernamespace refid="namespaceserif">serif</innernamespace>
|
||
|
|
<innernamespace refid="namespaceserif_1_1model">serif::model</innernamespace>
|
||
|
|
<innernamespace refid="namespaceserif_1_1model_1_1computations">serif::model::computations</innernamespace>
|
||
|
|
<innernamespace refid="namespaceserif_1_1model_1_1computations_1_1detail">serif::model::computations::detail</innernamespace>
|
||
|
|
<briefdescription>
|
||
|
|
</briefdescription>
|
||
|
|
<detaileddescription>
|
||
|
|
</detaileddescription>
|
||
|
|
<programlisting>
|
||
|
|
<codeline lineno="1"><highlight class="preprocessor">#pragma<sp/>once</highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="2"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="3"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><array></highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="4"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><limits></highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="5"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><tuple></highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="6"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="7"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="system_8hpp" kindref="compound">serif/backend/mfem/model/system.hpp</ref>"</highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="8"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="model_2keys_8hpp" kindref="compound">serif/model/keys.hpp</ref>"</highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="9"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="linearized__system__view_8hpp" kindref="compound">serif/operators/linearized_system_view.hpp</ref>"</highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="10"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="computation_8hpp" kindref="compound">serif/utils/dependencies/computation.hpp</ref>"</highlight><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="11"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="12"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal"><ref refid="namespaceserif_1_1model_1_1computations" kindref="compound">serif::model::computations</ref><sp/>{</highlight></codeline>
|
||
|
|
<codeline lineno="13" refid="namespaceserif_1_1model_1_1computations_1_1detail" refkind="compound"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal"><ref refid="namespaceserif_1_1model_1_1computations_1_1detail" kindref="compound">detail</ref><sp/>{</highlight></codeline>
|
||
|
|
<codeline lineno="15"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Layout,<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal">...<sp/>Rows,<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal">...<sp/>Fields></highlight></codeline>
|
||
|
|
<codeline lineno="16"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[[nodiscard]]<sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/><ref refid="namespaceserif_1_1model_1_1computations_1_1detail_1a8ee526b8c650dbdb269632f5ee03e948" kindref="member">physical_block</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="classserif_1_1model_1_1backend_1_1mfem_1_1_physical_system" kindref="compound">backend::mfem::PhysicalSystem</ref>&<sp/>system,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>Layout&<sp/>layout,</highlight></codeline>
|
||
|
|
<codeline lineno="17"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="structserif_1_1utils_1_1dependencies_1_1_key_list" kindref="compound">utils::dependencies::KeyList<Rows...></ref>,<sp/><ref refid="structserif_1_1utils_1_1dependencies_1_1_key_list" kindref="compound">utils::dependencies::KeyList<Fields...></ref>)<sp/>{</highlight></codeline>
|
||
|
|
<codeline lineno="18"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">using<sp/></highlight><highlight class="normal">Kind<sp/>=<sp/><ref refid="namespaceserif_1_1discretization_1_1blocks_1aca74ff25d2168fcdec080e03ebc023ea" kindref="member">discretization::blocks::RepresentedValueKind</ref>;</highlight></codeline>
|
||
|
|
<codeline lineno="19"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">static_assert</highlight><highlight class="normal">(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">...(Rows)<sp/>><sp/>0<sp/>&&<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">...(Fields)<sp/>><sp/>0,<sp/></highlight><highlight class="stringliteral">"Select<sp/>at<sp/>least<sp/>one<sp/>equation<sp/>and<sp/>one<sp/>physical<sp/>coordinate<sp/>for<sp/>a<sp/>solver<sp/>block."</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
|
<codeline lineno="20"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="21"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>std::array<sp/>rows{<ref refid="structserif_1_1model_1_1backend_1_1mfem_1_1_coordinate_range" kindref="compound">backend::mfem::CoordinateRange</ref>{</highlight><highlight class="keyword">static_cast<</highlight><highlight class="keywordtype">int</highlight><highlight class="keyword">></highlight><highlight class="normal">(layout.template<sp/>offset<Kind::residual,<sp/>Rows>()),<sp/></highlight><highlight class="keyword">static_cast<</highlight><highlight class="keywordtype">int</highlight><highlight class="keyword">></highlight><highlight class="normal">(layout.template<sp/>size<Kind::residual,<sp/>Rows>())}...};</highlight></codeline>
|
||
|
|
<codeline lineno="22"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>std::array<sp/>columns{<ref refid="structserif_1_1model_1_1backend_1_1mfem_1_1_coordinate_range" kindref="compound">backend::mfem::CoordinateRange</ref>{</highlight><highlight class="keyword">static_cast<</highlight><highlight class="keywordtype">int</highlight><highlight class="keyword">></highlight><highlight class="normal">(layout.template<sp/>offset<Kind::value,<sp/>Fields>()),<sp/></highlight><highlight class="keyword">static_cast<</highlight><highlight class="keywordtype">int</highlight><highlight class="keyword">></highlight><highlight class="normal">(layout.template<sp/>size<Kind::value,<sp/>Fields>())}...};</highlight></codeline>
|
||
|
|
<codeline lineno="23"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>system.<ref refid="classserif_1_1model_1_1backend_1_1mfem_1_1_physical_system_1aba4acd55d14d1571dbf3f472a4c8c9f0" kindref="member">block</ref>(rows,<sp/>columns);</highlight></codeline>
|
||
|
|
<codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
|
<codeline lineno="25"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
|
<codeline lineno="26"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="28"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Block,<sp/>discretization::blocks::SystemLayoutType<sp/>Layout></highlight></codeline>
|
||
|
|
<codeline lineno="29"><highlight class="normal"><sp/><sp/><sp/><sp/>[[nodiscard]]<sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/><ref refid="namespaceserif_1_1model_1_1computations_1a0660915b0bac2fc2ce2012e70bcd4e07" kindref="member">physical_block</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>Layout&<sp/>layout)<sp/>{</highlight></codeline>
|
||
|
|
<codeline lineno="30"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">using<sp/>namespace<sp/></highlight><highlight class="normal"><ref refid="namespaceserif_1_1utils_1_1dependencies" kindref="compound">utils::dependencies</ref>;</highlight></codeline>
|
||
|
|
<codeline lineno="31"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">using<sp/>namespace<sp/></highlight><highlight class="normal"><ref refid="namespaceserif_1_1utils_1_1errors" kindref="compound">utils::errors</ref>;</highlight></codeline>
|
||
|
|
<codeline lineno="32"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">using<sp/></highlight><highlight class="normal">Kind<sp/>=<sp/><ref refid="namespaceserif_1_1discretization_1_1blocks_1aca74ff25d2168fcdec080e03ebc023ea" kindref="member">discretization::blocks::RepresentedValueKind</ref>;</highlight></codeline>
|
||
|
|
<codeline lineno="33"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="34"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>serif_ensure<SERiFErrorCode::INVALID_DOF_COUNT>(layout.template<sp/>total_size<Kind::residual>()<sp/><=<sp/>std::numeric_limits<int>::max()<sp/>&&</highlight></codeline>
|
||
|
|
<codeline lineno="35"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>layout.template<sp/>total_size<Kind::value>()<sp/><=<sp/>std::numeric_limits<int>::max(),<sp/></highlight><highlight class="stringliteral">"Physical<sp/>solver<sp/>block<sp/>coordinates<sp/>exceed<sp/>MFEM's<sp/>integer<sp/>index<sp/>range.<sp/>Supply<sp/>a<sp/>representable<sp/>system<sp/>layout."</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
|
<codeline lineno="36"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>make_computation<Block,<sp/>InputList<keys::PhysicalSystem>>([layout](</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>std::shared_ptr<const<sp/>backend::mfem::PhysicalSystem>&<sp/>system)<sp/>{</highlight></codeline>
|
||
|
|
<codeline lineno="37"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>serif_ensure<SERiFErrorCode::INVALID_ARGUMENT>(system<sp/>!=<sp/></highlight><highlight class="keyword">nullptr</highlight><highlight class="normal">,<sp/></highlight><highlight class="stringliteral">"Physical<sp/>solver<sp/>blocks<sp/>require<sp/>an<sp/>evaluated<sp/>stellar<sp/>system."</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
|
<codeline lineno="38"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>serif_ensure<SERiFErrorCode::MATRIX_SHAPE_ERROR>(layout.template<sp/>total_size<Kind::residual>()<sp/>==<sp/></highlight><highlight class="keyword">static_cast<</highlight><highlight class="normal">std::size_t</highlight><highlight class="keyword">></highlight><highlight class="normal">(system->jacobian().action()->Height())<sp/>&&</highlight></codeline>
|
||
|
|
<codeline lineno="39"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>layout.template<sp/>total_size<Kind::value>()<sp/>==<sp/></highlight><highlight class="keyword">static_cast<</highlight><highlight class="normal">std::size_t</highlight><highlight class="keyword">></highlight><highlight class="normal">(system->jacobian().action()->Width()),<sp/></highlight><highlight class="stringliteral">"The<sp/>requested<sp/>solver<sp/>block<sp/>layout<sp/>does<sp/>not<sp/>match<sp/>its<sp/>frozen<sp/>physical<sp/>system.<sp/>Use<sp/>that<sp/>system's<sp/>coordinate<sp/>description."</highlight><highlight class="normal">);</highlight></codeline>
|
||
|
|
<codeline lineno="40"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="namespaceserif_1_1model_1_1computations_1_1detail_1a8ee526b8c650dbdb269632f5ee03e948" kindref="member">detail::physical_block</ref>(*system,<sp/>layout,<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Block::Rows{},<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>Block::Values{});</highlight></codeline>
|
||
|
|
<codeline lineno="41"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>});</highlight></codeline>
|
||
|
|
<codeline lineno="42"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
|
<codeline lineno="43"><highlight class="normal"></highlight></codeline>
|
||
|
|
<codeline lineno="45"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><discretization::blocks::SystemLayoutType<sp/><ref refid="namespaceserif_1_1model_1_1checks_1a25b09ef80aa03c71690f75564edb5cba" kindref="member">Layout</ref>,<sp/></highlight><highlight class="keyword">typename</highlight><highlight class="normal">...<sp/>Blocks></highlight></codeline>
|
||
|
|
<codeline lineno="46"><highlight class="normal"><sp/><sp/><sp/><sp/>[[nodiscard]]<sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/><ref refid="namespaceserif_1_1model_1_1computations_1a4ff124ec28d7784bd444fee234bad18e" kindref="member">make_physical_block_computations</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>Layout&<sp/>layout,<sp/>utils::dependencies::KeyList<Blocks...>)<sp/>{</highlight></codeline>
|
||
|
|
<codeline lineno="47"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>std::tuple{<ref refid="namespaceserif_1_1model_1_1computations_1a0660915b0bac2fc2ce2012e70bcd4e07" kindref="member">physical_block<Blocks></ref>(layout)...};</highlight></codeline>
|
||
|
|
<codeline lineno="48"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||
|
|
<codeline lineno="49"><highlight class="normal">}</highlight></codeline>
|
||
|
|
</programlisting>
|
||
|
|
<location file="src/include/serif/backend/mfem/model/computations/physical_blocks.hpp"/>
|
||
|
|
</compounddef>
|
||
|
|
</doxygen>
|