CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   FATAL ERROR - parallel processing (https://www.cfd-online.com/Forums/openfoam-solving/143624-fatal-error-parallel-processing.html)

P1361 October 29, 2014 11:11

FATAL ERROR - parallel processing
 
Hi everybody,

I tried to run a case on 16 processors using buoyantPimpleFoam solver.

I decomposed the domain according to the user's guide. And then run the case using the command:



<path>$ mpirun -np 16 buoyantPimpleFoam -parallel



but I got the following error:



--> FOAM FATAL ERROR:
bool IPstream::init(int& argc, char**& argv) : attempt to run parallel on 1 processor

From function UPstream::init(int& argc, char**& argv)
in file UPstream.C at line 79.

FOAM aborting




I have already used Foam in parallel, and am pretty sure that I've done everything correctly. Anybody has an idea what this error means?!

Please help! I may lose my job!!

jiahui_93 March 12, 2018 10:07

hi, i know it was a long post. Just to share in case others are facing it. I solved it by recheck and changing the number of domains in decomposeParDict to that of the np. I am not sure if your case has the same careless mistake :p
because line 79 shows this:
Code:

if (numprocs <= 1)
    {
        FatalErrorInFunction
            << "bool IPstream::init(int& argc, char**& argv) : "
              "attempt to run parallel on 1 processor"
            << Foam::abort(FatalError);
    }

Btw, I read a solution which is u can move the line relating to OF to the end of the bashrc file in opt/OpenFoam 5/ etc/ bashrc.

Please correct me if I am wrong. Thanks :)


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