Debian Codegraph @

packages/seacas/applications/ex1ex2v2/ex1_putev.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 putev (idexo, nwstep, nelblk, nvarel, numelb,
8 & varel, idelb, isevok, ierr)
9 C======================================================================
10 C -- *** PUTEV *** Put Element Variables in regular netCDF file
11 C --
12 C --PUTEV calls the exodus II interface routine that writes the
13 C -- element variable values into the regular netCDF file.
14 C --
15 C --Parameters:
16 C -- idexo - IN - EXODUS file ID returned from a previous call to
17 C -- EXCRE or EXOPEN.
18 C -- nwstep - IN - The time step number.
19 C -- nelblk - IN - The number of element blocks.
20 C -- nvarel - IN - The number of element variables.
21 C -- numelb - IN - An array containing the number of elements per
22 C -- element block.
23 C -- varel - IN - An array containing the element variables.
24 C -- idelb - IN - Array of element block IDs
25 C -- isevok - IN - Element variable truth table
26 C -- ierr - OUT - Returned error code. If no errors occurred, 0
27 C -- is returned.
28
29 include 'exodusII.inc'
30 integer numelb(*), nwstep, nelblk, nvarel, idelb(*), ierr
31 integer isevok(nvarel,*)
32 real varel(*)
33
34 ielo = 1
35 do 200 ielb = 1, nelblk
36 do 100 ivar = 1, nvarel
37 if (isevok(ivar,ielb) .ne. 0) then
38 call expev (idexo, nwstep, ivar, idelb(ielb), numelb(ielb),
39 & varel(ielo), ierr)
40 if (ierr .lt. 0) then
41 call exerr ('putev','Error calling expev', exlmsg)
42 endif
43 ielo = ielo + numelb(ielb)
44 endif
45 100 continue
46 200 continue
47 return
48 end