CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

converting cellCells to properly using globalCellCells

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   July 13, 2016, 11:44
Question converting cellCells to properly using globalCellCells
New Member
Join Date: Apr 2011
Posts: 11
Rep Power: 8
D.R. is on a distinguished road
Hello All,
I have a code that works in serial which is looking for neighboring cells of a given cell.

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)

I am currently trying to rewrite my serial code in parallel, and to do so, i must switch from using the
functionality to
as is noted in the source code for cellCells.

I have not been able to compile, as the code is telling me that
error: ‘const class Foam::fvMesh’ has no member named ‘globalCellCells’
I am wondering how to use globalCellCells for the same purpose
D.R. is offline   Reply With Quote


interfoam, parallel

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluent converting 'wall' to 'interior' BC for hybrid mesh DarrenC FLUENT 7 November 15, 2016 11:01

All times are GMT -4. The time now is 04:22.