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

Go to the source code of this file.

Functions/Subroutines

subroutine interp (tf, tt, npoint, f, tg)

Function/Subroutine Documentation

◆ interp()

subroutine interp ( tf,
tt,
integer npoint,
f,
tg )

Definition at line 34 of file interp.F.

35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38#include "implicit_f.inc"
39C-----------------------------------------------
40C D u m m y A r g u m e n t s
41C-----------------------------------------------
42 INTEGER NPOINT
43 my_real tt, f, tg
44 my_real tf(2,*)
45C-----------------------------------------------
46C L o c a l V a r i a b l e s
47C-----------------------------------------------
48 INTEGER I, M
49 my_real dt1, dt2, d1, d2
50C-----------------------------------------------
51 IF (tt-tf(1,npoint)>zero) GO TO 50
52 DO 20 i=2,npoint
53 m=i
54 IF (tt-tf(1,m)<=zero) GO TO 30
55 20 CONTINUE
56 50 f=zero
57 tg=zero
58 RETURN
59 30 dt1=tt-tf(1,m-1)
60 dt2=-tt+tf(1,m)
61 d1=tf(1,m)-tf(1,m-1)
62 d2=tf(2,m)-tf(2,m-1)
63 tg=zero
64 IF(d1/=zero)tg=d2/d1
65 !TEST POUR PRECISION DU CALCUL
66 IF(dt1<=dt2)THEN
67 f =tf(2,m-1)+dt1*tg
68 ELSE
69 f =tf(2,m)-dt2*tg
70 ENDIF
71 RETURN
#define my_real
Definition cppsort.cpp:32