117void CartesianMeshAMRPatchMng::
169 Int32
usefull_flags = ItemFlags::II_Refine + ItemFlags::II_Inactive;
250 for (Integer i = 0; i <
my_rank; ++i) {
263 if (m_mesh->dimension() == 2) {
324 const Integer pattern = m_num_mng->pattern();
332 for (Integer i = 0; i < 9; ++i) {
441 for (Integer
nc = 0;
nc < m_num_mng->nbNodeByCell();
nc++) {
446 for (Integer l = 0; l < m_num_mng->nbFaceByCell(); ++l) {
472 for (Integer
nc = l;
nc < l + 2;
nc++) {
538 debug() <<
"Child face (change owner) -- x : " << i
541 <<
" -- face : " << l
546 debug() <<
"Child face (create face) -- x : " << i
549 <<
" -- face : " << l
559 for (Integer l = 0; l < m_num_mng->nbNodeByCell(); ++l) {
725 debug() <<
"Child node (change owner) -- x : " << i
728 <<
" -- node : " << l
733 debug() <<
"Child node (create node) -- x : " << i
736 <<
" -- node : " << l
748 else if (m_mesh->dimension() == 3) {
830 const Integer pattern = m_num_mng->pattern();
838 for (Integer i = 0; i < 27; ++i) {
971 for (Integer
nc = 0;
nc < m_num_mng->nbNodeByCell();
nc++) {
976 for (Integer l = 0; l < m_num_mng->nbFaceByCell(); ++l) {
1099 debug() <<
"Child face (change owner) -- x : " << i
1103 <<
" -- face : " << l
1108 debug() <<
"Child face (create face) -- x : " << i
1112 <<
" -- face : " << l
1122 for (Integer l = 0; l < m_num_mng->nbNodeByCell(); ++l) {
1706 debug() <<
"Child node (change owner) -- x : " << i
1710 <<
" -- node : " << l
1715 debug() <<
"Child node (create node) -- x : " << i
1719 <<
" -- node : " << l
1783 m_mesh->modifier()->addParentNodeToNode(child, parent);
1784 m_mesh->modifier()->addChildNodeToNode(parent, child);
1787 m_mesh->nodeFamily()->notifyItemsOwnerChanged();
1840 m_mesh->modifier()->addParentFaceToFace(child, parent);
1841 m_mesh->modifier()->addChildFaceToFace(parent, child);
1844 m_mesh->faceFamily()->notifyItemsOwnerChanged();
1867 if (
parent_cells[i].itemBase().flags() & ItemFlags::II_Shared) {
1871 m_mesh->modifier()->addParentCellToCell(child,
parent_cells[i]);
1872 m_mesh->modifier()->addChildCellToCell(
parent_cells[i], child);
1877 cell.mutableItemBase().removeFlags(ItemFlags::II_Refine);
1878 cell.mutableItemBase().addFlags(ItemFlags::II_JustRefined | ItemFlags::II_Inactive);
1880 m_mesh->cellFamily()->notifyItemsOwnerChanged();
1883 m_mesh->modifier()->endUpdate();
1889 if (
parent_cell.mutableItemBase().flags() & ItemFlags::II_Shared) {
1890 for (Integer i = 0; i <
parent_cell.nbHChildren(); ++i) {
1893 if (node.mutableItemBase().flags() & ItemFlags::II_Own) {
1894 node.mutableItemBase().addFlags(ItemFlags::II_Shared);
1899 if (face.mutableItemBase().flags() & ItemFlags::II_Own) {
1900 face.mutableItemBase().addFlags(ItemFlags::II_Shared);
1943void CartesianMeshAMRPatchMng::
1963 m_num_mng->prepareLevel(-1);
1974 Int32 version =
gm->builderVersion();
1976 gm->setBuilderVersion(3);
1990 Int64
parent_uid = m_num_mng->parentCellUniqueIdOfCell(cell);
2094 for (Integer i = 0; i <
my_rank; ++i) {
2106 ARCANE_FATAL(
"En déraffinement, c'est normalement impossible");
2112 if (m_mesh->dimension() == 2) {
2138 for (Integer i = 0; i < 9; ++i) {
2168 <<
" -- level : " << -1
2181 for (Integer
nc = 0;
nc < m_num_mng->nbNodeByCell();
nc++) {
2186 for (Integer l = 0; l < m_num_mng->nbFaceByCell(); ++l) {
2202 for (Integer
nc = l;
nc < l + 2;
nc++) {
2217 debug() <<
"Parent face (create face) -- parent_cell_uid : " <<
parent_cell_uid
2218 <<
" -- level : " << -1
2219 <<
" -- face : " << l
2228 for (Integer l = 0; l < m_num_mng->nbNodeByCell(); ++l) {
2278 debug() <<
"Parent node (create node) -- parent_cell_uid : " <<
parent_cell_uid
2279 <<
" -- level : " << -1
2280 <<
" -- node : " << l
2287 else if (m_mesh->dimension() == 3) {
2329 for (Integer i = 0; i < 27; ++i) {
2360 <<
" -- level : " << -1
2367 const Integer
type_cell = IT_Hexaedron8;
2373 for (Integer
nc = 0;
nc < m_num_mng->nbNodeByCell();
nc++) {
2378 for (Integer l = 0; l < m_num_mng->nbFaceByCell(); ++l) {
2435 debug() <<
"Parent face (create face) -- parent_cell_uid : " <<
parent_cell_uid
2436 <<
" -- level : " << -1
2437 <<
" -- face : " << l
2446 for (Integer l = 0; l < m_num_mng->nbNodeByCell(); ++l) {
2592 debug() <<
"Parent node (create node) -- parent_cell_uid : " <<
parent_cell_uid
2593 <<
" -- level : " << -1
2594 <<
" -- node : " << l
2647 m_mesh->modifier()->addParentNodeToNode(child, parent);
2648 m_mesh->modifier()->addChildNodeToNode(parent, child);
2652 m_mesh->nodeFamily()->notifyItemsOwnerChanged();
2659 Integer
nb_child = (m_mesh->dimension() == 2 ? 2 : 4);
2681 for (Integer i = 0; i <
nb_child; ++i) {
2691 for (Integer i = 0; i <
nb_child; ++i) {
2700 m_mesh->modifier()->addParentFaceToFace(child, parent);
2701 m_mesh->modifier()->addChildFaceToFace(parent, child);
2706 m_mesh->faceFamily()->notifyItemsOwnerChanged();
2734 m_mesh->modifier()->addParentCellToCell(child, parent);
2735 m_mesh->modifier()->addChildCellToCell(parent, child);
2738 m_mesh->cellFamily()->notifyItemsOwnerChanged();
2741 m_mesh->modifier()->endUpdate();
2742 m_num_mng->updateFirstLevel();
2751 if (
parent_cell.mutableItemBase().flags() & ItemFlags::II_Shared) {
2753 if (node.mutableItemBase().flags() & ItemFlags::II_Own) {
2754 node.mutableItemBase().addFlags(ItemFlags::II_Shared);
2758 if (face.mutableItemBase().flags() & ItemFlags::II_Own) {
2759 face.mutableItemBase().addFlags(ItemFlags::II_Shared);
2768 m_cmesh->_internalApi()->addPatchFromExistingChildren(
parent_cells.view().localIds());
2775 m_mesh->computeSynchronizeInfos();
2779 m_cmesh->computeDirections();