feat(cpp-object-oriented-modular-refactoring): step 13 - element-definition-domain
This commit is contained in:
@@ -815,7 +815,7 @@ HdfProjection ReadHdfProjection(const std::filesystem::path& results,
|
||||
projection.nodes = ReadNodeRows(file.Get());
|
||||
projection.elements = ReadElementRows(file.Get());
|
||||
if (projection.nodes.size() != domain.Nodes().size() ||
|
||||
projection.elements.size() != domain.Elements().size()) {
|
||||
projection.elements.size() != domain.BeamElements().Size()) {
|
||||
Fail("schema-mismatch",
|
||||
"HDF5 model identity counts do not match the input.");
|
||||
}
|
||||
@@ -834,7 +834,7 @@ HdfProjection ReadHdfProjection(const std::filesystem::path& results,
|
||||
for (std::size_t element = 0U; element < projection.elements.size();
|
||||
++element) {
|
||||
const auto& actual = projection.elements[element];
|
||||
const auto& expected = domain.Elements()[element];
|
||||
const auto& expected = domain.BeamElements()[element];
|
||||
if (actual.internal_element_id != element ||
|
||||
actual.instance_name != expected.source_id.instance_name ||
|
||||
actual.source_element_label != expected.source_id.source_label ||
|
||||
|
||||
Reference in New Issue
Block a user