OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
wrtsqi.F File Reference
#include "implicit_f.inc"
#include "scr04_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine wrtsqi (ia, l, iform)

Function/Subroutine Documentation

◆ wrtsqi()

subroutine wrtsqi ( integer, dimension(*) ia,
integer l,
integer iform )

Definition at line 35 of file wrtsqi.F.

36C-----------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40C-----------------------------------------------
41C D u m m y A r g u m e n t s
42C-----------------------------------------------
43 INTEGER L, IFORM
44 INTEGER IA(*)
45C-----------------------------------------------
46C C o m m o n B l o c k s
47C-----------------------------------------------
48#include "scr04_c.inc"
49C-----------------------------------------------
50C L o c a l V a r i a b l e s
51C-----------------------------------------------
52 INTEGER LREC, L1, L2, II, I
53 CHARACTER CH8(10)*8
54C-----------------------------------------------
55C E x t e r n a l F u n c t i o n s
56C-----------------------------------------------
57 CHARACTER STRI*8
58 EXTERNAL stri
59 IF (l==0)RETURN
60 IF (iform/5==1)THEN
61 lrec=10
62 ELSE
63 lrec=2000
64 ENDIF
65
66 l1=1
67 l2=lrec
68
69 DO
70 l2=min(l,l2)
71 IF (iform/5==1)THEN
72 ii=0
73 DO i=l1,l2
74 ii=ii+1
75 ch8(ii)=stri(ia(i))
76 ENDDO
77 WRITE(iunit,'(10A8)') (ch8(i),i=1,ii)
78 ELSE
79 WRITE(iunit) (ia(i),i=l1,l2)
80 ENDIF
81 IF(l2==l)EXIT
82 l1=l2+1
83 l2=l1+lrec-1
84 END DO
85
#define min(a, b)
Definition macros.h:20
character *8 function stri(n)
Definition stri.F:24