Debian Codegraph @

packages/seacas/libraries/plt/mxzero.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 C=======================================================================
8 SUBROUTINE MXZERO(N,MAT)
9 REAL MAT(N,*)
10
11 IF (N .EQ. 4) THEN
12 MAT(1,1) = 0.0
13 MAT(1,2) = 0.0
14 MAT(1,3) = 0.0
15 MAT(1,4) = 0.0
16
17 MAT(2,1) = 0.0
18 MAT(2,2) = 0.0
19 MAT(2,3) = 0.0
20 MAT(2,4) = 0.0
21
22 MAT(3,1) = 0.0
23 MAT(3,2) = 0.0
24 MAT(3,3) = 0.0
25 MAT(3,4) = 0.0
26
27 MAT(4,1) = 0.0
28 MAT(4,2) = 0.0
29 MAT(4,3) = 0.0
30 MAT(4,4) = 0.0
31 ELSE
32 DO 3030 I= 1,N
33 DO 3050 J = 1,N
34 MAT(I,J) = 0.
35 3050 CONTINUE
36 3030 CONTINUE
37 end if
38 RETURN
39
40 END