[FLASH-USERS] boundary conditions

vadim romansky romanskyvadim at gmail.com
Sat Jun 26 04:27:55 EDT 2021


Hi everyone!
I don't understand how to set boundary conditions on upper boundary. In the
comment in file Grid_bcApplyToRegionSpecialized is written
regionData(regionSize(BC_DIR)-guard+1:regionSize(BC_DIR),:,:,variables) =
 boundary values
but below, in the code, in all examples, there is something like
k = 2*guard+1
do i = 1,guard
   regionData(k-i,1:je,1:ke,ivar)= regionData(i,1:je,1:ke,ivar)*sign
 end do

but why we set condition on the upper boundary, using the beginning of
array regionData? not its end, like regionData(regionSize(BC_DIR)) in
comment?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20210626/671fc290/attachment.htm>


More information about the flash-users mailing list