OpenRadioss
2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
func_maxy.F
Go to the documentation of this file.
1
Copyright> OpenRadioss
2
Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3
Copyright>
4
Copyright> This program is free software: you can redistribute it and/or modify
5
Copyright> it under the terms of the GNU Affero General Public License as published by
6
Copyright> the Free Software Foundation, either version 3 of the License, or
7
Copyright> (at your option) any later version.
8
Copyright>
9
Copyright> This program is distributed in the hope that it will be useful,
10
Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11
Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
Copyright> GNU Affero General Public License for more details.
13
Copyright>
14
Copyright> You should have received a copy of the GNU Affero General Public License
15
Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16
Copyright>
17
Copyright>
18
Copyright> Commercial Alternative: Altair Radioss Software
19
Copyright>
20
Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21
Copyright> software under a commercial license. Contact Altair to discuss further if the
22
Copyright> 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)
32
C-----------------------------------------------
33
C M o d u l e s
34
C-----------------------------------------------
35
USE
message_mod
36
USE
table_mod
37
C-----------------------------------------------
38
C I m p l i c i t T y p e s
39
C-----------------------------------------------
40
#include "implicit_f.inc"
41
C-----------------------------------------------
42
C D u m m y A r g u m e n t s
43
C-----------------------------------------------
44
INTEGER
IDN,NPC(*)
45
my_real
pld(*),fac,maxy
46
C-----------------------------------------------
47
INTENT(IN)
:: npc,pld,idn
48
INTENT(OUT)
:: maxy
49
C-----------------------------------------------
50
C L o c a l V a r i a b l e s
51
C-----------------------------------------------
52
INTEGER
I,J,K,ID,NP1,NP2,K1,PN1,PN2
53
my_real
dydx,dx,dy,yy
54
C=========================================
55
! COMPUTE MAXIMUM y coordinate
56
C=========================================
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
65
c-----------
66
RETURN
67
END
my_real
#define my_real
Definition
cppsort.cpp:32
func_maxy
subroutine func_maxy(idn, fac, npc, pld, maxy)
Definition
func_maxy.F:32
max
#define max(a, b)
Definition
macros.h:21
message_mod
Definition
message_mod.F:1249
table_mod
Definition
table_mod.F:112
starter
source
tools
curve
func_maxy.F
Generated by
1.15.0