Skip to content

Commit

Permalink
wrong usage of siesta2sisl
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Papior <[email protected]>
  • Loading branch information
zerothi committed Nov 25, 2024
1 parent 95370a9 commit f6df3fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sisl/io/siesta/siesta_nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ def write_hamiltonian(self, H, **kwargs):
_csr_to_siesta(H.geometry, csr)
csr.finalize(sort=kwargs.get("sort", True))

_mat_siesta2sisl(H, dtype=np.float64)
_mat_sisl2siesta(H, dtype=np.float64)

# Ensure that the geometry is written
self.write_geometry(H.geometry)
Expand Down Expand Up @@ -683,7 +683,7 @@ def write_density_matrix(self, DM, **kwargs):
# Convert to siesta CSR (we don't need to sort this matrix)
_csr_to_siesta(DM.geometry, csr)
csr.finalize(sort=kwargs.get("sort", True))
_mat_siesta2sisl(DM, dtype=np.float64)
_mat_sisl2siesta(DM, dtype=np.float64)

# Ensure that the geometry is written
self.write_geometry(DM.geometry)
Expand Down Expand Up @@ -741,7 +741,7 @@ def write_energy_density_matrix(self, EDM, **kwargs):
# no need to sort this matrix
_csr_to_siesta(EDM.geometry, csr)
csr.finalize(sort=kwargs.get("sort", True))
_mat_siesta2sisl(EDM, dtype=np.float64)
_mat_sisl2siesta(EDM, dtype=np.float64)

# Ensure that the geometry is written
self.write_geometry(EDM.geometry)
Expand Down

0 comments on commit f6df3fb

Please sign in to comment.