|
[Sponsors] |
converting cellCells to properly using globalCellCells |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 13, 2016, 12:44 |
converting cellCells to properly using globalCellCells
|
#1 |
New Member
Join Date: Apr 2011
Posts: 13
Rep Power: 15 |
Hello All,
I have a code that works in serial which is looking for neighboring cells of a given cell. Code:
const fvMesh& mesh_ = alpha1.mesh(); forAll (alpha1, celli) { // labelListList& neigh_cells = mesh_.globalCellCells(celli); labelListList& neigh_cells = mesh_.cellCells(celli); std::set<label> all_neigh_cells; for (int i = 0; i < neigh_cells.size(); ++i) all_neigh_cells.insert(neigh_cells[i]); } I am currently trying to rewrite my serial code in parallel, and to do so, i must switch from using the Code:
cellCells Code:
globalCellCells http://cpp.openfoam.org/v3/a09054_source However, I have not been able to compile, as the code is telling me that Code:
error: ‘const class Foam::fvMesh’ has no member named ‘globalCellCells’ |
|
Tags |
interfoam, parallel |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fluent converting 'wall' to 'interior' BC for hybrid mesh | DarrenC | FLUENT | 8 | January 3, 2019 07:24 |