diff --git a/src/conversion/ccm/reader/ccmReader.H b/src/conversion/ccm/reader/ccmReader.H index 283005fd6d..c1e66415ed 100644 --- a/src/conversion/ccm/reader/ccmReader.H +++ b/src/conversion/ccm/reader/ccmReader.H @@ -206,7 +206,7 @@ private: // Private Data //- Reader options - const unique_ptr options_; + const std::unique_ptr options_; //- Enumeration defining the status of a ccmio node diff --git a/src/conversion/ccm/writer/ccmWriter.H b/src/conversion/ccm/writer/ccmWriter.H index 2a2127da4f..b62eadf910 100644 --- a/src/conversion/ccm/writer/ccmWriter.H +++ b/src/conversion/ccm/writer/ccmWriter.H @@ -133,7 +133,7 @@ class writer // Member Data //- MapIds for various components (cell, internalFaces, boundaries) - unique_ptr maps_; + std::unique_ptr maps_; //- mesh reference const polyMesh& mesh_; diff --git a/src/conversion/common/reader/meshReader.H b/src/conversion/common/reader/meshReader.H index 839f174755..68baf6a775 100644 --- a/src/conversion/common/reader/meshReader.H +++ b/src/conversion/common/reader/meshReader.H @@ -122,7 +122,7 @@ private: //- Point-cell addressing. Used for topological analysis // Warning. This point cell addressing list potentially contains // duplicate cell entries. Use additional checking - mutable unique_ptr pointCellsPtr_; + mutable std::unique_ptr pointCellsPtr_; //- Association between two faces List interfaces_; diff --git a/src/dynamicMesh/attachDetach/attachDetach.H b/src/dynamicMesh/attachDetach/attachDetach.H index 1056a4acac..eecc3f1ba0 100644 --- a/src/dynamicMesh/attachDetach/attachDetach.H +++ b/src/dynamicMesh/attachDetach/attachDetach.H @@ -105,7 +105,7 @@ class attachDetach // Private addressing data. Created on topology change //- Map of matching points - mutable unique_ptr> pointMatchMapPtr_; + mutable std::unique_ptr> pointMatchMapPtr_; // Private Member Functions diff --git a/src/dynamicMesh/boundaryMesh/boundaryMesh.C b/src/dynamicMesh/boundaryMesh/boundaryMesh.C index cfae3a345c..c98d1c6dbe 100644 --- a/src/dynamicMesh/boundaryMesh/boundaryMesh.C +++ b/src/dynamicMesh/boundaryMesh/boundaryMesh.C @@ -1806,7 +1806,7 @@ void Foam::boundaryMesh::changeFaces // Reconstruct 'mesh' from new faces and (copy of) existing points. - unique_ptr newMeshPtr(new bMesh(newFaces, mesh().points())); + std::unique_ptr newMeshPtr(new bMesh(newFaces, mesh().points())); // Reset meshFace_ to new ordering. meshFace_.transfer(newMeshFace); diff --git a/src/dynamicMesh/boundaryMesh/boundaryMesh.H b/src/dynamicMesh/boundaryMesh/boundaryMesh.H index 9540d59af6..0b20ef4100 100644 --- a/src/dynamicMesh/boundaryMesh/boundaryMesh.H +++ b/src/dynamicMesh/boundaryMesh/boundaryMesh.H @@ -77,7 +77,7 @@ class boundaryMesh // Private Data //- All boundary mesh data. Reconstructed every time faces are repatched - unique_ptr meshPtr_; + std::unique_ptr meshPtr_; //- Patches. Reconstructed every time faces are repatched. PtrList patches_; diff --git a/src/dynamicMesh/layerAdditionRemoval/layerAdditionRemoval.H b/src/dynamicMesh/layerAdditionRemoval/layerAdditionRemoval.H index 2cb206a7a4..25e5e68327 100644 --- a/src/dynamicMesh/layerAdditionRemoval/layerAdditionRemoval.H +++ b/src/dynamicMesh/layerAdditionRemoval/layerAdditionRemoval.H @@ -77,10 +77,10 @@ class layerAdditionRemoval mutable scalar oldLayerThickness_; //- Point pairing - mutable unique_ptr pointsPairingPtr_; + mutable std::unique_ptr pointsPairingPtr_; //- Face pairing - mutable unique_ptr facesPairingPtr_; + mutable std::unique_ptr facesPairingPtr_; //- Layer removal trigger time index mutable label triggerRemoval_; diff --git a/src/dynamicMesh/meshCut/cellCuts/cellCuts.H b/src/dynamicMesh/meshCut/cellCuts/cellCuts.H index 6b020fe730..e3fc64798b 100644 --- a/src/dynamicMesh/meshCut/cellCuts/cellCuts.H +++ b/src/dynamicMesh/meshCut/cellCuts/cellCuts.H @@ -134,7 +134,7 @@ class cellCuts //- Cuts per existing face (includes those along edge of face) // Cuts in no particular order. - mutable unique_ptr faceCutsPtr_; + mutable std::unique_ptr faceCutsPtr_; //- Per face : cut across edge (so not along existing edge) // (can only be one per face) diff --git a/src/dynamicMesh/polyMeshAdder/faceCoupleInfo.H b/src/dynamicMesh/polyMeshAdder/faceCoupleInfo.H index e21c5323f4..721dd6b453 100644 --- a/src/dynamicMesh/polyMeshAdder/faceCoupleInfo.H +++ b/src/dynamicMesh/polyMeshAdder/faceCoupleInfo.H @@ -165,10 +165,10 @@ class faceCoupleInfo static const scalar angleTol_; //- Master patch - unique_ptr masterPatchPtr_; + std::unique_ptr masterPatchPtr_; //- Slave patch - unique_ptr slavePatchPtr_; + std::unique_ptr slavePatchPtr_; //- Description of cut. @@ -186,7 +186,7 @@ class faceCoupleInfo // Orientation of cutFaces should be same as masterFaces! pointField cutPoints_; - unique_ptr cutFacesPtr_; + std::unique_ptr cutFacesPtr_; //- Additional point coupling information. Is between points on // boundary of both meshes. diff --git a/src/dynamicMesh/slidingInterface/enrichedPatch/enrichedPatch.H b/src/dynamicMesh/slidingInterface/enrichedPatch/enrichedPatch.H index a67de9d114..bec45a2d29 100644 --- a/src/dynamicMesh/slidingInterface/enrichedPatch/enrichedPatch.H +++ b/src/dynamicMesh/slidingInterface/enrichedPatch/enrichedPatch.H @@ -99,38 +99,38 @@ class enrichedPatch // Demand-driven private data //- Enriched patch - mutable unique_ptr enrichedFacesPtr_; + mutable std::unique_ptr enrichedFacesPtr_; //- Mesh points - mutable unique_ptr meshPointsPtr_; + mutable std::unique_ptr meshPointsPtr_; //- Local faces - mutable unique_ptr localFacesPtr_; + mutable std::unique_ptr localFacesPtr_; //- Local points - mutable unique_ptr localPointsPtr_; + mutable std::unique_ptr localPointsPtr_; //- Point-point addressing - mutable unique_ptr pointPointsPtr_; + mutable std::unique_ptr pointPointsPtr_; // Master point addressing - mutable unique_ptr> masterPointFacesPtr_; + mutable std::unique_ptr> masterPointFacesPtr_; // Cut faces and addressing //- Cut faces - mutable unique_ptr cutFacesPtr_; + mutable std::unique_ptr cutFacesPtr_; //- Cut face master // - the face on the master patch for internal faces // - the creator face for boundary face - mutable unique_ptr cutFaceMasterPtr_; + mutable std::unique_ptr cutFaceMasterPtr_; //- Cut face slave // - the face on the slave patch for internal faces // - -1 for boundary face - mutable unique_ptr cutFaceSlavePtr_; + mutable std::unique_ptr cutFaceSlavePtr_; // Private Member Functions diff --git a/src/dynamicMesh/slidingInterface/slidingInterface.H b/src/dynamicMesh/slidingInterface/slidingInterface.H index 064a5e49f7..f3ac02bf52 100644 --- a/src/dynamicMesh/slidingInterface/slidingInterface.H +++ b/src/dynamicMesh/slidingInterface/slidingInterface.H @@ -161,53 +161,53 @@ private: //- Cut face master face. Gives the index of face in master patch // the cut face has been created from. For a slave-only face // this will be -1 - mutable unique_ptr cutFaceMasterPtr_; + mutable std::unique_ptr cutFaceMasterPtr_; //- Cut face slave face. Gives the index of face in slave patch // the cut face has been created from. For a master-only face // this will be -1 - mutable unique_ptr cutFaceSlavePtr_; + mutable std::unique_ptr cutFaceSlavePtr_; //- Master zone faceCells - mutable unique_ptr masterFaceCellsPtr_; + mutable std::unique_ptr masterFaceCellsPtr_; //- Slave zone faceCells - mutable unique_ptr slaveFaceCellsPtr_; + mutable std::unique_ptr slaveFaceCellsPtr_; //- Master stick-out faces - mutable unique_ptr masterStickOutFacesPtr_; + mutable std::unique_ptr masterStickOutFacesPtr_; //- Slave stick-out faces - mutable unique_ptr slaveStickOutFacesPtr_; + mutable std::unique_ptr slaveStickOutFacesPtr_; //- Retired point mapping. // For every retired slave side point, gives the label of the // master point that replaces it - mutable unique_ptr> retiredPointMapPtr_; + mutable std::unique_ptr> retiredPointMapPtr_; //- Cut edge pairs // For cut points created by intersection two edges, // store the master-slave edge pair used in creation - mutable unique_ptr>> cutPointEdgePairMapPtr_; + mutable std::unique_ptr>> cutPointEdgePairMapPtr_; //- Slave point hit. The index of master point hit by the // slave point in projection. For no point hit, set to -1 - mutable unique_ptr slavePointPointHitsPtr_; + mutable std::unique_ptr slavePointPointHitsPtr_; //- Slave edge hit. The index of master edge hit by the // slave point in projection. For point or no edge hit, set to -1 - mutable unique_ptr slavePointEdgeHitsPtr_; + mutable std::unique_ptr slavePointEdgeHitsPtr_; //- Slave face hit. The index of master face hit by the // slave point in projection. - mutable unique_ptr> slavePointFaceHitsPtr_; + mutable std::unique_ptr> slavePointFaceHitsPtr_; //- Master point edge hit. The index of slave edge hit by // a master point. For no hit set to -1 - mutable unique_ptr masterPointEdgeHitsPtr_; + mutable std::unique_ptr masterPointEdgeHitsPtr_; //- Projected slave points - mutable unique_ptr projectedSlavePointsPtr_; + mutable std::unique_ptr projectedSlavePointsPtr_; // Private Member Functions diff --git a/src/dynamicMesh/slidingInterface/slidingInterfaceAttachedAddressing.C b/src/dynamicMesh/slidingInterface/slidingInterfaceAttachedAddressing.C index f7e43abc34..38e8647b6b 100644 --- a/src/dynamicMesh/slidingInterface/slidingInterfaceAttachedAddressing.C +++ b/src/dynamicMesh/slidingInterface/slidingInterfaceAttachedAddressing.C @@ -278,7 +278,7 @@ void Foam::slidingInterface::renumberAttachedAddressing const labelList& sfc = slaveFaceCells(); // Master side - unique_ptr newMfcPtr(new labelList(mfc.size(), -1)); + std::unique_ptr newMfcPtr(new labelList(mfc.size(), -1)); auto& newMfc = *newMfcPtr; const labelList& mfzRenumber = @@ -295,7 +295,7 @@ void Foam::slidingInterface::renumberAttachedAddressing } // Slave side - unique_ptr newSfcPtr(new labelList(sfc.size(), -1)); + std::unique_ptr newSfcPtr(new labelList(sfc.size(), -1)); auto& newSfc = *newSfcPtr; const labelList& sfzRenumber = @@ -331,7 +331,7 @@ void Foam::slidingInterface::renumberAttachedAddressing // Master side const labelList& msof = masterStickOutFaces(); - unique_ptr newMsofPtr(new labelList(msof.size(), -1)); + std::unique_ptr newMsofPtr(new labelList(msof.size(), -1)); auto& newMsof = *newMsofPtr; forAll(msof, facei) @@ -347,7 +347,7 @@ void Foam::slidingInterface::renumberAttachedAddressing // Slave side const labelList& ssof = slaveStickOutFaces(); - unique_ptr newSsofPtr(new labelList(ssof.size(), -1)); + std::unique_ptr newSsofPtr(new labelList(ssof.size(), -1)); auto& newSsof = *newSsofPtr; forAll(ssof, facei) @@ -376,7 +376,7 @@ void Foam::slidingInterface::renumberAttachedAddressing // Renumber the retired point map. Need to take a copy! const Map