Files
lammps/examples/electrode/check_amat/check.py
2022-02-10 11:33:38 +01:00

13 lines
284 B
Python
Executable File

#!/bin/python3
import numpy as np
onestep = np.loadtxt("onestep.csv", skiprows=1)
twostep = np.loadtxt("twostep.csv", skiprows=1)
for matrix in [onestep, twostep]:
assert matrix.shape == (288, 288), matrix.shape
diff = abs(np.sum(onestep - twostep))
assert diff < 1e-11, diff