Skip to content

Commit 21956dd

Browse files
committed
[test] add missing test for afm order and cthyb for better test coverage
1 parent 5f67096 commit 21956dd

File tree

6 files changed

+73
-3
lines changed

6 files changed

+73
-3
lines changed

doc/tutorials/NNO_os_plo_mag/config.toml renamed to doc/tutorials/NNO_os_plo_mag/dmft_config.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ n_iw = 2001
99
n_tau = 20001
1010

1111
prec_mu = 0.001
12+
mu_initial_guess = -0.003526
1213

1314
h_int_type = "density_density"
1415
U = 8.0
@@ -21,7 +22,7 @@ magnetic = true
2122
magmom = [-0.3, 0.3]
2223
afm_order = true
2324

24-
n_iter_dmft = 14
25+
n_iter_dmft = 1
2526

2627
g0_mix = 0.9
2728

@@ -35,8 +36,8 @@ path_to_sigma = "pre_AFM.h5"
3536
[solver]
3637
type = "cthyb"
3738
length_cycle = 2000
38-
n_warmup_cycles = 5e+3
39-
n_cycles_tot = 1e+7
39+
n_warmup_cycles = 5e+2
40+
n_cycles_tot = 1e+4
4041
imag_threshold = 1e-5
4142

4243
perform_tail_fit = true

test/python/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ set (integration_tests
3939
svo_hubbardI_basic
4040
svo_hartree
4141
lno_hubbardI_mag
42+
lno_cthyb_mag
4243
svo_cthyb_basic_crm
4344
svo_cthyb_basic_tf
4445
svo_ctseg_crm
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[general]
2+
seedname = "inp"
3+
jobname = "out"
4+
5+
enforce_off_diag = false
6+
block_threshold = 1e-1
7+
mu_initial_guess = -0.003377
8+
9+
n_iw = 701
10+
beta = 40
11+
n_tau = 10001
12+
13+
prec_mu = 0.001
14+
15+
h_int_type = "kanamori_den_den"
16+
U = 1.83
17+
J = 0.37
18+
19+
magnetic = true
20+
magmom = [-0.2, 0.2]
21+
22+
n_iter_dmft = 1
23+
24+
dc_type = 1
25+
dc = true
26+
dc_dmft = false
27+
28+
[solver]
29+
type = "cthyb"
30+
idx_impurities = [0, 1]
31+
length_cycle = 300
32+
n_warmup_cycles = 1e+3
33+
n_cycles_tot = 1e+4
34+
imag_threshold = 1e-5
35+
delta_interface = true
36+
measure_density_matrix = true
37+
measure_pert_order = true
38+
perform_tail_fit = true
39+
fit_max_moment = 4
40+
fit_min_w = 4
41+
fit_max_w = 10

test/python/lno_cthyb_mag/inp.h5

1.76 MB
Binary file not shown.

test/python/lno_cthyb_mag/ref.h5

4.89 MB
Binary file not shown.

test/python/lno_cthyb_mag/test.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import sys
2+
import shutil
3+
4+
from triqs.gf import *
5+
from triqs.utility.comparison_tests import assert_block_gfs_are_close
6+
from h5 import HDFArchive
7+
import triqs.utility.mpi as mpi
8+
9+
import solid_dmft.main as solid
10+
11+
12+
if mpi.is_master_node():
13+
shutil.rmtree('out', ignore_errors=True)
14+
15+
mpi.barrier()
16+
17+
solid.main([None, 'dmft_config.toml'])
18+
19+
mpi.barrier()
20+
21+
if mpi.is_master_node():
22+
out = 'out/inp.h5'
23+
ref = 'ref.h5'
24+
25+
out = HDFArchive(out, 'r')['DMFT_results']['last_iter']
26+
ref = HDFArchive(ref, 'r')['DMFT_results']['last_iter']
27+

0 commit comments

Comments
 (0)