View Issue Details

IDProjectCategoryView StatusLast Update
0000104OpenFOAMBugpublic2010-12-09 09:54
Reporteruser94Assigned Touser4 
PrioritynormalSeveritycrashReproducibilitysometimes
Status closedResolutionno change required 
PlatformLinuxOSUbuntuOS Version10.04
Summary0000104: cellCells() gives segmentation fault on non-orthogonal mesh
DescriptionWhen the cellCells function is used to create a labelList of a cell's neighbours, the program crashes giving a segmentation fault unless the mesh is completely orthogonal.

Here is an example of the code used:
label probeCell = mesh_.findCell(probePoint); //Label cell probePoint is in
const labelList& probeCellNeighbours = mesh_.cellCells()[probeCell];

The first line executes fine. The second line using cellCells() works fine on a flat plate mesh made in blockMesh. When the second line is used on a structured mesh around an airfoil (for instance, the airFoil2D mesh in the simpleFoam tutorials), it gives a segmentation fault and crashes the program. It seems to hit some cells and make an infinitely long list of neighbors until it crashes.
TagsNo tags attached.

Activities

user4

2010-12-09 09:54

  ~0000172

Check the return value of your call to findCell. Most likely it is -1 (= point not in any cell).

Issue History

Date Modified Username Field Change
2010-12-08 21:06 user94 New Issue
2010-12-09 09:54 user4 Note Added: 0000172
2010-12-09 09:54 user4 Status new => closed
2010-12-09 09:54 user4 Assigned To => user4
2010-12-09 09:54 user4 Resolution open => no change required
2010-12-09 09:54 user4 Fixed in Version => 1.7.x