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

Go to the source code of this file.

Functions/Subroutines

subroutine smallb3 (offg, off, nel, ismstr)

Function/Subroutine Documentation

◆ smallb3()

subroutine smallb3 ( offg,
off,
integer, intent(in) nel,
integer, intent(in) ismstr )

Definition at line 42 of file smallb3.F.

44C-----------------------------------------------
45C I m p l i c i t T y p e s
46C-----------------------------------------------
47#include "implicit_f.inc"
48C-----------------------------------------------
49C C o m m o n B l o c k s
50C-----------------------------------------------
51C-----------------------------------------------
52C D u m m y A r g u m e n t s
53C-----------------------------------------------
54 INTEGER, INTENT(IN) :: NEL
55 INTEGER, INTENT(IN) :: ISMSTR
56 my_real offg(*),off(*)
57C-----------------------------------------------
58C L o c a l V a r i a b l e s
59C-----------------------------------------------
60 INTEGER I
61C-----------------------------------------------
62 IF(ismstr==1.OR.ismstr==3)THEN
63 DO i=1,nel
64 IF(offg(i)>zero)offg(i)=two
65 ENDDO
66 ENDIF
67C
68 DO i=1,nel
69 IF(off(i)<one)THEN
70 IF(off(i)==zero)THEN
71 offg(i)=zero
72 ELSEIF(offg(i)>one)THEN
73 offg(i) = one+off(i)
74 ELSE
75 offg(i) = off(i)
76 END IF
77 END IF
78 ENDDO
79C
80 RETURN
#define my_real
Definition cppsort.cpp:32