@李东岳 感谢老师回复,我的是课题组服务器,应该是有48核心的。我用GPT教的测试并行c程序是可以成功运行的,但是openfoam每个案例都有并行问题。不知道怎么搞
Y
yangguowuguo
@yangguowuguo
帖子
-
并行计算报错 -
并行计算报错案例是openfoam12下的hotRadiationHomeFvDOM,划分并行区域decomposePar没问题。但是输入并行命令mpirun -np 4 foamRun -parallel以后有以下报错。求求求求解决办法!!!!!来个好心人吧!!!
--> FOAM FATAL ERROR: bool IPstream::init(int& argc, char**& argv) : attempt to run parallel on 1 processor From function static bool Foam::UPstream::init(int&, char**&, bool) in file UPstream.C at line 108. FOAM aborting #0 Foam::error::printStack(Foam::Ostream&) at ??:? #1 Foam::error::abort() --> FOAM FATAL ERROR: bool IPstream::init(int& argc, char**& argv) : attempt to run parallel on 1 processor From function static bool Foam::UPstream::init(int&, char**&, bool) in file UPstream.C at line 108. FOAM aborting #0 Foam::error::printStack(Foam::Ostream&) at ??:? #2 Foam::UPstream::init(int&, char**&, bool) --> FOAM FATAL ERROR: bool IPstream::init(int& argc, char**& argv) : attempt to run parallel on 1 processor From function static bool Foam::UPstream::init(int&, char**&, bool) in file UPstream.C at line 108. FOAM aborting #0 Foam::error::printStack(Foam::Ostream&) at ??:? #1 Foam::error::abort() at ??:? #3 Foam::argList::argList(int&, char**&, bool, bool, bool) --> FOAM FATAL ERROR: bool IPstream::init(int& argc, char**& argv) : attempt to run parallel on 1 processor From function static bool Foam::UPstream::init(int&, char**&, bool) in file UPstream.C at line 108. FOAM aborting #0 Foam::error::printStack(Foam::Ostream&) at ??:? #1 Foam::error::abort() at ??:? #4 at ??:? #1 Foam::error::abort() at ??:?