OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
sysfus.F File Reference
#include "my_real.inc"
#include "implicit_f.inc"
#include "warn_c.inc"

Go to the source code of this file.

Functions/Subroutines

program __sysfus_f__
integer function sysfus2 (iu, itabm1, numnod)

Function/Subroutine Documentation

◆ __sysfus_f__()

program __sysfus_f__

Definition at line 34 of file sysfus.F.

◆ sysfus2()

integer function sysfus2 ( integer iu,
integer, dimension(*) itabm1,
integer numnod )

Definition at line 97 of file sysfus.F.

98C this function returns the internal number corresponding to a user number or 0
99C If the node does not exist
100C-----------------------------------------------
101C I m p l i c i t T y p e s
102C-----------------------------------------------
103#include "implicit_f.inc"
104C-----------------------------------------------
105C D u m m y A r g u m e n t s
106C-----------------------------------------------
107 INTEGER IU, NUMNOD
108 INTEGER ITABM1(*)
109C-----------------------------------------------
110C L o c a l V a r i a b l e s
111C-----------------------------------------------
112 INTEGER JINF, JSUP, J
113C-----------------------------------------------
114C
115 ! Check exit parameters
116
117 ! 1st NUMNOD=0
118 IF (numnod==0) THEN
119 sysfus2=0
120 RETURN
121 END IF
122
123 ! 2nd NodeID is lower than smallest NodeID.
124 IF ( iu-itabm1(1)<0 ) THEN
125 sysfus2=0
126 RETURN
127 ENDIF
128
129
130 jinf=1
131 jsup=numnod
132 j=min(1,numnod/2)
133 10 IF(jsup<=jinf.AND.(iu-itabm1(j))/=0) THEN
134C > Noise case not found
135 sysfus2=0
136 RETURN
137 ENDIF
138 IF((iu-itabm1(j))==0)THEN
139C >CASE IU=TABM END OF SEARCH
140 sysfus2=itabm1(j+numnod)
141 RETURN
142 ELSE IF (iu-itabm1(j)<0) THEN
143C >CAS IU<TABM
144 jsup=j-1
145 ELSE
146C >CAS IU>TABM
147 jinf=j+1
148 ENDIF
149 j=(jsup+jinf)/2
150 GO TO 10
integer function sysfus2(iu, itabm1, numnod)
Definition sysfus.F:98
#define min(a, b)
Definition macros.h:20