24小时热门版块排行榜    

Znn3bq.jpeg
查看: 833  |  回复: 8
当前主题已经存档。
【有奖交流】积极回复本帖子,参与交流,就有机会分得作者 dxp5380 的 3 个金币

dxp5380

金虫 (著名写手)

[交流] 【求助】计算时出现的问题

用ABINIT 计算时出现一下问题,请虫友们帮忙找一下原因,该如何解决。初次接触ABINIT,望大家不吝赐教!谢谢!
-P-0000  kpgsph : BUG -
-P-0000   The variables ikg, mkmem, and mpw  must satisfy ikg<=(mkmem-1)*mpw,
-P-0000   while the arguments of the routine are
-P-0000   ikg =  291671, mkmem =      18, mpw =   16959
-P-0000   Probable cause: Known error in invars1 for parallel spin-polarized case.
-P-0000   Temporary solution: Change the number of parallel processes.
-P-0000
-P-0000  leave_new : decision taken to exit ...
-P-0000  leave_new : synchronization done...
-P-0000  leave_new : exiting...
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

casjxm

铜虫 (正式写手)

★ ★
dxp5380(金币+1,VIP+0):谢谢 8-29 15:53
zxzj05(金币+1,VIP+0):3Q! 鼓励讨论! 10-13 13:52
个人观点: 可能与使用的核数有关,我曾算了一个东西,超过10个核,算着算着就会出错,设置小于10个核就没问题了。
2楼2009-08-29 14:52:13
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
3楼2009-08-29 15:52:10
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

dxp5380

金虫 (著名写手)

★ ★
fegg7502(金币+2,VIP+0):鼓励交流2 8-30 17:06
我感觉不是cpu数量的原因。我连续优化过,
ndtset 3  getcell -1  getxred -1
  ngkpt1 8 8 8
  ngkpt2 10 10 10
  ngkpt3 12 12 12
一切正常。但在下面的计算中出现了问题:
ndtset 4  getcell -1  getxred -1
strtarget1
strtarget2
strtarget3
strtarget4
(后面具体的数就不列了)
只算了一步,就出现了上面的问题。请问:在这种情况下的优化参数如何设?如optcell,ionmov,iscf等。另外还需要那些参数?谢谢!
4楼2009-08-29 16:19:23
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

dxp5380

金虫 (著名写手)

5楼2009-09-16 20:00:46
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

zxzj05

荣誉版主 (著名写手)

★ ★ ★
freshgirl(金币+1,VIP+0):谢谢参与~ 9-16 22:09
dxp5380(金币+2,VIP+0):谢谢 9-23 08:17
The variables ikg, mkmem, and mpw  must satisfy ikg<=(mkmem-1)*mpw,
肯能是参数之间的设置有冲突
储氢家族欢迎储氢研究者!
6楼2009-09-16 21:34:19
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

dxp5380

金虫 (著名写手)

ikg是什么意思呀?怎么变量表中找不到呀?
7楼2009-09-23 11:13:04
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wenyun0876

木虫 (正式写手)

老木虫

★ ★
zxzj05(金币+1,VIP+0):3Q! 鼓励讨论! 10-13 13:53
dxp5380(金币+1,VIP+0):谢谢! 10-13 14:33
" Probable cause: Known error in invars1 for parallel spin-polarized case"

可能是并行化原因吧
胸无块垒心常泰,腹有诗书气自华!
8楼2009-10-13 10:51:44
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

netx_ray

木虫 (小有名气)

★ ★ ★ ★ ★
zxzj05(金币+2,VIP+0):3Q! 鼓励讨论! 10-13 13:53
dxp5380(金币+3,VIP+0):不太明白!谢谢你! 10-13 14:33
ABINIT的maillist有人提到过这个问题,是getcell 和getxred 引起的

