Skip to content

Commit

Permalink
context restart dir
Browse files Browse the repository at this point in the history
  • Loading branch information
hczhai committed Jun 21, 2024
1 parent fb637dc commit d3d7a27
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dmrg/sweep_algorithm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2136,6 +2136,10 @@ template <typename S, typename FL, typename FLS> struct DMRG {
me->bra->info->copy_mutable(frame_<FPS>()->restart_dir);
me->bra->copy_data(frame_<FPS>()->restart_dir);
}
if (context_ket != nullptr) {
context_ket->info->copy_mutable(frame_<FPS>()->restart_dir);
context_ket->copy_data(frame_<FPS>()->restart_dir);
}
}
if (frame_<FPS>()->restart_dir_per_sweep != "" &&
(me->para_rule == nullptr || me->para_rule->is_root())) {
Expand All @@ -2149,6 +2153,10 @@ template <typename S, typename FL, typename FLS> struct DMRG {
me->bra->info->copy_mutable(rdps);
me->bra->copy_data(rdps);
}
if (context_ket != nullptr) {
context_ket->info->copy_mutable(rdps);
context_ket->copy_data(rdps);
}
}
FPS max_dw = *max_element(sweep_discarded_weights.begin(),
sweep_discarded_weights.end());
Expand Down

0 comments on commit d3d7a27

Please sign in to comment.