Skip to content

Commit

Permalink
fix init for dufrank
Browse files Browse the repository at this point in the history
  • Loading branch information
markcmiller86 committed Aug 15, 2024
1 parent 6438ccc commit dd49cad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion heat.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ initialize(void)
back2 = (Number*) malloc(Nx * sizeof(Number));

// Initial condition
set_initial_condition(Nx, back1, dx, ic);
set_initial_condition(Nx, curr, dx, ic);
copy(Nx, back1, curr);
if (back2)
copy(Nx, back2, curr);
}

int finalize(int ti, Number maxt, Number change)
Expand Down

0 comments on commit dd49cad

Please sign in to comment.