|February 27, 2015, 23:24||
Join Date: Jul 2012
Posts: 54Rep Power: 4
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
pnCell[Pstream::myProcNo()] = mesh_.cellCells()[idCell[a]][b];
nCell[c] = pnCell[c];
and the error message is
 --> FOAM FATAL IO ERROR:
 error in IOstream "IOstream" for operation operator>>(Istream&, List<T>&) : reading first token
 file: IOstream at line 0.
 From function IOstream::fatalCheck(const char*) const
 in file db/IOstreams/IOstreams/IOstream.C at line 114.
FOAM parallel run exiting
Anyone has suggestions as to how to solve this problem?
|Thread||Thread Starter||Forum||Replies||Last Post|
|Error running simpleFoam in parallel||Yuby||OpenFOAM Running, Solving & CFD||10||February 25, 2015 18:57|
|Can not run OpenFOAM in parallel in clusters, help!||ripperjack||OpenFOAM Running, Solving & CFD||5||May 6, 2014 15:25|
|simpleFoam parallel||AndrewMortimer||OpenFOAM Running, Solving & CFD||10||November 12, 2013 18:03|
|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|