Skip to content

Commit

Permalink
[arcane,mesh] Add AMR kind check in DynamicMesh for the coarsenItemsV…
Browse files Browse the repository at this point in the history
…2() method
  • Loading branch information
AlexlHer committed Oct 9, 2024
1 parent 41856d3 commit 2a6a6d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arcane/src/arcane/mesh/DynamicMesh.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1360,6 +1360,9 @@ coarsenItemsV2()
_checkDimension();
_checkConnectivity();
_checkAMR();
if (m_amr_type != eMeshAMRKind::Cell) {
ARCANE_FATAL("This method is not compatible with Cartesian Mesh Patch AMR");

Check warning on line 1364 in arcane/src/arcane/mesh/DynamicMesh.cc

View check run for this annotation

Codecov / codecov/patch

arcane/src/arcane/mesh/DynamicMesh.cc#L1364

Added line #L1364 was not covered by tests
}
m_mesh_refinement->coarsenItemsV2();
}

Expand Down

0 comments on commit 2a6a6d1

Please sign in to comment.