mirror of
https://github.com/LCPQ/DEHam
synced 2024-09-07 03:24:54 +02:00
84 lines
4.6 KiB
FortranFixed
84 lines
4.6 KiB
FortranFixed
![]() |
program main
|
||
|
implicit none
|
||
|
integer(kind=selected_int_kind(16)),allocatable::tl1(:),tl2(:),tktyp(:)
|
||
|
real*8,allocatable::txtt(:),txjjxy(:),txjjz(:)
|
||
|
integer::i, tnrows, tntrou,tisz
|
||
|
real*4::t1,t2
|
||
|
real*8,allocatable::tval(:)
|
||
|
integer(kind=selected_int_kind(16)),allocatable::tcol(:)
|
||
|
integer(kind=selected_int_kind(16)),dimension(10)::tcountcol
|
||
|
integer(kind=selected_int_kind(16))::tistart
|
||
|
allocate (tl1(maxlien))
|
||
|
allocate (tl2(maxlien))
|
||
|
allocate (tktyp(maxlien))
|
||
|
allocate (tcol(maxlien))
|
||
|
allocate (tval(maxlien))
|
||
|
allocate (txjjxy(maxlien))
|
||
|
allocate (txjjz (maxlien))
|
||
|
allocate (txtt (maxlien))
|
||
|
tl1=0
|
||
|
tl2=0
|
||
|
tktyp=0
|
||
|
txjjxy =0
|
||
|
txjjz =0
|
||
|
txtt =0
|
||
|
tcountcol=0
|
||
|
tcol=0
|
||
|
tval=0d0
|
||
|
tntrou=1
|
||
|
tnrows=10
|
||
|
tisz=0
|
||
|
do i=1,30,tnrows
|
||
|
istart = i
|
||
|
tistart = istart
|
||
|
! tl1=(/1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,12, 1, 2, 3, 4, 5, 6, 7, 8, 9,10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,25,0,0,0,0,0/)
|
||
|
! tl2=(/2, 3, 4, 5, 6, 7, 8, 9,10, 11, 12,13,26,25,24,23,22,21,20,19,18,17, 16, 15, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,26,0,0,0,0,0/)
|
||
|
! tktyp=(/1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 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,5,6,7,8,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0/)
|
||
|
! tl2= (/2, 3, 4, 5,10, 9, 8,7,6,7,8,9,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0/)
|
||
|
! tktyp=(/1, 1, 1, 1, 2, 2, 2,2,2,3,3,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0/)
|
||
|
t1=secnds(0.0)
|
||
|
call unit_l1(tl1, &
|
||
|
tl2, &
|
||
|
tktyp, &
|
||
|
tistart, &
|
||
|
tnrows, &
|
||
|
txjjxy, &
|
||
|
txjjz , &
|
||
|
txtt , &
|
||
|
tcountcol, &
|
||
|
tntrou, &
|
||
|
tisz, &
|
||
|
tcol,tval)
|
||
|
t2=secnds(t1)
|
||
|
print *,'time=',t2
|
||
|
enddo
|
||
|
|
||
|
! deallocate (tl1)
|
||
|
! deallocate (tl2)
|
||
|
! deallocate (tktyp)
|
||
|
! deallocate (tcol)
|
||
|
! deallocate (tval)
|
||
|
! deallocate (txjjxy)
|
||
|
! deallocate (txjjz )
|
||
|
! deallocate (txtt )
|
||
|
end
|