| Anonymous | Login | Signup for a new account | 2013-06-19 21:56 BST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||
| 0000104 | OpenFOAM | [All Projects] Bug | public | 2010-12-08 21:06 | 2010-12-09 09:54 | |||
| Reporter | doedmund | |||||||
| Assigned To | mattijs | |||||||
| Priority | normal | Severity | crash | Reproducibility | sometimes | |||
| Status | closed | Resolution | no change required | |||||
| Platform | Linux | OS | Ubuntu | OS Version | 10.04 | |||
| Product Version | 1.7.x | |||||||
| Target Version | Fixed in Version | 1.7.x | ||||||
| Summary | 0000104: cellCells() gives segmentation fault on non-orthogonal mesh | |||||||
| Description | When 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. | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Notes |
|
|
(0000172) mattijs (manager) 2010-12-09 09:54 |
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 | doedmund | New Issue | |
| 2010-12-09 09:54 | mattijs | Note Added: 0000172 | |
| 2010-12-09 09:54 | mattijs | Status | new => closed |
| 2010-12-09 09:54 | mattijs | Assigned To | => mattijs |
| 2010-12-09 09:54 | mattijs | Resolution | open => no change required |
| 2010-12-09 09:54 | mattijs | Fixed in Version | => 1.7.x |