feat(cpp-object-oriented-modular-refactoring): step 13 - element-definition-domain

This commit is contained in:
KOKO\Mimi
2026-08-16 09:10:38 +09:00
parent cf6fc6e1d9
commit 19ba02a6a4
26 changed files with 740 additions and 242 deletions
+6 -6
View File
@@ -120,9 +120,9 @@ Result<DofManager> DofManager::Create(const AnalysisModel& model) {
}
std::vector<std::array<std::size_t, 12>> element_scatters(
domain.Elements().size());
for (const EntityIndex element_index : model.ActiveElements()) {
const auto& element = domain.Elements().at(element_index);
domain.BeamElements().Size());
for (const EntityIndex element_index : model.ActiveBeamElements()) {
const auto& element = domain.BeamElements().At(element_index);
auto& scatter = element_scatters.at(element_index);
for (std::size_t endpoint = 0U; endpoint < element.node_indices.size();
++endpoint) {
@@ -135,9 +135,9 @@ Result<DofManager> DofManager::Create(const AnalysisModel& model) {
}
std::vector<std::array<std::size_t, 24>> shell_element_scatters(
domain.ShellElements().size());
domain.ShellElements().Size());
for (std::size_t element_index = 0U;
element_index < domain.ShellElements().size(); ++element_index) {
element_index < domain.ShellElements().Size(); ++element_index) {
const auto& element = domain.ShellElements()[element_index];
auto& scatter = shell_element_scatters[element_index];
for (std::size_t node_position = 0U;
@@ -150,7 +150,7 @@ Result<DofManager> DofManager::Create(const AnalysisModel& model) {
}
}
auto pattern = BuildSparsePattern(full_count, model.ActiveElements(),
auto pattern = BuildSparsePattern(full_count, model.ActiveBeamElements(),
element_scatters, shell_element_scatters);
return Result<DofManager>::Success(
DofManager{full_count, std::move(free_equations),