program main c*********************************************************************72 c cc testpack_test() tests testpack(). c c Modified: c c 13 March 2007 c c Author: c c Alan Genz c implicit none integer ndim1 parameter ( ndim1 = 5 ) integer tstlim parameter ( tstlim = 6 ) integer tstmax parameter ( tstmax = 6 ) external adapt character*6 sbname double precision difclt(tstmax) double precision expnts(tstmax) integer maxcls integer ndims(ndim1) integer nsamp double precision rel_tol integer tstfns(tstlim) data difclt / & 110.0D+00, 600.0D+00, 600.0D+00, 100.0D+00, 150.0D+00, & 100.0D+00 / data expnts / & 1.5D+00, 2.0D+00, 2.0D+00, 1.0D+00, 2.0D+00, 2.0D+00 / data tstfns / 1, 2, 3, 4, 5, 6 / data ndims / 2, 3, 4, 6, 8 / call timestamp ( ) write ( *, '(a)' ) ' ' write ( *, '(a)' ) 'testpack_test():' write ( *, '(a)' ) ' Fortran77 version' write ( *, '(a)' ) ' Test testpack().' nsamp = 20 sbname = ' ADAPT' rel_tol = 1.0D-06 maxcls = 10000 call multst ( nsamp, tstlim, tstfns, tstmax, difclt, & expnts, ndim1, ndims, sbname, adapt, rel_tol, maxcls ) write ( *, '(a)' ) ' ' write ( *, '(a)' ) 'testpack_test():' write ( *, '(a)' ) ' Normal end of execution' write ( *, '(a)' ) ' ' call timestamp ( ) stop end subroutine timestamp ( ) c*********************************************************************72 c cc timestamp() prints the current YMDHMS date as a timestamp. c c Modified: c c 12 January 2007 c c Author: c c John Burkardt c implicit none character * ( 8 ) ampm integer d character * ( 8 ) date integer h integer m integer mm character * ( 9 ) month(12) integer n integer s character * ( 10 ) time integer y save month data month / & 'January ', 'February ', 'March ', 'April ', & 'May ', 'June ', 'July ', 'August ', & 'September', 'October ', 'November ', 'December ' / call date_and_time ( date, time ) read ( date, '(i4,i2,i2)' ) y, m, d read ( time, '(i2,i2,i2,1x,i3)' ) h, n, s, mm if ( h .lt. 12 ) then ampm = 'AM' else if ( h .eq. 12 ) then if ( n .eq. 0 .and. s .eq. 0 ) then ampm = 'Noon' else ampm = 'PM' end if else h = h - 12 if ( h .lt. 12 ) then ampm = 'PM' else if ( h .eq. 12 ) then if ( n .eq. 0 .and. s .eq. 0 ) then ampm = 'Midnight' else ampm = 'AM' end if end if end if write ( *, & '(i2,1x,a,1x,i4,2x,i2,a1,i2.2,a1,i2.2,a1,i3.3,1x,a)' ) & d, month(m), y, h, ':', n, ':', s, '.', mm, ampm return end