ENH: add MeshObject Release() static method
- Delete() will perform a 'checkOut()' which does the following: * remove the object from the registry * delete the pointer (if owned by the registry) - Release() does the following: * transfer ownership of the pointer (if owned by the registry) - Store() does the following: * transfer ownership of the pointer to the registry ENH: use UPtrList of sorted objects for MeshObject updates - few allocations and lower overhead than using a HashTable, ensures the same walk order over the objects (in parallel) STYLE: adjust meshObject debug statements
Showing
- applications/test/gravityMeshObject/Test-gravityMeshObject.C 76 additions, 6 deletionsapplications/test/gravityMeshObject/Test-gravityMeshObject.C
- src/OpenFOAM/db/regIOobject/regIOobject.H 3 additions, 1 deletionsrc/OpenFOAM/db/regIOobject/regIOobject.H
- src/OpenFOAM/meshes/MeshObject/MeshObject.C 130 additions, 48 deletionssrc/OpenFOAM/meshes/MeshObject/MeshObject.C
- src/OpenFOAM/meshes/MeshObject/MeshObject.H 95 additions, 61 deletionssrc/OpenFOAM/meshes/MeshObject/MeshObject.H
Please register or sign in to comment