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

Go to the source code of this file.

Functions/Subroutines

subroutine func_maxy (idn, fac, npc, pld, maxy)

Function/Subroutine Documentation

◆ func_maxy()

subroutine func_maxy ( integer, intent(in) idn,
fac,
integer, dimension(*), intent(in) npc,
intent(in) pld,
intent(out) maxy )

Definition at line 31 of file func_maxy.F.

32C-----------------------------------------------
33C M o d u l e s
34C-----------------------------------------------
35 USE message_mod
36 USE table_mod
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41C-----------------------------------------------
42C D u m m y A r g u m e n t s
43C-----------------------------------------------
44 INTEGER IDN,NPC(*)
45 my_real pld(*),fac,maxy
46C-----------------------------------------------
47 INTENT(IN) :: npc,pld,idn
48 INTENT(OUT) :: maxy
49C-----------------------------------------------
50C L o c a l V a r i a b l e s
51C-----------------------------------------------
52 INTEGER I,J,K,ID,NP1,NP2,K1,PN1,PN2
53 my_real dydx,dx,dy,yy
54C=========================================
55 ! COMPUTE MAXIMUM y coordinate
56C=========================================
57 pn1 = npc(idn)
58 pn2 = npc(idn+1)
59 maxy = zero
60 DO j = pn1+1,pn2-1,2
61 yy = pld(j)
62 maxy = max(yy , maxy)
63 ENDDO
64 maxy = fac* maxy
65c-----------
66 RETURN
#define my_real
Definition cppsort.cpp:32
#define max(a, b)
Definition macros.h:21