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

Go to the source code of this file.

Functions/Subroutines

subroutine redsqr (a, l, iform)
subroutine redsqrdp (a, l, iform)

Function/Subroutine Documentation

◆ redsqr()

subroutine redsqr ( a,
integer l,
integer iform )

Definition at line 38 of file redsqr.F.

39C-----------------------------------------------
40C I m p l i c i t T y p e s
41C-----------------------------------------------
42#include "implicit_f.inc"
43C-----------------------------------------------
44C D u m m y A r g u m e n t s
45C-----------------------------------------------
46 INTEGER L, IFORM
47C REAL
49 . a(*)
50C-----------------------------------------------
51C C o m m o n B l o c k s
52C-----------------------------------------------
53#include "scr13_c.inc"
54C-----------------------------------------------
55C L o c a l V a r i a b l e s
56C-----------------------------------------------
57 INTEGER LREC, L1, L2, I
58 CHARACTER*8 STR(10),OneSTR
59C-----------------------------------------------
60C E x t e r n a l F u n c t i o n s
61C-----------------------------------------------
62 INTEGER IC
63C REAL
65 . rstr
66 EXTERNAL rstr
67C-----------------------------------------------
68 IF (l==0)RETURN
69 IF (mod(iform,5)==1)THEN
70 lrec=10
71 ELSE
72 lrec=2000
73 ENDIF
74C
75 l1=1
76 l2=lrec
77 1 l2=min(l,l2)
78
79 IF (mod(iform,5)==1)THEN
80 READ(iunit,'(10A8)') (str(i),i=1,10)
81 DO i=l1,l2
82 onestr=str(i-l1+1)
83 a(i)=rstr(onestr)
84 ENDDO
85 ELSE
86 READ(iunit) (a(i),i=l1,l2)
87 ENDIF
88
89 IF(l2==l)RETURN
90 l1=l2+1
91 l2=l1+lrec-1
92 GOTO 1
#define my_real
Definition cppsort.cpp:32
#define min(a, b)
Definition macros.h:20

◆ redsqrdp()

subroutine redsqrdp ( double precision, dimension(*) a,
integer l,
integer iform )

Definition at line 97 of file redsqr.F.

98C-----------------------------------------------
99C I m p l i c i t T y p e s
100C-----------------------------------------------
101#include "implicit_f.inc"
102C-----------------------------------------------
103C D u m m y A r g u m e n t s
104C-----------------------------------------------
105 INTEGER L, IFORM
106C REAL
107 double precision
108 . a(*)
109C-----------------------------------------------
110C C o m m o n B l o c k s
111C-----------------------------------------------
112#include "scr13_c.inc"
113C-----------------------------------------------
114C L o c a l V a r i a b l e s
115C-----------------------------------------------
116 INTEGER LREC, L1, L2, I
117 CHARACTER*8 STR(10),OneSTR
118C-----------------------------------------------
119C E x t e r n a l F u n c t i o n s
120C-----------------------------------------------
121C REAL
122 my_real
123 . rstr
124 my_real
125 . val
126C-----------------------------------------------
127 EXTERNAL rstr
128 IF (l==0)RETURN
129 IF (mod(iform,5)==1)THEN
130 lrec=10
131 ELSE
132 lrec=2000
133 ENDIF
134C
135 l1=1
136 l2=lrec
137 1 l2=min(l,l2)
138 IF (mod(iform,5)==1)THEN
139 READ(iunit,'(10A8)') (str(i),i=1,10)
140 DO i=l1,l2
141 onestr=str(i-l1+1)
142 val=rstr(onestr)
143 a(i)=val
144 ENDDO
145 ELSE
146 READ(iunit) (a(i),i=l1,l2)
147 ENDIF
148 IF(l2==l)RETURN
149 l1=l2+1
150 l2=l1+lrec-1
151 GOTO 1