Skip to content

Commit 177c699

Browse files
author
Mariana Rossi
authored
Merge pull request i-pi#479 from wxwth/patch-1
Attempt to output consistent potential energy when coupling VASP with i-pi
2 parents c41b8f0 + f77d92e commit 177c699

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/clients/vasp/vasp.6.3.0-ipi.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ diff -rupN ../6.3.0_orig/src/main.F src/main.F
257257
TSIF = 0.0_q
258258

259259
+ ! ipi initialize variables
260-
+ EVTOHA = 1_q/(2_q*RYTOEV)
260+
+ EVTOHA = 1_q/(2_q*13.605693)
261261
+ FOCTOAU = AUTOA*EVTOHA
262262
+ HASDATA = .FALSE.
263263
+
@@ -456,7 +456,7 @@ diff -rupN ../6.3.0_orig/src/main.F src/main.F
456456
+ ! communicates energy info back to i-pi
457457
+ IF (COMM%NODE_ME == 1) THEN
458458
+ WRITE(TIU0,*) " @ DRIVER MODE: Returning v,forces,stress "
459-
+ IPIPOT = (TOTEN-E%EENTROPY/(2+NORDER))*EVTOHA
459+
+ IPIPOT = TOTEN*EVTOHA
460460
+ DO NI=1,NAT
461461
+ IPIFORCES(NI*3-2) = TIFOR(1,NI)*FOCTOAU
462462
+ IPIFORCES(NI*3-1) = TIFOR(2,NI)*FOCTOAU

0 commit comments

Comments
 (0)