| 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 SUBV( N,A,B,C ) |
| 8 |
|
| 9 |
C*********************************************************************** |
| 10 |
|
| 11 |
C DESCRIPTION: This routine subtracts two vectors |
| 12 |
|
| 13 |
C FORMAL PARAMETERS: |
| 14 |
C N INTEGER Number of entries in A, B |
| 15 |
C A REAL First vector |
| 16 |
C B REAL Vector to be subtracted |
| 17 |
C C REAL Vector with the result |
| 18 |
|
| 19 |
C*********************************************************************** |
| 20 |
|
| 21 |
DIMENSION A(N),B(N),C(N) |
| 22 |
|
| 23 |
DO 100 I = 1,N |
| 24 |
C(I) = A(I) - B(I) |
| 25 |
100 CONTINUE |
| 26 |
|
| 27 |
RETURN |
| 28 |
END |