3
0
mirror of https://github.com/triqs/dft_tools synced 2024-06-26 15:12:18 +02:00

added test for hk converter

This commit is contained in:
aichhorn 2014-04-03 14:37:55 +02:00
parent 4fb1f67645
commit ec21b7bba4
4 changed files with 200 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# load triqs helper to set up tests
find_package(TriqsTest)
FILE(COPY SrVO3.h5 SrVO3.ctqmcout SrVO3.symqmc SrVO3.sympar SrVO3.parproj DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
FILE(COPY SrVO3.h5 SrVO3.ctqmcout SrVO3.symqmc SrVO3.sympar SrVO3.parproj hamiltonian.hk DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
triqs_add_test_hdf(wien2k_convert " -p 1.e-6" )
triqs_add_test_hdf(hk_convert " -p 1.e-6" )
triqs_add_test_hdf(sumklda_basic " -d 1.e-6" )
triqs_add_test_hdf(srvo3_Gloc " -d 1.e-6" )
triqs_add_test_hdf(U_mat " -d 1.e-6" )

169
test/hamiltonian.hk Normal file
View File

@ -0,0 +1,169 @@
27
1.0
1
1 1 2 3
1
1 1 2 3 0 1
2 2 3
-0.99637800 0.00000000 0.00000000
0.00000000 -0.99637800 0.00000000
0.00000000 0.00000000 -0.99637800
0.00000000 0.00000000 0.00000000
0.00000000 0.00000000 0.00000000
0.00000000 0.00000000 0.00000000
-0.90056700 0.00000000 0.00000000
0.00000000 0.58187406 0.00000000
0.00000000 0.00000000 0.58187406
0.00000000 0.00000000 0.00000000
0.00000000 0.00000000 0.00000000
0.00000000 0.00000000 0.00000000
-0.90056701 0.00000000 0.00000000
0.00000000 0.58187389 0.00000000
0.00000000 0.00000000 0.58187389
0.00000000 -0.00000000 0.00000000
-0.00000000 0.00000000 0.00000000
0.00000000 0.00000000 0.00000000
0.58187406 0.00000000 0.00000000
0.00000000 0.58187406 0.00000000
0.00000000 0.00000000 -0.90056700
0.00000000 0.00000000 0.00000000
0.00000000 -0.00000000 -0.00000000
0.00000000 -0.00000000 -0.00000000
0.57772205 -0.00000000 -0.04829400
-0.00000000 0.90099002 0.00000000
-0.04829400 0.00000000 0.57772205
-0.00000000 -0.00000000 0.00000000
-0.00000000 0.00000000 -0.00000000
0.00000000 -0.00000000 -0.00000000
0.57772205 -0.00000000 0.04829400
-0.00000000 0.90098999 0.00000000
0.04829400 0.00000000 0.57772189
-0.00000000 0.00000000 0.00000000
0.00000000 -0.00000000 0.00000000
0.00000000 0.00000000 -0.00000000
0.58187389 0.00000000 0.00000000
0.00000000 0.58187389 0.00000000
0.00000000 0.00000000 -0.90056701
-0.00000000 0.00000000 0.00000000
0.00000000 0.00000000 -0.00000000
0.00000000 -0.00000000 -0.00000000
0.57772189 -0.00000000 0.04829400
-0.00000000 0.90098999 0.00000000
0.04829400 0.00000000 0.57772205
-0.00000000 -0.00000000 0.00000000
-0.00000000 -0.00000000 0.00000000
0.00000000 0.00000000 -0.00000000
0.57772189 0.00000000 -0.04829401
0.00000000 0.90098995 0.00000000
-0.04829401 0.00000000 0.57772189
-0.00000000 0.00000000 0.00000000
0.00000000 0.00000000 0.00000000
0.00000000 0.00000000 0.00000000
0.58187406 0.00000000 0.00000000
0.00000000 -0.90056700 0.00000000
0.00000000 0.00000000 0.58187406
-0.00000000 0.00000000 0.00000000
0.00000000 -0.00000000 -0.00000000
0.00000000 -0.00000000 -0.00000000
0.57772205 -0.04829400 -0.00000000
-0.04829400 0.57772205 0.00000000
-0.00000000 0.00000000 0.90099002
0.00000000 -0.00000000 0.00000000
-0.00000000 -0.00000000 0.00000000
0.00000000 0.00000000 -0.00000000
0.57772205 0.04829400 -0.00000000
0.04829400 0.57772189 0.00000000
-0.00000000 0.00000000 0.90098999
0.00000000 -0.00000000 0.00000000
-0.00000000 -0.00000000 0.00000000
0.00000000 0.00000000 0.00000000
0.90099002 0.00000000 0.00000000
0.00000000 0.57772205 -0.04829400
0.00000000 -0.04829400 0.57772205
-0.00000000 0.00000000 0.00000000
0.00000000 -0.00000000 -0.00000000
0.00000000 -0.00000000 -0.00000000
1.06798204 -0.01598400 -0.01598400
-0.01598400 1.06798204 -0.01598400
-0.01598400 -0.01598400 1.06798204
-0.00000000 -0.00000000 -0.00000000
-0.00000000 -0.00000000 0.00000000
-0.00000000 0.00000000 -0.00000000
1.06798202 0.01598400 0.01598400
0.01598400 1.06798199 -0.01598400
0.01598400 -0.01598400 1.06798199
-0.00000000 -0.00000000 -0.00000000
-0.00000000 0.00000000 0.00000000
-0.00000000 0.00000000 0.00000000
0.90098999 0.00000000 0.00000000
0.00000000 0.57772189 0.04829400
0.00000000 0.04829400 0.57772205
0.00000000 0.00000000 0.00000000
0.00000000 -0.00000000 0.00000000
0.00000000 0.00000000 -0.00000000
1.06798199 -0.01598400 0.01598400
-0.01598400 1.06798199 0.01598400
0.01598400 0.01598400 1.06798202
-0.00000000 -0.00000000 -0.00000000
-0.00000000 -0.00000000 0.00000000
-0.00000000 0.00000000 0.00000000
1.06798197 0.01598400 -0.01598400
0.01598400 1.06798194 0.01598400
-0.01598400 0.01598400 1.06798197
-0.00000000 -0.00000000 -0.00000000
-0.00000000 0.00000000 0.00000000
-0.00000000 0.00000000 -0.00000000
0.58187389 0.00000000 0.00000000
0.00000000 -0.90056701 0.00000000
0.00000000 0.00000000 0.58187389
0.00000000 0.00000000 0.00000000
0.00000000 0.00000000 -0.00000000
0.00000000 -0.00000000 0.00000000
0.57772189 0.04829400 0.00000000
0.04829400 0.57772205 -0.00000000
0.00000000 -0.00000000 0.90098999
-0.00000000 0.00000000 0.00000000
0.00000000 -0.00000000 0.00000000
0.00000000 0.00000000 -0.00000000
0.57772189 -0.04829401 -0.00000000
-0.04829401 0.57772189 0.00000000
-0.00000000 0.00000000 0.90098995
-0.00000000 -0.00000000 0.00000000
-0.00000000 0.00000000 0.00000000
0.00000000 0.00000000 -0.00000000
0.90098999 0.00000000 0.00000000
0.00000000 0.57772205 0.04829400
0.00000000 0.04829400 0.57772189
-0.00000000 0.00000000 0.00000000
0.00000000 0.00000000 -0.00000000
0.00000000 -0.00000000 -0.00000000
1.06798199 0.01598400 -0.01598400
0.01598400 1.06798202 0.01598400
-0.01598400 0.01598400 1.06798199
0.00000000 -0.00000000 -0.00000000
-0.00000000 0.00000000 -0.00000000
-0.00000000 -0.00000000 0.00000000
1.06798197 -0.01598400 0.01598400
-0.01598400 1.06798197 0.01598400
0.01598400 0.01598400 1.06798194
0.00000000 -0.00000000 -0.00000000
-0.00000000 -0.00000000 -0.00000000
-0.00000000 -0.00000000 -0.00000000
0.90098995 0.00000000 0.00000000
0.00000000 0.57772189 -0.04829401
0.00000000 -0.04829401 0.57772189
0.00000000 0.00000000 0.00000000
0.00000000 0.00000000 -0.00000000
0.00000000 -0.00000000 0.00000000
1.06798194 0.01598400 0.01598400
0.01598400 1.06798197 -0.01598400
0.01598400 -0.01598400 1.06798197
-0.00000000 0.00000000 -0.00000000
0.00000000 0.00000000 0.00000000
-0.00000000 0.00000000 0.00000000
1.06798192 -0.01598400 -0.01598400
-0.01598400 1.06798192 -0.01598400
-0.01598400 -0.01598400 1.06798192
0.00000000 0.00000000 0.00000000
0.00000000 0.00000000 0.00000000
0.00000000 0.00000000 0.00000000

BIN
test/hk_convert.output.h5 Normal file

Binary file not shown.

29
test/hk_convert.py Normal file
View File

@ -0,0 +1,29 @@
################################################################################
#
# TRIQS: a Toolbox for Research in Interacting Quantum Systems
#
# Copyright (C) 2011 by M. Aichhorn, L. Pourovskii, V. Vildosola
#
# TRIQS is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# TRIQS is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# TRIQS. If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from pytriqs.applications.dft.converters import *
from pytriqs.archive import *
Converter = HkConverter(hk_file='hamiltonian.hk',hdf_file='hk_convert.output.h5')
Converter.convert_dmft_input()