! ! CalculiX - A 3-dimensional finite element program ! Copyright (C) 1998-2007 Guido Dhondt ! ! This program is free software; you can redistribute it and/or ! modify it under the terms of the GNU General Public License as ! published by the Free Software Foundation(version 2); ! ! ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with this program; if not, write to the Free Software ! Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ! subroutine writesummary(istep,j,icutb,l,ttime,time,dtime) implicit none ! ! writes increment statistics in the .sta file ! the close and open guarantees that the computer buffer is ! emptied each time a new line is written. That way the file ! is always up to data (also during the calculation) ! integer istep,j,icutb,l ! integer iostat real*8 ttime,time,dtime ! 1 write(8,100) istep,j,icutb+1,l,ttime,time,dtime call flush(8) ! ! for some unix systems flush has two arguments ! ! call flush(8,iostat) ! if(iostat.lt.0) then ! write(*,*) '*ERROR in writesummary: cannot flush buffer' ! stop ! endif ! 100 format(4(1x,i5),3(1x,e10.3)) ! return end