CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

converting cellCells to properly using globalCellCells

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 13, 2016, 11:44
Question converting cellCells to properly using globalCellCells
  #1
New Member
 
Join Date: Apr 2011
Posts: 9
Rep Power: 7
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.



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
functionality to
Code:
globalCellCells
as is noted in the source code for cellCells.

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’
I am wondering how to use globalCellCells for the same purpose
D.R. is offline   Reply With Quote

Reply

Tags
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 6 November 6, 2014 06:00


All times are GMT -4. The time now is 17:58.