Files
MeanField_SERiF/docs/xml/system__layout_8cpp.xml

286 lines
12 KiB
XML
Raw Normal View History

<?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="system__layout_8cpp" kind="file" language="C++">
<compoundname>system_layout.cpp</compoundname>
<includes refid="system__layout_8hpp" local="yes">serif/discretization/blocks/system_layout.hpp</includes>
<includes local="no">limits</includes>
<includes local="no">stdexcept</includes>
<includes refid="errors_8hpp" local="yes">serif/utils/error/errors.hpp</includes>
<incdepgraph>
<node id="7">
<label>serif/discretization/blocks/base.hpp</label>
<link refid="base_8hpp"/>
</node>
<node id="2">
<label>serif/discretization/blocks/system_layout.hpp</label>
<link refid="system__layout_8hpp"/>
<childnode refid="3" relation="include">
</childnode>
<childnode refid="4" relation="include">
</childnode>
<childnode refid="5" relation="include">
</childnode>
<childnode refid="6" relation="include">
</childnode>
<childnode refid="7" relation="include">
</childnode>
<childnode refid="8" relation="include">
</childnode>
</node>
<node id="34">
<label>serif/meta/enums.hpp</label>
<link refid="enums_8hpp"/>
<childnode refid="35" relation="include">
</childnode>
<childnode refid="6" relation="include">
</childnode>
<childnode refid="36" relation="include">
</childnode>
</node>
<node id="11">
<label>serif/utils/dependencies/binding.hpp</label>
<link refid="utils_2dependencies_2binding_8hpp"/>
<childnode refid="3" relation="include">
</childnode>
<childnode refid="6" relation="include">
</childnode>
<childnode refid="12" relation="include">
</childnode>
</node>
<node id="9">
<label>serif/utils/dependencies/detail/type_lists.hpp</label>
<link refid="type__lists_8hpp"/>
<childnode refid="3" relation="include">
</childnode>
<childnode refid="4" relation="include">
</childnode>
<childnode refid="6" relation="include">
</childnode>
<childnode refid="10" relation="include">
</childnode>
</node>
<node id="10">
<label>serif/utils/dependencies/key_list.hpp</label>
<link refid="key__list_8hpp"/>
<childnode refid="6" relation="include">
</childnode>
<childnode refid="11" relation="include">
</childnode>
<childnode refid="12" relation="include">
</childnode>
<childnode refid="14" relation="include">
</childnode>
</node>
<node id="8">
<label>serif/utils/dependencies/key_list_operations.hpp</label>
<link refid="key__list__operations_8hpp"/>
<childnode refid="4" relation="include">
</childnode>
<childnode refid="6" relation="include">
</childnode>
<childnode refid="9" relation="include">
</childnode>
</node>
<node id="33">
<label>serif/utils/error/codes.hpp</label>
<link refid="codes_8hpp"/>
<childnode refid="22" relation="include">
</childnode>
<childnode refid="34" relation="include">
</childnode>
</node>
<node id="17">
<label>serif/utils/error/errors.hpp</label>
<link refid="errors_8hpp"/>
<childnode refid="18" relation="include">
</childnode>
<childnode refid="19" relation="include">
</childnode>
<childnode refid="20" relation="include">
</childnode>
<childnode refid="21" relation="include">
</childnode>
<childnode refid="22" relation="include">
</childnode>
<childnode refid="23" relation="include">
</childnode>
<childnode refid="24" relation="include">
</childnode>
<childnode refid="25" relation="include">
</childnode>
<childnode refid="29" relation="include">
</childnode>
<childnode refid="33" relation="include">
</childnode>
<childnode refid="37" relation="include">
</childnode>
</node>
<node id="29">
<label>serif/utils/misc/concepts/exceptions.hpp</label>
<link refid="utils_2misc_2concepts_2exceptions_8hpp"/>
<childnode refid="30" relation="include">
</childnode>
<childnode refid="6" relation="include">
</childnode>
<childnode refid="31" relation="include">
</childnode>
</node>
<node id="31">
<label>serif/utils/misc/concepts/numeric.hpp</label>
<link refid="numeric_8hpp"/>
<childnode refid="32" relation="include">
</childnode>
<childnode refid="6" relation="include">
</childnode>
</node>
<node id="13">
<label>serif/utils/misc/std_helper/cleaning.hpp</label>
<link refid="cleaning_8hpp"/>
<childnode refid="6" relation="include">
</childnode>
</node>
<node id="25">
<label>serif/utils/misc/terminal/colors.hpp</label>
<link refid="colors_8hpp"/>
<childnode refid="18" relation="include">
</childnode>
<childnode refid="20" relation="include">
</childnode>
<childnode refid="26" relation="include">
</childnode>
<childnode refid="27" relation="include">
</childnode>
<childnode refid="28" relation="include">
</childnode>
</node>
<node id="12">
<label>serif/utils/misc/traits/type_uniqueness.hpp</label>
<link refid="traits_2type__uniqueness_8hpp"/>
<childnode refid="3" relation="include">
</childnode>
<childnode refid="13" relation="include">
</childnode>
</node>
<node id="37">
<label>serif/utils/types/strings.hpp</label>
<link refid="types_2strings_8hpp"/>
<childnode refid="23" relation="include">
</childnode>
<childnode refid="38" relation="include">
</childnode>
<childnode refid="18" relation="include">
</childnode>
</node>
<node id="14">
<label>serif/utils/types/type_list.hpp</label>
<link refid="type__list_8hpp"/>
</node>
<node id="1">
<label>src/lib/serif/discretization/blocks/system_layout.cpp</label>
<link refid="system__layout_8cpp"/>
<childnode refid="2" relation="include">
</childnode>
<childnode refid="15" relation="include">
</childnode>
<childnode refid="16" relation="include">
</childnode>
<childnode refid="17" relation="include">
</childnode>
</node>
<node id="23">
<label>algorithm</label>
</node>
<node id="3">
<label>array</label>
</node>
<node id="32">
<label>concepts</label>
</node>
<node id="4">
<label>cstddef</label>
</node>
<node id="22">
<label>cstdint</label>
</node>
<node id="20">
<label>cstdio</label>
</node>
<node id="26">
<label>cstdlib</label>
</node>
<node id="30">
<label>exception</label>
</node>
<node id="19">
<label>format</label>
</node>
<node id="38">
<label>iostream</label>
</node>
<node id="15">
<label>limits</label>
</node>
<node id="36">
<label>magic_enum/magic_enum_all.hpp</label>
</node>
<node id="5">
<label>span</label>
</node>
<node id="16">
<label>stdexcept</label>
</node>
<node id="21">
<label>string</label>
</node>
<node id="18">
<label>string_view</label>
</node>
<node id="6">
<label>type_traits</label>
</node>
<node id="28">
<label>unistd.h</label>
</node>
<node id="35">
<label>unordered_map</label>
</node>
<node id="27">
<label>utility</label>
</node>
<node id="24">
<label>version</label>
</node>
</incdepgraph>
<innernamespace refid="namespaceserif">serif</innernamespace>
<innernamespace refid="namespaceserif_1_1discretization">serif::discretization</innernamespace>
<innernamespace refid="namespaceserif_1_1discretization_1_1blocks">serif::discretization::blocks</innernamespace>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<programlisting>
<codeline lineno="1"><highlight class="preprocessor">#include<sp/>&quot;<ref refid="system__layout_8hpp" kindref="compound">serif/discretization/blocks/system_layout.hpp</ref>&quot;</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/>&lt;limits&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="4"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;stdexcept&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="5"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;<ref refid="errors_8hpp" kindref="compound">serif/utils/error/errors.hpp</ref>&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="6"><highlight class="normal"></highlight></codeline>
<codeline lineno="7"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal"><ref refid="namespaceserif_1_1discretization_1_1blocks" kindref="compound">serif::discretization::blocks</ref></highlight></codeline>
<codeline lineno="8"><highlight class="normal">{</highlight></codeline>
<codeline lineno="9"><highlight class="normal"><sp/><sp/><sp/><sp/>std::size_t<sp/><ref refid="namespaceserif_1_1discretization_1_1blocks_1a946d6244b79cf4fad47d07fb97db32e1" kindref="member">checked_block_size</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>std::span&lt;const<sp/>std::size_t&gt;<sp/>sizes)</highlight></codeline>
<codeline lineno="10"><highlight class="normal"><sp/><sp/><sp/><sp/>{</highlight></codeline>
<codeline lineno="11"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">using<sp/>namespace<sp/></highlight><highlight class="normal">utils::errors;</highlight></codeline>
<codeline lineno="12"><highlight class="normal"></highlight></codeline>
<codeline lineno="13"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::size_t<sp/>total<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="14"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>std::size_t<sp/>size<sp/>:<sp/>sizes)<sp/>{</highlight></codeline>
<codeline lineno="15"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>serif_ensure&lt;SERiFErrorCode::INVALID_DOF_COUNT,<sp/>std::overflow_error&gt;(size<sp/>&lt;=<sp/>std::numeric_limits&lt;std::size_t&gt;::max()<sp/>-<sp/>total,<sp/></highlight><highlight class="stringliteral">&quot;The<sp/>system&apos;s<sp/>packed<sp/>coefficient<sp/>count<sp/>overflows<sp/>size_t.<sp/>Check<sp/>the<sp/>individual<sp/>coordinate<sp/>sizes.&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="16"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>total<sp/>+=<sp/>size;</highlight></codeline>
<codeline lineno="17"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="18"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>total;</highlight></codeline>
<codeline lineno="19"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="20"><highlight class="normal">}<sp/></highlight><highlight class="comment">//<sp/>namespace<sp/>serif::discretization::blocks</highlight><highlight class="normal"></highlight></codeline>
</programlisting>
<location file="src/lib/serif/discretization/blocks/system_layout.cpp"/>
</compounddef>
</doxygen>