Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rafavzqz committed Jul 23, 2024
1 parent 2a9a89a commit e349b12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions geopdes/inst/multipatch/mp_solve_cahn_hilliard_C1.m
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@
% Save initial conditions
save_id = 1;
if (time >= save_info(1))
results.u(:,1) = u_n;
results.udot(:,1) = udot_n;
results.time(1) = time;
results.u(:,save_id) = u_n;
results.udot(:,save_id) = udot_n;
results.time(save_id) = time;
save_id = 2;
save_info = save_info(save_info > time);
end
Expand Down
6 changes: 3 additions & 3 deletions geopdes/inst/solve/solve_cahn_hilliard.m
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@
% Save initial conditions
save_id = 1;
if (time >= save_info(1))
results.u(:,1) = u_n;
results.udot(:,1) = udot_n;
results.time(1) = time;
results.u(:,save_id) = u_n;
results.udot(:,save_id) = udot_n;
results.time(save_id) = time;
save_id = 2;
save_info = save_info(save_info > time);
end
Expand Down

0 comments on commit e349b12

Please sign in to comment.