|
The following example should be linked with CERN program library. It creates the Column Wise NTuple (CWN) number 1 in the file cwn.hbook.
The following important points should be noticed:
Program CWN
*
Common /Pawc/ H(100000)
Parameter (Nmax = 100)
Common /CWN/ N,X(Nmax),Y(Nmax),Z(Nmax)
*.___________________________________________
*
Call Hlimit(100000)
*
Call Hropen(1,'CWN','cwn.hbook','N',1024,Istat)
If (Istat.Ne.0) Then
Print*, 'Error in opening file ...'
Stop
Endif
*
Call Hbnt(1,'CWN',' ')
Call Hbname(1,'Block1',N,'N[0,100], X(N), Y(N), Z(N)')
*
Do N=1,Nmax
Do I=1,N
X(N) = N*N
Y(N) = N*N*N
Z(N) = SIN(X(N))
EndDo
Call HFNT(1)
EndDo
*
Call Hrout(0,Icycle,' ')
Call Hrend('CWN')
*
end
![]() | Release Notes | Known bugs | FAQs | Contributions | Tutorial | Reference manual | Down load | Miscellaneous |