2D AMRCLAW
Functions/Subroutines
addflags.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine addflags (rectflags, mibuff, mjbuff, rctold, idim3, mitot, mjtot, mptr)
 Transfer flagged arrays from errest into the one from spatial differencing. More...
 

Function/Subroutine Documentation

◆ addflags()

subroutine addflags ( dimension(mibuff,mjbuff)  rectflags,
  mibuff,
  mjbuff,
dimension(idim3,mitot,mjtot)  rctold,
  idim3,
  mitot,
  mjtot,
  mptr 
)

Transfer flagged arrays from errest into the one from spatial differencing.

NOTE: not dimensioned the same. rectflags is possibly larger to accomodate in-place buffering.

Definition at line 9 of file addflags.f.

References amr_module::badpt, amr_module::goodpt, and amr_module::nghost.

9 c
10  use amr_module
11  implicit double precision (a-h,o-z)
12 
13 
14  dimension rctold(idim3,mitot,mjtot)
15  dimension rectflags(mibuff,mjbuff)
16 
17 c :::::::::::::::::::::: ADDFLAGS ::::::::::::::::::::::::::::::::::
18 c transfer flagged arrays from errest into the one from spatial
19 c differencing
20 c NOTE: not dimensioned the same. rectflags is possibly larger to accomodate
21 c in-place buffering.
22 c :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
23 c
24 
25  do 10 j = nghost+1, mjtot-nghost
26  do 10 i = nghost+1, mitot-nghost
27  if (rctold(1,i,j) .ne. goodpt) then
28  rectflags(i,j) = badpt
29  endif
30  10 continue
31 c
32  99 return
real(kind=8), parameter goodpt
Definition: amr_module.f90:163
real(kind=8), parameter badpt
Definition: amr_module.f90:165
integer nghost
Definition: amr_module.f90:232
The module contains the definition of a "node descriptor" as well as other global variables used duri...
Definition: amr_module.f90:21