00001 subroutine domainInfo
00002
00003
00004 use global
00005
00006
00007 implicit none
00008
00009
00010 integer,pointer :: minI,minJ,maxI,maxJ
00011
00012 integer,pointer :: nx,ny
00013
00014 integer,pointer :: allBC
00015
00016 minI=>myModel%physics(currentPhysics)%domain(currentDomain)%minI
00017 maxI=>myModel%physics(currentPhysics)%domain(currentDomain)%maxI
00018 minJ=>myModel%physics(currentPhysics)%domain(currentDomain)%minJ
00019 maxJ=>myModel%physics(currentPhysics)%domain(currentDomain)%maxJ
00020
00021
00022 nx=>myModel%physics(currentPhysics)%domain(currentDomain)%nx
00023 ny=>myModel%physics(currentPhysics)%domain(currentDomain)%ny
00024
00025 numberOfGhostCells=>myModel%physics(currentPhysics)%domain(currentDomain)%numberOfGhostCells
00026
00027 allBC=>myModel%physics(currentPhysics)%domain(currentDomain)%allBC
00028
00029
00030
00031
00032
00033 select case(currentPhysics)
00034
00035 case(1)
00036
00037
00038 select case(currentDomain)
00039
00040
00041 case(1)
00042
00043 nx=5
00044 ny=5
00045 allBC=3
00046
00047
00048
00049
00050
00051 case(2)
00052
00053
00054 nx=3
00055 ny=3
00056 allBC=9
00057
00058
00059
00060
00061
00062 case default
00063
00064 print*,'!!!!!!!!!!!!!!!!!!!!!!!!!'
00065 print*,'invalid domain definition'
00066 print*,'demona stop:domainInfo'
00067 stop
00068
00069
00070 end select
00071
00072
00073
00074 case(2)
00075
00076
00077 select case(currentDomain)
00078
00079 case(1)
00080
00081 nx=3
00082 ny=6
00083 allBC=3
00084
00085
00086
00087
00088
00089 case default
00090
00091 print*,'!!!!!!!!!!!!!!!!!!!!!!!!!'
00092 print*,'invalid domain definition'
00093 print*,'demona stop:domainInfo'
00094 stop
00095
00096
00097
00098
00099 end select
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111 case(3)
00112
00113
00114 select case(currentDomain)
00115
00116 case(1)
00117
00118 nx=4
00119 ny=4
00120 allBC=2
00121
00122
00123
00124
00125
00126 case default
00127
00128 print*,'!!!!!!!!!!!!!!!!!!!!!!!!!'
00129 print*,'invalid domain definition'
00130 print*,'demona stop:domainInfo'
00131 stop
00132
00133
00134 end select
00135
00136
00137
00138
00139
00140
00141
00142
00143 case default
00144
00145 print*,'!!!!!!!!!!!!!!!!!!!!!!!!!'
00146 print*,'invalid physics definition'
00147 print*,'demona stop:domainInfo'
00148 stop
00149
00150 end select
00151
00152
00153 minI=1
00154 minJ=1
00155 maxI=nx
00156 maxJ=ny
00157
00158
00159 if (dFX.eq.dFV) then
00160
00161 minI=minI-numberOfGhostCells
00162 minJ=minJ-numberOfGhostCells
00163
00164 maxI=maxI+numberOfGhostCells
00165 maxJ=maxJ+numberOfGhostCells
00166
00167 end if
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182 end subroutine domainInfo