Skip to content

Commit

Permalink
change input files in tests and examples (tool->post)
Browse files Browse the repository at this point in the history
  • Loading branch information
yomichi committed Aug 5, 2024
1 parent f44e9d4 commit bf03ba9
Show file tree
Hide file tree
Showing 15 changed files with 70 additions and 46 deletions.
7 changes: 5 additions & 2 deletions examples/chain_hubbardI/dmft.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ name = TRIQS/hubbard-I
[control]
max_step = 2

[tool]
[post]
broadening = 0.1
nnode = 2
knode = [(G,0.0,0.0,0.0),(X,0.5,0.0,0.0)]
nk_line = 100

[post.anacont]
omega_max =7.0
omega_min =-7.0
Nomega = 400

[post.check]
omega_check = 10.0
12 changes: 8 additions & 4 deletions examples/chain_hubbardI/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
check_command dcore_pre
check_command dcore
check_command dcore_check
check_command dcore_post
check_command dcore_anacont
check_command dcore_spectrum

# set NUM_PROC=1 if not defined
set_num_proc
Expand All @@ -35,9 +36,12 @@ dcore --np $NUM_PROC $ini || exit
echo "running dcore_check..."
dcore_check $ini || exit

echo "running dcore_post..."
dcore_post --np $NUM_PROC $ini || exit
echo "running dcore_anacont..."
dcore_anacont $ini || exit

echo "running dcore_spectrum..."
dcore_spectrum --np $NUM_PROC $ini || exit

echo "plotting akw..."
cd ..
gnuplot test_akw.gp
gnuplot test_akw.gp
7 changes: 5 additions & 2 deletions examples/chain_hubbardI_so/dmft.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ name = TRIQS/hubbard-I
[control]
max_step = 2

[tool]
[post.spectrum]
broadening = 0.1
nnode = 2
knode = [(G,0.0,0.0,0.0),(X,0.5,0.0,0.0)]
nk_line = 100

[post.anacont]
omega_max =7.0
omega_min =-7.0
Nomega = 400

[post.check]
omega_check = 10.0
12 changes: 8 additions & 4 deletions examples/chain_hubbardI_so/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
check_command dcore_pre
check_command dcore
check_command dcore_check
check_command dcore_post
check_command dcore_anacont
check_command dcore_spectrum

# set NUM_PROC=1 if not defined
set_num_proc
Expand All @@ -35,9 +36,12 @@ dcore --np $NUM_PROC $ini || exit
echo "running dcore_check..."
dcore_check $ini || exit

echo "running dcore_post..."
dcore_post --np $NUM_PROC $ini || exit
echo "running dcore_anacont..."
dcore_anacont $ini || exit

echo "running dcore_spectrum..."
dcore_spectrum --np $NUM_PROC $ini || exit

echo "plotting akw..."
cd ..
gnuplot test_akw.gp
gnuplot test_akw.gp
10 changes: 7 additions & 3 deletions examples/spin_orbit/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
check_command dcore_pre
check_command dcore
check_command dcore_check
check_command dcore_post
check_command dcore_anacont
check_command dcore_spectrum

# set NUM_PROC=1 if not defined
set_num_proc
Expand Down Expand Up @@ -70,8 +71,11 @@ dcore --np $NUM_PROC $ini || exit
echo "running dcore_check..."
dcore_check $ini || exit

echo "running dcore_post..."
dcore_post --np $NUM_PROC $ini || exit
echo "running dcore_anacont..."
dcore_anacont $ini || exit

echo "running dcore_spectrum..."
dcore_spectrum --np $NUM_PROC $ini || exit

echo "plotting sigma..."
gnuplot ../sigma_so.plt
Expand Down
6 changes: 4 additions & 2 deletions examples/spin_orbit/square_2orb.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ max_step = 2
sigma_mix = 0.5
converge_tol = 1e-5

[tool]
[post.spectrum]
knode = [(G,0,0,0),(X,0.5,0,0),(M,0.5,0.5,0),(G,0,0,0)]
nk_line = 100
broadening = 0.1

[post.anacont]
omega_max = 6.0
omega_min = -6.0
Nomega = 401
broadening = 0.1
6 changes: 4 additions & 2 deletions examples/spin_orbit/square_2orb_so.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ max_step = 2
sigma_mix = 0.5
converge_tol = 1e-5

[tool]
[post.spectrum]
knode = [(G,0,0,0),(X,0.5,0,0),(M,0.5,0.5,0),(G,0,0,0)]
nk_line = 100
broadening = 0.1

[post.anacont]
omega_max = 6.0
omega_min = -6.0
Nomega = 401
broadening = 0.1
4 changes: 3 additions & 1 deletion examples/square/dmft_square.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ name = TRIQS/hubbard-I
max_step = 5
sigma_mix = 1.0

[tool]
[post.spectrum]
broadening = 0.4
knode = [(G,0.0,0.0,0.0),(X,0.5,0.0,0.0),(M,0.5,0.5,0.0),(G,0.0,0.0,0.0)]
nk_line = 100

[post.anacont]
omega_max =6.0
omega_min =-5.0
Nomega = 400
9 changes: 8 additions & 1 deletion examples/square/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
check_command dcore_pre
check_command dcore
check_command dcore_check
check_command dcore_post
check_command dcore_anacont
check_command dcore_spectrum

# set NUM_PROC=1 if not defined
set_num_proc
Expand All @@ -35,5 +36,11 @@ dcore --np $NUM_PROC $ini || exit
echo "running dcore_check..."
dcore_check $ini || exit

echo "running dcore_anacont..."
dcore_anacont $ini || exit

echo "running dcore_spectrum..."
dcore_spectrum --np $NUM_PROC $ini || exit

echo "running dcore_post..."
dcore_post --np $NUM_PROC $ini || exit
2 changes: 1 addition & 1 deletion examples/t2g_bethe/dmft_bethe.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ max_step = 40
sigma_mix = 1.0
restart = False

[tool]
[post.anacont]
omega_max = 15.0
omega_min =-15.0
Nomega = 100
8 changes: 0 additions & 8 deletions tests/non-mpi/hphi/hphi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,3 @@ max_step = 1
sigma_mix = 1.0
# time_reversal = True
converge_tol = 1e-5

# [tool]
# broadening = 0.4
# knode = [(G,0.0,0.0,0.0),(X,0.5,0.0,0.0),(M,0.5,0.5,0.0),(G,0.0,0.0,0.0)]
# nk_line = 100
# omega_max =6.0
# omega_min =-5.0
# Nomega = 400
7 changes: 5 additions & 2 deletions tests/non-mpi/pre_respack/dmft.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ name = TRIQS/hubbard-I
[control]
max_step = 2

[tool]
[post.spectrum]
broadening = 0.1
nnode = 2
knode = [(G,0.0,0.0,0.0),(X,0.5,0.0,0.0)]
nk_line = 100

[post.anacont]
omega_max =7.0
omega_min =-7.0
Nomega = 400

[post.check]
omega_check = 10.0
10 changes: 3 additions & 7 deletions tests/non-mpi/w90_two_orb/dmft_square.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,15 @@ name = null
[control]
max_step = 1

[tool]
knode = [(G,0,0,0),(X,0.5,0,0),(M,0.5,0.5,0),(G,0,0,0)]

[post]
omega_max = 6.0
omega_min = -6.0
Nomega = 21

[post.anacont]
solver = pade
show_result = false
save_result = false
omega_max = 6.0
omega_min = -6.0
Nomega = 21

[post.anacont.pade]
n_min = 2
Expand All @@ -46,7 +43,6 @@ n_tail = 5
n_sv = 10
lambda = 1e-5


[post.spectrum]
knode = [(G,0,0,0),(X,0.5,0,0),(M,0.5,0.5,0),(G,0,0,0)]
nk_line = 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ def _write_ini(file, spin_orbit, nso_corr_sh, nf, beta, n_iw, nk1, nk2, Lambda,
max_step = 1
sigma_mix = 0.0
initial_self_energy = Sigma.txt
'''

[tool]
Lambda_IR = {Lambda}
cutoff_IR = {cutoff}'''
# [tool]
# Lambda_IR = {Lambda}
# cutoff_IR = {cutoff}'''

with open(file, 'w') as f:
print(ini_str, file=f)
Expand Down Expand Up @@ -126,4 +127,4 @@ def test_square(nso_corr_sh, spin_orbit, request):
y = Sigma_iw_sh[ish][bname].data
assert_allclose(x, y)

os.chdir(org_dir)
os.chdir(org_dir)
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ def _write_ini(file, spin_orbit, n_corr_sh, nf, beta, n_iw, nk1, nk2, Lambda, cu
max_step = 1
sigma_mix = 0.0
initial_self_energy = Sigma.txt
'''

[tool]
Lambda_IR = {Lambda}
cutoff_IR = {cutoff}'''
# [tool]
# Lambda_IR = {Lambda}
# cutoff_IR = {cutoff}'''

with open(file, 'w') as f:
print(ini_str, file=f)
Expand Down

0 comments on commit bf03ba9

Please sign in to comment.