Skip to content

Commit 7cda085

Browse files
committed
fixed rounding issue in the number of simulation steps
1 parent fd0c897 commit 7cda085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lindbladmpo.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ int main(int argc, char *argv[])
744744
cout2 << "Lindbladian is trivial and no time evolution will be applied.\n";
745745
cout2.flush();
746746
}
747-
const int n_steps = int(t_total / tau);
747+
const int n_steps = std::round(t_total / tau);
748748

749749
// Open output files
750750
ofstream file_1q, file_2q, file_3q, file_global, file_custom;

0 commit comments

Comments
 (0)