54 vb, ab,
v,
a,
d,
delta, rnet, xm, dampenabled,currtime)
89 INTEGER :: numbound, numnp
90 INTEGER,
DIMENSION(1:4,numbound) ::
id
91 REAL*8,
DIMENSION(1:3*numbound) :: vb, ab
92 REAL*8,
DIMENSION(1:3,numbound) ::
r
94 REAL*8,
DIMENSION(1:3*numnp) :: rnet
95 REAL*8,
DIMENSION(1:3*numnp) ::
v,
a,
d
96 REAL*8,
DIMENSION(1:numnp) :: xm
97 REAL*8 ::
slope,prop,currtime
99 INTEGER :: k1, k2, k3, k4
100 INTEGER ::
i, i1, i2, i3
102 LOGICAL :: dampenabled
104 IF(.NOT.(dampenabled))
THEN
114 IF (
id(2,
i).EQ.0)
THEN
118 a1 = (
r(1,
i) + rnet(k1) )*xm(k4)
119 vb(i1) = vb(i1) +
delta*(ab(i1) + a1)*0.5d0
122 IF (
id(3,
i).EQ.0)
THEN
126 a1 = (
r(2,
i) + rnet(k2) )*xm(k4)
127 vb(i2) = vb(i2) +
delta*(ab(i2)+a1)*0.5d0
130 IF (
id(4,
i).EQ.0)
THEN
134 a1 = (
r(3,
i) + rnet(k3) )*xm(k4)
135 vb(i3) = vb(i3) +
delta*(ab(i3)+a1)*0.5d0
151 IF (
id(2,
i).EQ.0)
THEN
155 IF (
id(3,
i).EQ.0)
THEN
159 IF (
id(4,
i).EQ.0)
THEN
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed free of to any person **obtaining a copy of this software and associated documentation to deal with the Software without including without limitation the rights to and or **sell copies of the and to permit persons to whom the **Software is furnished to do subject to the following this list of conditions and the following disclaimers ****Redistributions in binary form must reproduce the above **copyright this list of conditions and the following **disclaimers in the documentation and or other materials **provided with the distribution ****Neither the names of the Center for Simulation of Advanced the University of nor the names of its **contributors may be used to endorse or promote products derived **from this Software without specific prior written permission ****THE SOFTWARE IS PROVIDED AS WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE v
subroutine bc_enforce(numbound, numnp, id, r, slope, prop, vb, ab, v, a, d, delta, Rnet, xm, DampEnabled, CurrTime)
unsigned long id(const Leda_like_handle &x)