Nek5000
SEM for Incompressible NS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
input_mod.F90
Go to the documentation of this file.
1 
11 module input
12 
13 
14  use kinds, only : dp
15  implicit none
16 
17  real(DP) :: rstim, vnekton
18  real(DP) :: nktonv
19  integer :: irstv, irstt, irstim, nobj, ngeom
20  integer :: nhis, ipscal, npscal, ipsco, ifldmhd
21 
22  real(DP), allocatable :: param(:), cpfld(:,:), cpgrp(:,:,:), qinteg(:,:)
23  integer, allocatable :: matype(:,:), lochis(:,:), nmember(:)
24  logical, allocatable :: iftmsh(:),ifnonl(:),ifvarp(:),ifpsco(:),ifpso(:)
25  logical, allocatable, target :: ifadvc(:)
26 
27  logical :: if3d &
28  ,ifflow,ifheat,iftran,ifaxis,ifstrs,ifsplit &
29  ,ifmgrid &
30  ,ifmvbd,ifnatc,ifchar &
31  ,ifvps &
32  ,ifmodel,ifkeps &
33  ,ifintq,ifcons &
34  ,ifxyo,ifpo,ifvo,ifto,iftgo,iffmtin &
35  ,ifbo &
36  ,ifanls,ifanl2,ifmhd,ifessr,ifpert,ifbase &
37  ,ifcvode,iflomach,ifexplvis,ifschclob,ifuservp, &
38  ifcyclic,ifmoab,ifcoup, ifvcoup, ifusermv,ifreguo, &
39  ifxyo_,ifaziv,ifneknek
40  logical :: ifprint
41 
42  LOGICAL, pointer :: ifnav
43 
44  CHARACTER(1), allocatable :: hcode(:,:)
45  CHARACTER(2), allocatable :: ocode(:)
46  CHARACTER(10), allocatable :: drivc(:)
47  CHARACTER(14) :: rstv,rstt
48  CHARACTER(40), allocatable, target :: textsw(:,:)
49  CHARACTER(40), pointer :: turbmod
50  CHARACTER(132), allocatable :: initc(:)
51 
52  CHARACTER(132) :: reafle,fldfle,dmpfle,hisfle,schfle,orefle,nrefle
53  CHARACTER(132) :: session,path,re2fle,h5mfle,series
54 
55 ! proportional to LELT
56 
57  real(DP), allocatable :: xc(:,:),yc(:,:),zc(:,:) &
58  ,bc(:,:,:,:) &
59  ,curve(:,:,:) &
60  ,cerror(:)
61 
62  integer, allocatable :: igroup(:),object(:,:,:)
63 
64  CHARACTER(1), allocatable :: ccurve(:,:),cdof(:,:)
65  CHARACTER(3), allocatable :: cbc(:,:,:)
66  character(3) :: solver_type
67 
68  integer, allocatable :: ieact(:)
69  integer :: neact
70 
71 ! material set ids, BC set ids, materials (f=fluid, s=solid), bc types
72  integer, parameter :: numsts = 50
73  integer, allocatable :: matindx(:), matids(:), imatie(:), ibcsts(:), bcf(:)
74  character(3), allocatable :: bctyps(:)
75  integer :: numflu, numoth, numbcs
76 
77  contains
78 
79  subroutine init_input()
80  use size_m
81  implicit none
82  allocate(param(200), cpfld(ldimt1,3), cpgrp(-5:10,ldimt1,3), qinteg(ldimt3,maxobj))
83 
84  allocate(matype(-5:10,ldimt1), lochis(4,lhis), nmember(maxobj))
85 
86  allocate(ifadvc(ldimt1),iftmsh(0:ldimt1), ifnonl(ldimt1), ifvarp(ldimt1), ifpsco(ldimt1))
87  allocate(ifpso(ldimt1))
88  ifnav => ifadvc(1)
89  iftmsh = .false.
90 
91  allocate(hcode(11,lhis),ocode(8),drivc(5), initc(15),textsw(100,2))
92  turbmod => textsw(1,1)
93 
94  allocate(xc(8,lelt),yc(8,lelt),zc(8,lelt), bc(5,6,lelt,0:ldimt1))
95  allocate(curve(6,12,lelt),cerror(lelt))
96 
97  allocate(igroup(lelt),object(maxobj,maxmbr,2))
98 
99  allocate(cbc(6,lelt,0:ldimt1),ccurve(12,lelt), cdof(6,lelt), ieact(lelt))
100 
101  allocate(matindx(numsts),matids(numsts),imatie(lelt), ibcsts(numsts))
102  end subroutine init_input
103 
104 end module input
Input parameters from preprocessors.
Definition: input_mod.F90:11
subroutine init_input()
Definition: input_mod.F90:79