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

converting cellCells to properly using globalCellCells

Register Blogs Community New Posts Updated Threads Search

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


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 Off
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 8 January 3, 2019 07:24


All times are GMT -4. The time now is 12:03.