#include "implicit_f.inc"
#include "com01_c.inc"
#include "com04_c.inc"
Go to the source code of this file.
|
| subroutine | scanor (x, d, cdg, xmin, ymin, zmin, xmax, ymax, zmax, scale, weight) |
◆ scanor()
| subroutine scanor |
( |
| x, |
|
|
| d, |
|
|
| cdg, |
|
|
| xmin, |
|
|
| ymin, |
|
|
| zmin, |
|
|
| xmax, |
|
|
| ymax, |
|
|
| zmax, |
|
|
| scale, |
|
|
integer, dimension(*) | weight ) |
Definition at line 31 of file scanor.F.
33
34
35
36#include "implicit_f.inc"
37
38
39
40#include "com01_c.inc"
41#include "com04_c.inc"
42
43
44
45 INTEGER WEIGHT(*)
46 my_real :: x(3,*),d(3,*),cdg(*),xmin,ymin,zmin,xmax,
ymax
48 INTEGER N
49
50 xmin = ep30
51 ymin = ep30
52 zmin = ep30
53 xmax = -ep30
55 zmax = -ep30
56
57 DO n=1,numnod
58 IF (weight(n)==1) THEN
59 xmin =
min(xmin,(x(1,n)-d(1,n)))
60 ymin =
min(ymin,(x(2,n)-d(2,n)))
61 zmin =
min(zmin,(x(3,n)-d(3,n)))
62 xmax =
max(xmax,(x(1,n)-d(1,n)))
64 zmax =
max(zmax,(x(3,n)-d(3,n)))
65 END IF
66 END DO
68
69 cdg(1) = half * (xmax + xmin)
70 cdg(2) = half * (
ymax + ymin)
71 cdg(3) = half * (zmax + zmin)
72
73 dx = xmax - xmin
75 dz = zmax - zmin
76
78
79 scale = one/scale
80
81 RETURN
subroutine ymax(idn, fac, npc, pld, stiffmin, stiffmax, stiffini, stiffavg)
subroutine spmd_min_max(x1, y1, z1, x2, y2, z2)