-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathderivs.f90
25 lines (20 loc) · 896 Bytes
/
derivs.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module derivs
implicit none
contains
subroutine get_derivs(pos,vel,acc,mass,h,dens,u,du,pres,n,n_boundaries,dt)
use boundary, only:place_boundaries
use density, only:get_density,get_h,get_dens_h
use eos, only:equationofstate
use acceleration, only:get_accel
real, dimension(:), intent(inout) :: pos,vel,acc,mass,h,dens,u,du,pres
real, intent(out) :: dt
integer, intent(inout) :: n
integer, intent(inout):: n_boundaries
call place_boundaries(pos,vel,mass,h,dens,u,du,pres,n,n_boundaries)
call get_dens_h(pos,vel,mass,h,dens,u,du,pres,n,n_boundaries)
call place_boundaries(pos,vel,mass,h,dens,u,du,pres,n,n_boundaries)
call equationofstate(dens,pres,u,n)
call place_boundaries(pos,vel,mass,h,dens,u,du,pres,n,n_boundaries)
call get_accel(pos,vel,acc,dens,mass,h,du,pres,n,n_boundaries,dt)
end subroutine get_derivs
end module derivs