c$Id: piacel.f,v 1.1 2000/08/24 20:42:44 rlt Exp $ subroutine piacel(ml,dr,a,neq) c * * F E A P * * A Finite Element Analysis Program c.... Copyright (c) 1984-2005: Robert L. Taylor c All rights reserved c-----[--.----+----.----+----.-----------------------------------------] c Purpose: Compute starting acceleration for transient problems c with diagonal (lumped) mass type arrays c Inputs: c ml(*) - Diagonal mass type array c dr(*) - Residual c neq - Number of active equations c Outputs: c a(*) - Initial acceleration c-----[--.----+----.----+----.-----------------------------------------] implicit none integer n,neq real*8 ml(*),dr(*),a(*) save c Compute starting acceleration do n = 1,neq if(ml(n).ne.0.0d0) then a(n) = dr(n)/ml(n) else a(n) = 0.0d0 endif end do end