Skip to content

Commit 7da7e79

Browse files
committed
nrgspawn test
1 parent 4d67fe2 commit 7da7e79

85 files changed

Lines changed: 1539 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ if(TEST_LONG AND SYM_ALL)
6666
endif()
6767

6868
add_subdirectory(tools)
69+
add_subdirectory(nrgspawn)
6970

7071
if(Mathematica_FOUND AND SYM_ALL)
7172
add_subdirectory(nrginit)

test/nrgspawn/CMakeLists.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Regression tests
2+
3+
file(STRINGS all_tests all_tests)
4+
5+
foreach(test ${all_tests})
6+
configure_file(${test}/param ${test}/param COPYONLY)
7+
add_test(NAME ${test} COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/runtest ${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${test}
8+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${test})
9+
endforeach()
10+
11+
file(STRINGS inst1_inputs INST1_INPUTS)
12+
foreach(file IN LISTS INST1_INPUTS)
13+
configure_file(inst1_Anderson/${file} inst1_Anderson/${file} COPYONLY)
14+
endforeach()
15+
16+
if(GPROF)
17+
gprof("${all_tests}" ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
18+
endif()

test/nrgspawn/all_tests

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
inst1_Anderson
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-1.0 0.01
2+
-1e-10 0.01
3+
1e-10 0.01
4+
1 0.01
Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
# Input file for NRG Ljubljana
2+
# symtype QS
3+
# Using sneg version 2.0.13
4+
#!9
5+
# Number of channels, chain sites, subspaces:
6+
1 0 6
7+
# SCALE 1
8+
# Energies (GS energy subtracted, multiplied by 1/SCALE):
9+
-2 1
10+
1
11+
DIAG ham_-2.1
12+
-1 2
13+
2
14+
DIAG ham_-1.2
15+
0 1
16+
3
17+
DIAG ham_0.1
18+
0 3
19+
1
20+
DIAG ham_0.3
21+
1 2
22+
2
23+
DIAG ham_1.2
24+
2 1
25+
1
26+
DIAG ham_2.1
27+
# Irreducible matrix elements for Wilson chains:
28+
f 0 0
29+
6
30+
2 1 1 2
31+
0. 1.4142135623730951
32+
1 2 0 3
33+
1.224744871391589
34+
0.
35+
1 2 0 1
36+
0. -0.7071067811865475 0.
37+
0. 0. 1.
38+
0 3 -1 2
39+
0. 1.
40+
0 1 -1 2
41+
1.4142135623730951 0.
42+
0. 1.
43+
0. 0.
44+
-1 2 -2 1
45+
1.
46+
0.
47+
# GS energy in absolute units:
48+
e
49+
1
50+
# Irreducible matrix elements for other operators:
51+
sHimp
52+
6
53+
-2 1 -2 1
54+
op.Himp_-2.1_-2.1
55+
-1 2 -1 2
56+
op.Himp_-1.2_-1.2
57+
0 1 0 1
58+
op.Himp_0.1_0.1
59+
0 3 0 3
60+
op.Himp_0.3_0.3
61+
1 2 1 2
62+
op.Himp_1.2_1.2
63+
2 1 2 1
64+
op.Himp_2.1_2.1
65+
sHpot
66+
6
67+
-2 1 -2 1
68+
op.Hpot_-2.1_-2.1
69+
-1 2 -1 2
70+
op.Hpot_-1.2_-1.2
71+
0 1 0 1
72+
op.Hpot_0.1_0.1
73+
0 3 0 3
74+
op.Hpot_0.3_0.3
75+
1 2 1 2
76+
op.Hpot_1.2_1.2
77+
2 1 2 1
78+
op.Hpot_2.1_2.1
79+
sn_d
80+
6
81+
-2 1 -2 1
82+
op.n_d_-2.1_-2.1
83+
-1 2 -1 2
84+
op.n_d_-1.2_-1.2
85+
0 1 0 1
86+
op.n_d_0.1_0.1
87+
0 3 0 3
88+
op.n_d_0.3_0.3
89+
1 2 1 2
90+
op.n_d_1.2_1.2
91+
2 1 2 1
92+
op.n_d_2.1_2.1
93+
sn_d_ud
94+
6
95+
-2 1 -2 1
96+
op.n_d_ud_-2.1_-2.1
97+
-1 2 -1 2
98+
op.n_d_ud_-1.2_-1.2
99+
0 1 0 1
100+
op.n_d_ud_0.1_0.1
101+
0 3 0 3
102+
op.n_d_ud_0.3_0.3
103+
1 2 1 2
104+
op.n_d_ud_1.2_1.2
105+
2 1 2 1
106+
op.n_d_ud_2.1_2.1
107+
dA_d
108+
6
109+
2 1 1 2
110+
op.A_d_2.1_1.2
111+
1 2 0 3
112+
op.A_d_1.2_0.3
113+
1 2 0 1
114+
op.A_d_1.2_0.1
115+
0 3 -1 2
116+
op.A_d_0.3_-1.2
117+
0 1 -1 2
118+
op.A_d_0.1_-1.2
119+
-1 2 -2 1
120+
op.A_d_-1.2_-2.1
121+
dself_d
122+
6
123+
2 1 1 2
124+
op.self_d_2.1_1.2
125+
1 2 0 3
126+
op.self_d_1.2_0.3
127+
1 2 0 1
128+
op.self_d_1.2_0.1
129+
0 3 -1 2
130+
op.self_d_0.3_-1.2
131+
0 1 -1 2
132+
op.self_d_0.1_-1.2
133+
-1 2 -2 1
134+
op.self_d_-1.2_-2.1
135+
sSigmaHd
136+
6
137+
-2 1 -2 1
138+
op.SigmaHd_-2.1_-2.1
139+
-1 2 -1 2
140+
op.SigmaHd_-1.2_-1.2
141+
0 1 0 1
142+
op.SigmaHd_0.1_0.1
143+
0 3 0 3
144+
op.SigmaHd_0.3_0.3
145+
1 2 1 2
146+
op.SigmaHd_1.2_1.2
147+
2 1 2 1
148+
op.SigmaHd_2.1_2.1
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
0 0.079788456080286535
2+
0.079788456080286535 -0.0299999999999999989
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-0
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
0 0.112837916709551261 0
2+
0.112837916709551261 -0.0299999999999999989 0.112837916709551261
3+
0 0.112837916709551261 0.0400000000000000078
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-0.0299999999999999989
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-0.0299999999999999989 -0.079788456080286535
2+
-0.079788456080286535 0.0400000000000000078

0 commit comments

Comments
 (0)