anchor.diff:        end
   c
   c version
  -c $Id: residu.f,v 1.1 2004/04/14 21:18:30 willic3 Exp $
  +c $Id: residu.f,v 1.2 2004/07/02 20:44:54 willic3 Exp $
   c
   c Generated automatically by Fortran77Mill on Wed May 21 14:15:03 2003
   c
  
positive.code: c
  c
        subroutine residu(b,bres,btot,deld,gtol,gi,gprev,gcurr,id,idx,neq,
       & ndof,numnp,iter,itmaxp,idebug,idout,kto,kw,converge)
  c
  c...computes the deviation from overall force and energy balance
  c
        include "implicit.inc"
  c
  c...  subroutine arguments
  c
        integer neq,ndof,numnp,iter,itmaxp,idebug,idout,kto,kw
        integer id(ndof,numnp),idx(ndof,numnp)
        double precision b(neq),bres(neq),btot(neq),deld(neq)
        logical converge
  
negative.code: c
        tmp(3)=zero
        debug=(idebug.eq.1).and.(idout.gt.1)
        if(debug) call printv(b,btot,id,idx,neq,numnp,iout,idout,kw)
        ftmp=dnrm2(neq,bres,ione)
        do i=1,neq
          en=deld(i)*bres(i)
  