Dear Colleagues, I have identified a bug in kpgsph.F90 (or else, a bug in how
it's called) which arises when getcell 1 is used to initiate a calculation
given the optimized cell from a previous run.

The problem arises in the calculation of the number of planewaves npw. At about
line 390 is the line npw=ig, where ig was calculated in the above loops. The
variable npw is then used later in several places involving the array kg_small,
which was dimensioned (3,mpw*np_band). The problem is that in the getcell 1
case, it occurs occasionally to have ig and hence npw exceed mpw, in which case
the program crashes due to array out of bounds.

In the nested loops where ig is computed, there are multiple places where the
array limits are checked for  (see line 273 for example: if (ig <= mpw*np_band)
then...).  However, the value of ig itself is not controlled in this way, so
later when npw=ig is set, it can be that npw is too big for the array.

I have implemented the following work-around (wouldn't call it a bug fix
because it seems too dirty):

npw=ig is replaced by

if (mpw*np_band > 0 .and. ig > mpw*np_band) then
npw=mpw
else
npw=ig
endif

this works but I'm not sure it's quite the proper thing to do. To be honest I
don't really understand the calculation of ig leading up to this point so there
might be unintended consequences of this assignment.

Please note that this is not a failure to use dilatmx in the second
calculation, the code requires you in the getcell = 1 case to use a big enough
dilatmx to account for the changes to acell that occured in the optimization.
So in other words I use dilatmx in both the optimization and subsequent
calculations using getcell 1.

I would appreciate comments and clarifications.
9楼2009-10-13 11:02:44
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 dxp5380 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考博] 申博/考博 +4 啃面包的小书虫 2026-04-17 8/400 2026-04-21 16:26 by 啃面包的小书虫
[考研] 一志愿A区211,22408 321求调剂 +7 随心所欲☆ 2026-04-15 8/400 2026-04-21 08:22 by Equinoxhua
[考研] 295分求调剂 +6 ?要上岸? 2026-04-17 6/300 2026-04-21 08:18 by Equinoxhua
[考研] 085600材料与化工调剂 5+3 孜孜不倦2002 2026-04-19 6/300 2026-04-20 21:25 by babero
[论文投稿] 期刊推荐 +3 材料研究生 2026-04-15 5/250 2026-04-20 16:02 by 豆豆7758
[论文投稿] 有没有接收比较快的sci期刊呀,最好在一个月之内的,研三孩子求毕业 20+4 之护着 2026-04-16 7/350 2026-04-20 15:45 by 豆豆7758
[教师之家] 又一批高校组建人工智能学院 师资行吗 不是骗人吗 +4 yexuqing 2026-04-19 4/200 2026-04-20 14:47 by brantleo
[考研] 337求调剂 +3 jyz04 2026-04-18 3/150 2026-04-20 12:24 by 研可安
[考博] 申博 +3 Xyyx. 2026-04-18 3/150 2026-04-20 10:44 by YuY66
[考博] 湖南大学刘巧玲课题组2026年第二批次博士研究生招生信息 +3 南风观火 2026-04-18 5/250 2026-04-20 10:13 by 南风观火
[考研] 求计算机方向调剂 +3 Toffee2 2026-04-16 6/300 2026-04-19 22:37 by ll叶
[考研] 294求调剂 +8 淡然654321 2026-04-17 9/450 2026-04-19 19:51 by Equinoxhua
[考研] 求调剂 +10 小聂爱学习 2026-04-16 12/600 2026-04-19 16:51 by 中豫男
[考研] 求调剂 +6 苦命人。。。 2026-04-18 7/350 2026-04-19 16:27 by 中豫男
[考研] 294求调剂 +15 淡然654321 2026-04-15 15/750 2026-04-19 08:20 by cuisz
[考研] 300求调剂 +12 橙a777 2026-04-15 12/600 2026-04-18 23:51 by 路病情
[考研] 接受任何调剂 +6 也就是栗子 2026-04-17 7/350 2026-04-18 17:20 by 涵竹刘
[考研] 260求调剂 +4 Zyt1314520.. 2026-04-17 5/250 2026-04-18 08:28 by babysonlkd
[有机交流] 二苯甲酮酸类衍生物 50+3 小白爱主人 2026-04-17 6/300 2026-04-17 18:47 by kf2781974
[考研] 一志愿沪9,生物学326求调剂 +9 刘墨墨 2026-04-15 9/450 2026-04-16 17:14 by 崔崔崔cccc
信息提示
请填处理意见