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

cellCells() parallel

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Carlen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 27, 2015, 22:24
Default cellCells() parallel
  #1
Member
 
Join Date: Jul 2012
Posts: 67
Rep Power: 13
Carlen is on a distinguished road
Hi foamers,

I am doing a simulation that requires me to find neighbour cells of certain cells in a domain. cellCells() works fine for serial run but fails to look for all neighbour cells in parallel: it only looks for cells in processor0. I tried to use Pstream but it fails every time when I try to run in parallel. Below is my code.

forAll(mesh_.cellCells()[idCell[a]], b)//Create a list for neighbour cells of idCell
{
labelList pnCell(Pstream::nProcs(),0);
pnCell[Pstream::myProcNo()] = mesh_.cellCells()[idCell[a]][b];
reduce(pnCell, maxOp<labelList>());
forAll(pnCell, c)
{
nCell.resize(c+1);
nCell[c] = pnCell[c];
}
pnCell.clear();
}

and the error message is

[2] --> FOAM FATAL IO ERROR:
[2] error in IOstream "IOstream" for operation operator>>(Istream&, List<T>&) : reading first token
[2]
[2] file: IOstream at line 0.
[2]
[2] From function IOstream::fatalCheck(const char*) const
[2] in file db/IOstreams/IOstreams/IOstream.C at line 114.
[2]
FOAM parallel run exiting
[2]

Anyone has suggestions as to how to solve this problem?

Best regards,
Carlen
D.R. likes this.
Carlen is offline   Reply With Quote

Old   November 16, 2017, 05:40
Default Hi
  #2
Senior Member
 
Join Date: Sep 2010
Posts: 226
Rep Power: 16
T.D. is on a distinguished road
Any answer for this problem ? or not yet
T.D. is offline   Reply With Quote

Reply


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
Error running simpleFoam in parallel Yuby OpenFOAM Running, Solving & CFD 14 October 7, 2021 04:38
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 18:45
Can not run OpenFOAM in parallel in clusters, help! ripperjack OpenFOAM Running, Solving & CFD 5 May 6, 2014 15:25
simpleFoam in parallel issue plucas OpenFOAM Running, Solving & CFD 3 July 17, 2013 11:30
parallel Grief: BoundaryFields ok in single CPU but NOT in Parallel JR22 OpenFOAM Running, Solving & CFD 2 April 19, 2013 16:49


All times are GMT -4. The time now is 05:19.