OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
func_maxy.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23!||====================================================================
24!|| func_maxy ../starter/source/tools/curve/func_maxy.F
25!||--- called by ------------------------------------------------------
26!|| law100_upd_nht ../starter/source/materials/mat/mat100/law100_upd.F
27!||--- uses -----------------------------------------------------
28!|| message_mod ../starter/share/message_module/message_mod.F
29!|| table_mod ../starter/share/modules1/table_mod.F
30!||====================================================================
31 SUBROUTINE func_maxy(IDN,FAC,NPC,PLD,MAXY)
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
67 END
#define my_real
Definition cppsort.cpp:32
subroutine func_maxy(idn, fac, npc, pld, maxy)
Definition func_maxy.F:32
#define max(a, b)
Definition macros.h:21