parameter ( nidow = 2*nchklev_1*nchklev_2*nchklev_3 )
do ilev_3 = 1,nchklev_3
integer nchklev_3
parameter( nchklev_3 = 15 )
parameter( nchklev_3 = 150 )
parameter( nchklev_3 = 10 )
parameter( nchklev_3 = 5 )
parameter( nchklev_3 = 3 )
parameter( nchklev_3 = 60 )
parameter( nchklev_3 = 50 )
parameter( nchklev_3 = 4 )
parameter( nchklev_3 = 1 )
parameter( nchklev_3 = 32 )
parameter( nchklev_3 = 20 )
max_lev4=nTimeSteps/(nchklev_1*nchklev_2*nchklev_3)+1
& + (ilev_4 - 1)*nchklev_3*nchklev_2*nchklev_1
if (nchklev_1*nchklev_2*nchklev_3*nchklev_4 .lt. nTimeSteps) then
& nchklev_1*nchklev_2*nchklev_3*nchklev_4
if (nchklev_1*nchklev_2*nchklev_3 .lt. nTimeSteps) then
& nchklev_1*nchklev_2*nchklev_3
iWh=tapeMaxCounter*MAX(nchklev_2,nchklev_3)/nWh+1