-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparams.f90
47 lines (34 loc) · 1.18 KB
/
params.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
MODULE M_PARS
implicit none
!define parameters !!!!!!!!!!!!!!!!!!!!!!!
real*8 :: cfl, weos, disip, sL, sR, c,s,a,k_r,k_e, gamma, cl,valuefloor,fricstr,&
& resume_time,F0,Lx,lf
integer :: N, Nt, freq, derorder,dissorder,STMETH,solenoidalforce, &
& fric,relativisticfriction, shiftrectforce, kforcel, kforceg, resume, &
& resume_integer, kfric, filterfric, gaussforce, printforcing,&
& seed
integer(kind=8) :: nskip
integer :: irho, ivx,ivy
CONTAINS
subroutine readpars
implicit none
namelist /pars_input/ Lx, N, Nt, freq, cfl, weos, disip, &
& sL, sR, derorder,dissorder, STMETH,c,s,a, &
& k_r, k_e, gamma, cl,valuefloor, &
& fric, relativisticfriction, fricstr, &
& kfric, filterfric, resume, resume_integer, resume_time, &
& printforcing, seed, nskip, &
& F0, solenoidalforce, shiftrectforce, kforcel, kforceg, &
& gaussforce, lf
!read params !!!!!!!!!!!!!!!!!!!!!!!
open (unit = 10, file = "pars.in", status = "old" )
read (unit = 10, nml = pars_input)
close(unit = 10)
! open (unit=20, file = "pars2.in", status = "replace")
! write (20,*) N
! close (unit=20)
irho = 1
ivx = 2
ivy = 3
end subroutine readpars
end module M_pars