View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000360 | OpenFOAM | Bug | public | 2011-12-18 22:46 | 2011-12-20 10:51 |
Reporter | Assigned To | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | linux | OS | Ubuntu Linux | OS Version | 11.10 |
Summary | 0000360: incompressible RAS wall function "nu" at patch access error | ||||
Description | Accessing boundary nu values references deallocated memory in 12 locations throughout the incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions subfolders. The line of concern is: const scalarField& nuw = rasModel.nu()().boundaryField()[patchI]; I believe this line should be replaced with the following lines to avoid accessing the boundary field of the temporary volScalarField after its memory has been freed: const tmp<volScalarField> tnu = rasModel.nu(); const volScalarField& nu = tnu(); const scalarField& nuw = nu.boundaryField()[patchI]; I apologise if this error has already been fixed or raised or if my understanding of the error is flawed. | ||||
Steps To Reproduce | Use command "grep -r "rasModel[.]nu()()[.]boundaryField()\[patchI\].*" *" to find the erroneous lines. | ||||
Tags | No tags attached. | ||||
|
Thanks for the report version 2.1.x: fixed by commit 825bfdd80c91f563c2fff87e08a715287aafbf8e version 2.0.x: fixed by commit 6bd04ef73caac34f3894c3f2b91fa354fdf32886 |
Date Modified | Username | Field | Change |
---|---|---|---|
2011-12-18 22:46 |
|
New Issue | |
2011-12-20 10:51 |
|
Note Added: 0000853 | |
2011-12-20 10:51 |
|
Status | new => resolved |
2011-12-20 10:51 |
|
Fixed in Version | => 2.1.x |
2011-12-20 10:51 |
|
Resolution | open => fixed |
2011-12-20 10:51 |
|
Assigned To | => user2 |