Skip to content

Commit b6082d9

Browse files
Merge pull request #2015 from arcaneframework/dev/gg-add-mesh-modifier-test-1d
Add test 'MeshModifierTester' with 1D mesh
2 parents d592007 + 567a2c5 commit b6082d9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

arcane/src/arcane/tests/MeshModificationTester.cc

+4-3
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ executeTest()
109109

110110
if (mesh()->dimension() == 3)
111111
_refineCells(); // copied from MeshModifications.cs C# for easier debug
112-
if (mesh()->dimension() == 2)
112+
if (mesh()->dimension() == 1)
113113
_addRemoveCells();
114114
}
115115

@@ -215,6 +215,7 @@ _addRemoveCells()
215215
}
216216

217217
modifier->removeCells(lids);
218+
mesh()->cellFamily()->endUpdate();
218219

219220
cells_infos.resize(4);
220221
cells_infos[0] = IT_CellLine2;
@@ -234,7 +235,7 @@ _addRemoveCells()
234235
}
235236

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

239240
ENUMERATE_CELL (icell, allCells()) {
240241
info() << "cell[" << icell->localId() << "," << icell->uniqueId() << "] type="
@@ -281,7 +282,7 @@ _refineCells()
281282

282283
to_add_cells.add(8); // Pour une pyramide
283284
//to_add_cells.Add(max_cell_uid + index); // Pour le uid
284-
to_add_cells.add(cell->uniqueId().asInt64() + max_cell_uid); // Pour le uid, reutilise celui de la maille supprimée
285+
to_add_cells.add(cell->uniqueId().asInt64() + max_cell_uid); // Pour le uid, reutilise celui de la maille supprimée
285286
//to_add_cells.Add(c.UniqueId); // Pour le uid, reutilise celui de la maille supprimée
286287
to_add_cells.add(cell->node(0).uniqueId().asInt64());
287288
to_add_cells.add(cell->node(1).uniqueId().asInt64());

0 commit comments

Comments
 (0)