2D AMRCLAW
Functions/Subroutines
qinit.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine qinit (meqn, mbc, mx, my, xlower, ylower, dx, dy, q, maux, aux)
 

Function/Subroutine Documentation

◆ qinit()

subroutine qinit ( integer, intent(in)  meqn,
integer, intent(in)  mbc,
integer, intent(in)  mx,
integer, intent(in)  my,
real(kind=8), intent(in)  xlower,
real(kind=8), intent(in)  ylower,
real(kind=8), intent(in)  dx,
real(kind=8), intent(in)  dy,
real(kind=8), dimension(meqn,1-mbc:mx+mbc,1-mbc:my+mbc), intent(inout)  q,
integer, intent(in)  maux,
real(kind=8), dimension(maux,1-mbc:mx+mbc,1-mbc:my+mbc), intent(in)  aux 
)
Parameters
[in]meqnSet initial conditions for the q array.
[in]mbcSet initial conditions for the q array.
[in]mxSet initial conditions for the q array.
[in]mySet initial conditions for the q array.
[in]mauxSet initial conditions for the q array.

Definition at line 3 of file qinit.f90.

Referenced by ginit().

3 
5  ! This default version prints an error message since it should
6  ! not be used directly. Copy this to an application directory and
7  ! loop over all grid cells to set values of q(1:meqn, 1:mx, 1:my).
8 
9  implicit none
10 
11  integer, intent(in) :: meqn,mbc,mx,my,maux
12  real(kind=8), intent(in) :: xlower,ylower,dx,dy
13  real(kind=8), intent(in) :: aux(maux,1-mbc:mx+mbc,1-mbc:my+mbc)
14  real(kind=8), intent(inout) :: q(meqn,1-mbc:mx+mbc,1-mbc:my+mbc)
15 
16  write(6,*) '*** Error -- you must set initial conditions'
17  stop
18 
real(kind=8) xlower
Definition: amr_module.f90:231
real(kind=8) ylower
Definition: amr_module.f90:231
Here is the caller graph for this function: