Skip to content

Commit

Permalink
Use keyword args when calling MultiFab copy method
Browse files Browse the repository at this point in the history
  • Loading branch information
EZoni authored and ax3l committed Aug 15, 2023
1 parent 3e8d2f6 commit 266a541
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions GuidedTutorials/HeatEquation/Source/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ def main_main ():
time = time + dt

# Copy new solution into old solution
phi_old.copy(phi_old, phi_new, 0, 0, 1, 0)
# TODO Use keyword arguments
# phi_old.copy(dst=phi_old, src=phi_new, srccomp=0, dstcomp=0, numcomp=1, nghost=0)
phi_old.copy(dst=phi_old, src=phi_new, srccomp=0, dstcomp=0, numcomp=1, nghost=0)

# Tell the I/O Processor to write out which step we're doing
print(f'Advanced step {step}\n')
Expand Down

0 comments on commit 266a541

Please sign in to comment.