FLASH-X
Doxygen Generated Documentation From Interface Source Code
Gravity_interface.F90
Go to the documentation of this file.
1!! NOTICE
2!! Copyright 2022 UChicago Argonne, LLC and contributors
3!!
4!! Licensed under the Apache License, Version 2.0 (the "License");
5!! you may not use this file except in compliance with the License.
6!!
7!! Unless required by applicable law or agreed to in writing, software
8!! distributed under the License is distributed on an "AS IS" BASIS,
9!! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10!! See the License for the specific language governing permissions and
11!! limitations under the License.
12!!
13!! This is the header file for the gravity module that defines its
14!! public interfaces.
15
17
18#include "constants.h"
19#include "Simulation.h"
20#include "FortranLangFeatures.fh"
21
23 subroutine Gravity_accelOneRow (pos,sweepDir,tileDesc, lo, hi, grav, Uin,&
24 potentialIndex, extraAccelVars)
25 use Grid_tile, ONLY : Grid_tile_t
26 implicit none
27 integer, intent(IN) :: pos(2)
28 integer, intent(IN) :: sweepDir
29 type(Grid_tile_t), intent(IN) :: tileDesc
30 integer, intent(IN) :: lo
31 integer, intent(IN) :: hi
32 real, intent(INOUT) :: grav(lo:hi)
33 real, POINTER, OPTIONAL :: Uin(:,:,:,:)
34 integer, intent(IN), OPTIONAL :: potentialIndex
35 integer, intent(IN), OPTIONAL :: extraAccelVars(MDIM)
36 end subroutine Gravity_accelOneRow
37 end interface
38
40 subroutine Gravity_accelOneBlock (tileDesc, ngcellcomp, gvec, potentialIndex)
41 use Grid_tile, ONLY : Grid_tile_t
42 implicit none
43 type(Grid_tile_t) :: tileDesc
44 integer, intent(in) :: ngcellcomp
45 real, dimension(:,:,:,:),intent(out) :: gvec
46 integer, intent(in),optional :: potentialIndex
47 end subroutine Gravity_accelOneBlock
48 end interface
49
50
52 subroutine Gravity_computeDt (Uin, dt_grav, dt_minloc)
53 real,intent(OUT) :: dt_grav
54 real,dimension(:,:,:,:) :: Uin
55 integer, intent(INOUT) :: dt_minloc(5)
56 end subroutine Gravity_computeDt
57 end interface
58
60 subroutine Gravity_finalize()
61 end subroutine Gravity_finalize
62 end interface
63
64 interface Gravity_init
65 subroutine Gravity_init()
66
67 end subroutine Gravity_init
68 end interface
69
71 subroutine Gravity_potential(potentialIndex)
72 integer, intent(IN), optional :: potentialIndex
73 end subroutine Gravity_potential
74 end interface
75
77 subroutine Gravity_unitTest( fileUnit, perfect)
78 implicit none
79 integer, intent(in) :: fileUnit
80 logical, intent(out) :: perfect
81 end subroutine Gravity_unitTest
82 end interface
83end Module Gravity_interface