Debian Codegraph @

packages/seacas/applications/grepos/gp_deform.f

raw
1 C Copyright(C) 1999-2020 National Technology & Engineering Solutions
2 C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 C NTESS, the U.S. Government retains certain rights in this software.
4 C
5 C See packages/seacas/LICENSE for details
6
7 subroutine deform(x, y, z, numnp, ndim, dx, dy, dz, ndb, idefst)
8 real x(*), y(*), z(*), dx(*), dy(*), dz(*)
9
10 if (numnp .le. 0) return
11
12 C ... Read the displacements from the database.
13 C Assume they are the first 'ndim' nodal variables...
14 call exgnv (ndb, idefst, 1, numnp, dx, ierr)
15 if (ndim .ge. 2) then
16 call exgnv (ndb, idefst, 2, numnp, dy, ierr)
17 end if
18 if (ndim .eq. 3) then
19 call exgnv (ndb, idefst, 3, numnp, dz, ierr)
20 end if
21
22 C ... Deform the variables...
23 do i=1, numnp
24 x(i) = x(i) + dx(i)
25 end do
26
27 if (ndim .ge. 2) then
28 do i=1, numnp
29 y(i) = y(i) + dy(i)
30 end do
31 end if
32
33 if (ndim .eq. 3) then
34 do i=1, numnp
35 z(i) = z(i) + dz(i)
36 end do
37 end if
38
39 return
40 end