Skip to content

Update for qe v7.2#444

Merged
wanghan-iapcm merged 2 commits intodeepmodeling:develfrom
pee8379:patch-1
Apr 3, 2023
Merged

Update for qe v7.2#444
wanghan-iapcm merged 2 commits intodeepmodeling:develfrom
pee8379:patch-1

Conversation

@pee8379
Copy link
Contributor

@pee8379 pee8379 commented Apr 2, 2023

From QE v7.2, pw.x prints each contributions to forces acting on atoms (i.e. non-local, ionic, local, core correction, etc...), right after original 'Forces acting on atoms' without blank line. Thus, it make 'list index out of range' error, from ret.append(...) in get_force.

This changes make length of list blk in get_forces same as total number of atoms, avoiding out of range error.

pee8379 and others added 2 commits April 3, 2023 00:12
From QE v7.2, pw.x prints each contributions to forces acting on atoms (i.e. non-local, ionic, local, core correction, etc...), right after original 'Forces acting on atoms' without blank line.
Thus, it make 'list index out of range' error, from ret.append(...) in get_force.

This changes make length of list blk in get_forces same as total number of atoms, avoiding out of range error.


Signed-off-by: pee8379 <pee8379@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Apr 2, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (9507165) 82.51% compared to head (b437977) 82.51%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #444   +/-   ##
=======================================
  Coverage   82.51%   82.51%           
=======================================
  Files          68       68           
  Lines        6198     6199    +1     
=======================================
+ Hits         5114     5115    +1     
  Misses       1084     1084           
Impacted Files Coverage Δ
dpdata/qe/scf.py 94.21% <100.00%> (+0.04%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@njzjz njzjz changed the base branch from master to devel April 2, 2023 16:26
@wanghan-iapcm wanghan-iapcm merged commit c988bc2 into deepmodeling:devel Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants