@@ -1577,8 +1577,8 @@ void CpGridData::distributeGlobalGrid(CpGrid& grid,
15771577
15781578 // Compute partition type for points
15791579 computePointPartitionType ();
1580-
1581- computeCommunicationInterfaces (noExistingPoints);
1580+
1581+ computeCommunicationInterfaces (noExistingPoints);
15821582#else // #if HAVE_MPI
15831583 static_cast <void >(grid);
15841584 static_cast <void >(view_data);
@@ -2065,9 +2065,9 @@ int CpGridData::sharedFaceTag(const std::vector<std::array<int,3>>& startIJK_2Pa
20652065 assert (endIJK_2Patches.size () == 2 );
20662066
20672067 int faceTag = -1 ; // 0 represents I_FACE, 1 J_FACE, and 2 K_FACE. Use -1 for no sharing face case.
2068-
2068+
20692069 if (patchesShareFace (startIJK_2Patches, endIJK_2Patches)) {
2070-
2070+
20712071 const auto & detectSharing = [](const std::vector<int >& faceIdxs, const std::vector<int >& otherFaceIdxs){
20722072 bool faceIsShared = false ;
20732073 for (const auto & face : faceIdxs) {
@@ -2080,7 +2080,7 @@ int CpGridData::sharedFaceTag(const std::vector<std::array<int,3>>& startIJK_2Pa
20802080 }
20812081 return faceIsShared; // should be false here
20822082 };
2083-
2083+
20842084 const auto & [iFalse, iTrue, jFalse, jTrue, kFalse , kTrue ] = this ->getBoundaryPatchFaces (startIJK_2Patches[0 ], endIJK_2Patches[0 ]);
20852085 const auto & [iFalseOther, iTrueOther, jFalseOther, jTrueOther, kFalseOther , kTrueOther ] =
20862086 this ->getBoundaryPatchFaces (startIJK_2Patches[1 ], endIJK_2Patches[1 ]);
@@ -2668,11 +2668,11 @@ CpGridData::refinePatch(const std::array<int,3>& cells_per_dim, const std::array
26682668bool CpGridData::mark (int refCount, const cpgrid::Entity<0 >& element)
26692669{
26702670 if (refCount == -1 ) {
2671- OPM_THROW (std::logic_error, " Coarsening is not supported yet." );
2671+ return false ; // Coarsening is not supported yet.
26722672 }
26732673 // Prevent refinement if the cell has a non-neighbor connection (NNC).
26742674 if (hasNNCs ({element.index ()}) && (refCount == 1 )) {
2675- OPM_THROW (std::logic_error, " Refinement of cells with face representing an NNC is not supported yet. " );
2675+ return false ; // Refinement of cells with face representing an NNC is not supported yet
26762676 }
26772677 assert ((refCount == 0 ) || (refCount == 1 )); // Do nothing (0), Refine (1), Coarsen (-1) not supported yet.
26782678 if (mark_.empty ()) {
@@ -2699,7 +2699,7 @@ bool CpGridData::preAdapt()
26992699 if (local_empty)
27002700 mark_.resize (size (0 ));
27012701 }
2702-
2702+
27032703 // Detect the maximum mark across processes, and rewrite
27042704 // the local entry in mark_, i.e.,
27052705 // mark_[ element.index() ] = max{ local marks in processes where this element belongs to}.
0 commit comments