mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 20:34:38 +01:00
added new test in w90_convert.py for rot_mat_type='hloc_diag'
This commit is contained in:
parent
393753dc96
commit
765bb6b3cb
@ -5,7 +5,7 @@ foreach(file ${all_h5_ref_files})
|
||||
endforeach()
|
||||
|
||||
# Copy other files
|
||||
FILE(COPY SrVO3.pmat SrVO3.struct SrVO3.outputs SrVO3.oubwin SrVO3.ctqmcout SrVO3.symqmc SrVO3.sympar SrVO3.parproj hk_convert_hamiltonian.hk LaVO3-Pnma_hr.dat LaVO3-Pnma.inp LaVO3-Pnma_ef_hr.dat LaVO3-Pnma_ef.inp DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
||||
FILE(COPY SrVO3.pmat SrVO3.struct SrVO3.outputs SrVO3.oubwin SrVO3.ctqmcout SrVO3.symqmc SrVO3.sympar SrVO3.parproj hk_convert_hamiltonian.hk LaVO3-Pnma_hr.dat LaVO3-Pnma.inp LaVO3-Pnma_ef_hr.dat LaVO3-Pnma_ef.inp LaVO3-Pbnm.inp LaVO3-Pbnm_hr.dat DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
|
||||
# List of all tests
|
||||
|
7
test/python/LaVO3-Pbnm.inp
Normal file
7
test/python/LaVO3-Pbnm.inp
Normal file
@ -0,0 +1,7 @@
|
||||
0 3 3 2
|
||||
8.0
|
||||
4
|
||||
0 0 2 3 0 0
|
||||
1 0 2 3 0 0
|
||||
2 0 2 3 0 0
|
||||
3 0 2 3 0 0
|
3893
test/python/LaVO3-Pbnm_hr.dat
Normal file
3893
test/python/LaVO3-Pbnm_hr.dat
Normal file
File diff suppressed because it is too large
Load Diff
@ -26,9 +26,18 @@ from h5 import *
|
||||
from triqs.utility.h5diff import h5diff
|
||||
import triqs.utility.mpi as mpi
|
||||
|
||||
# test rot_mat_type='hloc_diag'
|
||||
Converter = Wannier90Converter(seedname='LaVO3-Pbnm',hdf_filename='w90_convert.out.h5', rot_mat_type='hloc_diag')
|
||||
|
||||
Converter.convert_dft_input()
|
||||
|
||||
if mpi.is_master_node():
|
||||
h5diff("w90_convert.out.h5","w90_convert_hloc_diag.ref.h5")
|
||||
|
||||
# test rot_mat_type='wannier'
|
||||
Converter = Wannier90Converter(seedname='LaVO3-Pnma',hdf_filename='w90_convert.out.h5', rot_mat_type='wannier')
|
||||
|
||||
Converter.convert_dft_input()
|
||||
|
||||
if mpi.is_master_node():
|
||||
h5diff("w90_convert.out.h5","w90_convert.ref.h5")
|
||||
h5diff("w90_convert.out.h5","w90_convert_wannier.ref.h5")
|
||||
|
BIN
test/python/w90_convert_hloc_diag.ref.h5
Normal file
BIN
test/python/w90_convert_hloc_diag.ref.h5
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user