blob: 6955c9d0c82a35ad3b18f90ad043cfa94ebc23b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
*DECK ADDBLE
SUBROUTINE ADDBLE(NSIZE,IPOS,DSUM,DINC)
*-----------------------------------------------------------------------
*
*Purpose:
* add a double to a vector of doubles.
*
*Copyright:
* Copyright (C) 2002 Ecole Polytechnique de Montreal
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version
*
*Author(s): R. Le Tellier
*
*Parameters: input
* NSIZE size of double array.
* IPOS position in double array.
* DINC double to be added.
*
*Parameters: input/output
* DSUM double array.
*
*-----------------------------------------------------------------------
*
*----
* SUBROUTINE ARGUMENTS
*----
INTEGER NSIZE,IPOS
DOUBLE PRECISION DSUM(NSIZE),DINC
*
DSUM(IPOS) = DSUM(IPOS) + DINC
*
RETURN
END
|