Skip to content

Commit 8b429a7

Browse files
authored
Merge pull request #115 from ax3l/fix-py
Fix Python Tutorials
2 parents e2f1008 + 575eba2 commit 8b429a7

File tree

1 file changed

+1
-1
lines changed
  • GuidedTutorials/HeatEquation/Source

1 file changed

+1
-1
lines changed

GuidedTutorials/HeatEquation/Source/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def main(n_cell, max_grid_size, nsteps, plot_int, dt):
143143
time = time + dt
144144

145145
# Copy new solution into old solution
146-
phi_old.copy(dst=phi_old, src=phi_new, srccomp=0, dstcomp=0, numcomp=1, nghost=0)
146+
amr.copy_mfab(dst=phi_old, src=phi_new, srccomp=0, dstcomp=0, numcomp=1, nghost=0)
147147

148148
# Tell the I/O Processor to write out which step we're doing
149149
amr.Print(f'Advanced step {step}\n')

0 commit comments

Comments
 (0)