1!
2!     CalculiX - A 3-dimensional finite element program
3!              Copyright (C) 1998-2021 Guido Dhondt
4!
5!     This program is free software; you can redistribute it and/or
6!     modify it under the terms of the GNU General Public License as
7!     published by the Free Software Foundation(version 2);
8!
9!
10!     This program is distributed in the hope that it will be useful,
11!     but WITHOUT ANY WARRANTY; without even the implied warranty of
12!     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13!     GNU General Public License for more details.
14!
15!     You should have received a copy of the GNU General Public License
16!     along with this program; if not, write to the Free Software
17!     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18!
19      subroutine writestadiv(istep,j,icutb,l,ttime,time,dtime)
20!
21      implicit none
22!
23!     writes increment statistics in the .sta file
24!     the close and open guarantees that the computer buffer is
25!     emptied each time a new line is written. That way the file
26!     is always up to data (also during the calculation)
27!
28!     this version of writesummary is meant for increments which did
29!     not converge
30!
31      integer istep,j,icutb,l
32      real*8 ttime,time,dtime
33!
34      write(8,100) istep,j,icutb+1,l,ttime+time-dtime,time-dtime,dtime
35      flush(8)
36!
37 100  format(1x,i5,1x,i10,1x,i5,'U',1x,i4,3(1x,e13.6))
38!
39      return
40      end
41