MPI-AMRVAC  3.0
The MPI - Adaptive Mesh Refinement - Versatile Advection Code
mod_physics_ppm.t
Go to the documentation of this file.
2 
3  implicit none
4  public
5 
6  procedure(sub_ppm_flatcd), pointer :: phys_ppm_flatcd => null()
7  procedure(sub_ppm_flatsh), pointer :: phys_ppm_flatsh => null()
8 
9  abstract interface
10  subroutine sub_ppm_flatcd(ixI^L,ixO^L,ixL^L,ixR^L,w,d2w,drho,dp)
12  integer, intent(in) :: ixI^L,ixO^L,ixL^L,ixR^L
13  double precision, intent(in) :: w(ixI^S,nw),d2w(ixI^S,1:nwflux)
14  double precision, intent(inout) :: drho(ixI^S),dp(ixI^S)
15  end subroutine sub_ppm_flatcd
16 
17  subroutine sub_ppm_flatsh(ixI^L,ixO^L,ixLL^L,ixL^L,ixR^L,ixRR^L,idims,w,drho,dp,dv)
19  integer, intent(in) :: ixI^L,ixO^L,ixLL^L,ixL^L,ixR^L,ixRR^L
20  integer, intent(in) :: idims
21  double precision, intent(in) :: w(ixI^S,nw)
22  double precision, intent(inout) :: drho(ixI^S),dp(ixI^S),dv(ixI^S)
23  end subroutine sub_ppm_flatsh
24  end interface
25 
26 contains
27 
28  subroutine phys_ppm_check
29  if (.not. associated(phys_ppm_flatcd)) &
31 
32  if (.not. associated(phys_ppm_flatsh)) &
34  end subroutine phys_ppm_check
35 
36  subroutine dummy_ppm_flatcd(ixI^L,ixO^L,ixL^L,ixR^L,w,d2w,drho,dp)
38  integer, intent(in) :: ixI^L,ixO^L,ixL^L,ixR^L
39  double precision, intent(in) :: w(ixI^S,nw),d2w(ixI^S,1:nwflux)
40  double precision, intent(inout) :: drho(ixI^S),dp(ixI^S)
41  drho(ixo^s)=zero
42  dp(ixo^s)=zero
43  end subroutine dummy_ppm_flatcd
44 
45  subroutine dummy_ppm_flatsh(ixI^L,ixO^L,ixLL^L,ixL^L,ixR^L,ixRR^L,idims,w,drho,dp,dv)
47  integer, intent(in) :: ixI^L,ixO^L,ixLL^L,ixL^L,ixR^L,ixRR^L
48  integer, intent(in) :: idims
49  double precision, intent(in) :: w(ixI^S,nw)
50  double precision, intent(inout) :: drho(ixI^S),dp(ixI^S),dv(ixI^S)
51  drho(ixo^s)=zero
52  dp(ixo^s)=zero
53  dv(ixo^s)=zero
54  end subroutine dummy_ppm_flatsh
55 
56 end module mod_physics_ppm
This module contains definitions of global parameters and variables and some generic functions/subrou...
subroutine dummy_ppm_flatsh(ixIL, ixOL, ixLLL, ixLL, ixRL, ixRRL, idims, w, drho, dp, dv)
subroutine phys_ppm_check
procedure(sub_ppm_flatcd), pointer phys_ppm_flatcd
subroutine dummy_ppm_flatcd(ixIL, ixOL, ixLL, ixRL, w, d2w, drho, dp)
procedure(sub_ppm_flatsh), pointer phys_ppm_flatsh