-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added reference for restart integration test
- Loading branch information
Showing
3 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,21 @@ | ||
from triqs.utility.comparison_tests import assert_block_gfs_are_close | ||
from h5 import HDFArchive | ||
import triqs.utility.mpi as mpi | ||
|
||
import solid_dmft.main as solid | ||
|
||
solid.main([None, 'dmft_config.toml']) | ||
|
||
mpi.barrier() | ||
|
||
if mpi.is_master_node(): | ||
with HDFArchive('out/inp.h5', 'r')['DMFT_results']['last_iter'] as out, \ | ||
HDFArchive('ref_restart.h5', 'r')['DMFT_results']['last_iter'] as ref: | ||
for key in ['Delta_time_0', 'G0_Refreq_0', 'G0_freq_0', 'Gimp_Refreq_0', | ||
'Gimp_freq_0', 'Gimp_time_0', 'Sigma_Refreq_0', 'Sigma_freq_0']: | ||
print(key) | ||
assert_block_gfs_are_close(out[key],ref[key]) | ||
|
||
for key in ['chemical_potential_pre', 'chemical_potential_post']: | ||
print(key) | ||
assert abs(out[key]-ref[key]) < 0.001, "chemical potential mismatch" |