You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
837 B
29 lines
837 B
2 years ago
|
C Copyright(C) 1999-2020 National Technology & Engineering Solutions
|
||
|
C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
|
||
|
C NTESS, the U.S. Government retains certain rights in this software.
|
||
|
C
|
||
|
C See packages/seacas/LICENSE for details
|
||
|
|
||
|
SUBROUTINE SUBV( N,A,B,C )
|
||
|
|
||
|
C***********************************************************************
|
||
|
|
||
|
C DESCRIPTION: This routine subtracts two vectors
|
||
|
|
||
|
C FORMAL PARAMETERS:
|
||
|
C N INTEGER Number of entries in A, B
|
||
|
C A REAL First vector
|
||
|
C B REAL Vector to be subtracted
|
||
|
C C REAL Vector with the result
|
||
|
|
||
|
C***********************************************************************
|
||
|
|
||
|
DIMENSION A(N),B(N),C(N)
|
||
|
|
||
|
DO 100 I = 1,N
|
||
|
C(I) = A(I) - B(I)
|
||
|
100 CONTINUE
|
||
|
|
||
|
RETURN
|
||
|
END
|