Boundary conditions for program #6
Note: it is important to
update your boundary conditions during Strang
splitting. Since we are doing x-advection
and also y-advection twice, you need to update your
x-advection BCs before the second x-advection pass at
the end of your Strang-split time step. Similarly,
y-advection BCs should be updated before the last
y-advection pass.
- C code has been updated.
- Online copy: program6_BC.c,
and also program6_BC.h
(used by program6_BC.c)
- On Stampede2: Copy both these files:
~tg457444/502/Pgm6/C/program6_BC.c
~tg457444/502/Pgm6/C/program6_BC.h
- Fortran code is available here,
and also directly on Stampede2 at ~tg457444/502/Pgm6/Fortran/program6_BC.f90
|