Skip to content

Commit a72e27f

Browse files
committed
Fixed the average calculation of Q in NEMD tutorial.
1 parent 7b38444 commit a72e27f

File tree

1 file changed

+1
-1
lines changed
  • examples/04_Carbon_thermal_transport_nemd_and_hnemd/ballistic

1 file changed

+1
-1
lines changed

examples/04_Carbon_thermal_transport_nemd_and_hnemd/ballistic/tutorial.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@
363363
"source": [
364364
"Q1 = (Ein[int(ndata/2)] - Ein[-1])/(ndata/2)/dt/Ns\n",
365365
"Q2 = (Eout[-1] - Eout[int(ndata/2)])/(ndata/2)/dt/Ns\n",
366-
"Q = mean([Q1, Q1]) # [eV/ps]\n",
366+
"Q = mean([Q1, Q2]) # [eV/ps]\n",
367367
"Q"
368368
]
369369
},

0 commit comments

Comments
 (0)