- 积分
- 21855
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2017-10-30
- 最后登录
- 1970-1-1
|
发表于 2019-12-14 18:21:17
|
显示全部楼层
我记得有大概一个参考规则,它mpirun的时候会将整个网格分块进行计算,比如说-np定为16的时候,横纵两个方向则是4x4,一般要保证横纵的格点数分别除以4之后大于10.具体的链接地址一时半会忘记在哪里了,等记起来来再更新。
或者,看这个错误提示,
For domain 1 , the domain size is too small for this many processors, or the decomposition aspect ratio is poor.
Minimum decomposed computational patch size, either x-dir or y-dir, is 10 grid cells.
e_we = 33, nproc_x = 3, with cell width in x-direction = 11
e_sn = 40, nproc_y = 5, with cell width in y-direction = 8
这里-np选用15,那么他会分成3x5, 而你的格点e_sn为40的时候,40/5=8<10。 |
|