2D AMRCLAW
Functions/Subroutines
setflags.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine setflags (iflags, isize, jsize, rctold, idim3, mitot, mjtot, mptr)
 

Function/Subroutine Documentation

◆ setflags()

subroutine setflags ( integer(kind=1), dimension(0:isize+1,0:jsize+1)  iflags,
  isize,
  jsize,
dimension(idim3,mitot,mjtot)  rctold,
  idim3,
  mitot,
  mjtot,
  mptr 
)

transfer flagged arrays into 1 large array of entire domain makes buffering, projecting, etc. easier without searching through all kinds of grids

Definition at line 6 of file setflags.f.

References amr_module::ndilo, amr_module::ndjlo, amr_module::nghost, and amr_module::node.

Referenced by fixcapaq().

6 c
7  use amr_module
8  implicit double precision (a-h,o-z)
9 
10 
11  dimension rctold(idim3,mitot,mjtot)
12  integer(kind=1) iflags(0:isize+1,0:jsize+1)
13 
14 c :::::::::::::::::::::: SETFLAGS ::::::::::::::::::::::::::::::::::
18 c :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
19 c
20 
21  ibeg = node(ndilo,mptr) - nghost
22  jbeg = node(ndjlo,mptr) - nghost
23 
24  do 10 j = nghost+1, mjtot-nghost
25  do 10 i = nghost+1, mitot-nghost
26  iflags(ibeg+i,jbeg+j) = iflags(ibeg+i,jbeg+j) + rctold(1,i,j)
27  10 continue
28 c
29  99 return
integer, dimension(nsize, maxgr) node
Definition: amr_module.f90:198
integer, parameter ndilo
global i index of left border of this grid
Definition: amr_module.f90:108
integer, parameter ndjlo
global j index of lower border of this grid
Definition: amr_module.f90:114
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
Here is the caller graph for this function: