View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003754 | OpenFOAM | Contribution | public | 2021-11-20 14:36 | 2021-11-20 21:04 |
Reporter | thf5000y2k | Assigned To | henry | ||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | resolved | Resolution | fixed | ||
Platform | GNU/Linux | OS | Ubuntu | OS Version | 20.04 |
Product Version | dev | ||||
Summary | 0003754: Rudundent expression in blockMesh causes performance lost | ||||
Description | There's redundent expression in "/applications/utilities/mesh/generation/blockMesh/blockMesh.C". It leads a recomputation for blockMesh's cells, which could be avoid. https://github.com/OpenFOAM/OpenFOAM-dev/blob/master/applications/utilities/mesh/generation/blockMesh/blockMesh.C - line276 const List<FixedList<label, 8>> blockCells = b.cells(); - line305 celli += b.cells().size(); The b.cells() in line 305 is same as that in line 276. It can be fixed by the statements below. - line276 const List<FixedList<label, 8>> blockCells = b.cells(); - line305 celli += blockCells.size(); | ||||
Steps To Reproduce | Just look up the source code, then can easily find out. https://github.com/OpenFOAM/OpenFOAM-dev/blob/master/applications/utilities/mesh/generation/blockMesh/blockMesh.C | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2021-11-20 14:36 | thf5000y2k | New Issue | |
2021-11-20 21:04 | henry | Assigned To | => henry |
2021-11-20 21:04 | henry | Status | new => resolved |
2021-11-20 21:04 | henry | Resolution | open => fixed |
2021-11-20 21:04 | henry | Note Added: 0012269 |