Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test 'MeshModifierTester' with 1D mesh #2015

Merged
merged 1 commit into from
Mar 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions arcane/src/arcane/tests/MeshModificationTester.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@

if (mesh()->dimension() == 3)
_refineCells(); // copied from MeshModifications.cs C# for easier debug
if (mesh()->dimension() == 2)
if (mesh()->dimension() == 1)
_addRemoveCells();
}

Expand Down Expand Up @@ -215,6 +215,7 @@
}

modifier->removeCells(lids);
mesh()->cellFamily()->endUpdate();

cells_infos.resize(4);
cells_infos[0] = IT_CellLine2;
Expand All @@ -234,7 +235,7 @@
}

if (group.size() != 0)
ARCANE_FATAL("Error after in mesh update, group is not empty...");
ARCANE_FATAL("Error after in mesh update, group '{0}' is not empty (n={1})", group.name(), group.size());

Check warning on line 238 in arcane/src/arcane/tests/MeshModificationTester.cc

View check run for this annotation

Codecov / codecov/patch

arcane/src/arcane/tests/MeshModificationTester.cc#L238

Added line #L238 was not covered by tests

ENUMERATE_CELL (icell, allCells()) {
info() << "cell[" << icell->localId() << "," << icell->uniqueId() << "] type="
Expand Down Expand Up @@ -281,7 +282,7 @@

to_add_cells.add(8); // Pour une pyramide
//to_add_cells.Add(max_cell_uid + index); // Pour le uid
to_add_cells.add(cell->uniqueId().asInt64() + max_cell_uid); // Pour le uid, reutilise celui de la maille supprimée
to_add_cells.add(cell->uniqueId().asInt64() + max_cell_uid); // Pour le uid, reutilise celui de la maille supprimée
//to_add_cells.Add(c.UniqueId); // Pour le uid, reutilise celui de la maille supprimée
to_add_cells.add(cell->node(0).uniqueId().asInt64());
to_add_cells.add(cell->node(1).uniqueId().asInt64());
Expand Down
Loading