OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
frelnk.F File Reference
#include "implicit_f.inc"
#include "units_c.inc"
#include "task_c.inc"
#include "scr05_c.inc"
#include "scr07_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine frelnk (ikad, key0, kvel, nrlink, vel_sk_fr)

Function/Subroutine Documentation

◆ frelnk()

subroutine frelnk ( integer, dimension(0:*) ikad,
character, dimension(*) key0,
integer kvel,
integer nrlink,
integer, dimension(*) vel_sk_fr )

Definition at line 37 of file frelnk.F.

38C-----------------------------------------------
39C M o d u l e s
40C-----------------------------------------------
41 USE message_mod
43C-----------------------------------------------
44C I m p l i c i t T y p e s
45C-----------------------------------------------
46#include "implicit_f.inc"
47C-----------------------------------------------
48C D u m m y A r g u m e n t s
49C-----------------------------------------------
50 INTEGER IKAD(0:*),KVEL,NRLINK,VEL_SK_FR(*)
51 CHARACTER KEY0(*)*5
52C-----------------------------------------------
53C C o m m o n B l o c k s
54C-----------------------------------------------
55#include "units_c.inc"
56#include "task_c.inc"
57#include "scr05_c.inc"
58#include "scr07_c.inc"
59C-----------------------------------------------
60C E x t e r n a l F u n c t i o n s
61C-----------------------------------------------
62 INTEGER IXYZ, NVAR
63C-----------------------------------------------
64C L o c a l V a r i a b l e s
65C-----------------------------------------------
66 INTEGER I, N, NBC, K, KK, NS, K4,IKEY,NVEL
67 CHARACTER KEY2*5, KEY3*5
68 CHARACTER(LEN=NCHARLINE100)::CARTE
69C-----------------------------------------------
70C S o u r c e L i n e s
71C-----------------------------------------------
72 k=0
73 nvel=0
74 lllink=0
75 ikey=kvel
76 DO n=1,nrlink
77 nvel = nvel + 1
78 605 CONTINUE
79 READ(iusc1,rec=ikad(ikey)+k,fmt='(7X,A,1X,A,1X,I5,25X,I10)', err=9990)key2,key3,k4,nbc
80 IF ( vel_sk_fr(nvel)>99999) k4 = vel_sk_fr(nvel)
81 k=k+1
82 IF(key2=='ALE ')THEN
83 k=k+nbc
84 GOTO 605
85 ENDIF
86 ns=0
87 kk=k
88 DO i=1,nbc
89 READ(iusc1,rec=ikad(ikey)+k,fmt='(A)',err=9990)carte
90 k=k+1
91 ns=ns+nvar(carte)
92 ENDDO
93 lllink=lllink+ns
94 IF(key2=='TRA ')THEN
95 WRITE(iin,'(I8,1X,I3.3,4X,I10)')ns,ixyz(key3),k4
96 ELSEIF(key2=='ROT ')THEN
97 WRITE(iin,'(I8,5X,I3.3,I10)') ns,ixyz(key3),k4
98 ELSE
99 CALL errmsg(key2)
100 ENDIF
101 CALL read10(ikad(ikey)+kk,nbc,key0(ikey))
102 ENDDO
103C-----------------------------------------------
104 RETURN
105C-----------------------------------------------
106 9990 CONTINUE
107 CALL ancmsg(msgid=73,anmode=aninfo,c1=key0(ikey))
108 CALL arret(0)
subroutine errmsg(key)
Definition errmsg.F:40
integer function ixyz(chr)
Definition ixyz.F:34
integer, parameter ncharline100
integer function nvar(text)
Definition nvar.F:32
subroutine read10(irec, nbc, key0)
Definition read10.F:34
subroutine ancmsg(msgid, msgtype, anmode, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, r1, r2, r3, r4, r5, r6, r7, r8, r9, c1, c2, c3, c4, c5, c6, c7, c8, c9, prmode)
Definition message.F:889
subroutine arret(nn)
Definition arret.F:87