feat(cpp-object-oriented-modular-refactoring): step 13 - element-definition-domain
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user