46 SUBROUTINE readgridmotionsection( global )
49 SUBROUTINE readgridmotionsection(regions)
73 TYPE(t_region
),
POINTER :: regions(:)
83 INTEGER,
PARAMETER :: nvals_max = 16
86 CHARACTER(10) :: keys(nvals_max)
88 LOGICAL :: defined(nvals_max)
90 REAL(RFREAL) :: vals(nvals_max)
107 keys(11)=
'NSURFMATCH'
109 keys(13)=
'ORTHOWGHTX'
110 keys(14)=
'ORTHOWGHTY'
111 keys(15)=
'ORTHOWGHTZ'
112 keys(16)=
'ORTHOCELL'
117 'ReadGridMotionSection.F90' )
121 IF (defined(1).eqv..true.)
THEN
122 global%moveGridScheme = movegrid_blocks
123 IF (vals(1) > 0.9 .AND. vals(1) < 1.9) &
124 global%moveGridScheme = movegrid_global
125 IF (vals(1) > 1.9 .AND. vals(1) < 2.9) &
126 global%moveGridScheme = movegrid_frame
127 IF (vals(1) > 2.9 .AND. vals(1) < 3.9) &
128 global%moveGridScheme = movegrid_foms
129 IF (vals(1) > 3.9 .AND. vals(1) < 4.9) &
130 global%moveGridScheme = movegrid_elglobal
131 IF (vals(1) > 4.9 .AND. vals(1) < 5.9) &
132 global%moveGridScheme = movegrid_elframe
134 global%moveGridScheme = movegrid_vms
136 IF (defined(2).eqv..true.)
THEN
137 global%moveGridNiter = int(abs(vals(2))+0.5_rfreal)
139 IF (defined(3).eqv..true.)
THEN
140 global%moveGridViter = int(abs(vals(3))+0.5_rfreal)
142 IF (defined(4).eqv..true.)
THEN
143 global%moveGridSiter = int(abs(vals(4))+0.5_rfreal)
145 IF (defined(5).eqv..true.)
THEN
146 global%moveGridWeight = vals(5)
148 IF (defined(6).eqv..true.)
THEN
149 global%moveGridAmplifX = vals(6)
151 IF (defined(7).eqv..true.)
THEN
152 global%moveGridAmplifY = vals(7)
154 IF (defined(8).eqv..true.)
THEN
155 global%moveGridAmplifZ = vals(8)
157 IF (defined(9).eqv..true.)
THEN
158 global%moveGridPower = vals(9)
160 IF (defined(10).eqv..true.)
THEN
161 global%moveGridNbour = int(abs(vals(10))+0.5_rfreal)
163 IF (defined(11).eqv..true.)
THEN
164 global%moveGridNsmatch = int(abs(vals(11))+0.5_rfreal)
166 IF (defined(12).eqv..true.)
THEN
167 global%moveGridOrthDir = int(abs(vals(12))+0.5_rfreal)
169 IF (defined(13).eqv..true.)
THEN
170 global%moveGridOrthWghtX = vals(13)
172 IF (defined(14).eqv..true.)
THEN
173 global%moveGridOrthWghtY = vals(14)
175 IF (defined(15).eqv..true.)
THEN
176 global%moveGridOrthWghtZ = vals(15)
178 IF (defined(16).eqv..true.)
THEN
179 global%moveGridOrthCell = vals(16)
191 'ReadGridMotionSection.F90')
195 IF ( defined(1) .EQV. .true. )
THEN
196 DO ireg = lbound(regions,1),ubound(regions,1)
197 regions(ireg)%mixtInput%moveGridType = nint(vals(1))
201 IF ( defined(2) .EQV. .true. )
THEN
202 DO ireg = lbound(regions,1),ubound(regions,1)
203 regions(ireg)%mixtInput%moveGridNIter = nint(vals(2))
207 IF ( defined(3) .EQV. .true. )
THEN
208 DO ireg = lbound(regions,1),ubound(regions,1)
209 regions(ireg)%mixtInput%moveGridSFact = vals(3)
220 END SUBROUTINE readgridmotionsection
subroutine registerfunction(global, funName, fileName)
subroutine readsection(global, fileID, nvals, keys, vals, defined)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE USE ModDataTypes USE nvals
subroutine deregisterfunction(global)