Skip to content

Commit

Permalink
fix mpi load proj mps
Browse files Browse the repository at this point in the history
  • Loading branch information
hczhai committed Aug 9, 2022
1 parent 5b4a96d commit ca04e60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyblock2/driver/block2main
Original file line number Diff line number Diff line change
Expand Up @@ -1819,6 +1819,8 @@ def get_mps_from_tags(iroot, proj_mps=False, ref_center=0):
if smps_info.bond_dim < max_bdim:
smps_info.bond_dim = max_bdim
smps.load_data()
if MPI is not None:
MPI.barrier()
if smps.dot == 2 and smps.center == smps.n_sites - 1 and dot == 1:
smps.dot = 1
elif smps.dot == 2 and smps.center == 0 and dot == 1:
Expand Down

0 comments on commit ca04e60

Please sign in to comment.