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

Go to the source code of this file.

Functions/Subroutines

subroutine fcont2_max_output (fcont, fcont_max, weight)

Function/Subroutine Documentation

◆ fcont2_max_output()

subroutine fcont2_max_output ( dimension(3,numnod), intent(inout) fcont,
dimension(3,numnod), intent(inout) fcont_max,
integer, dimension(numnod), intent(in) weight )

Definition at line 28 of file fcont2_max_output.F.

29C-----------------------------s------------------
30C I m p l i c i t T y p e s
31C-----------------------------------------------
32#include "implicit_f.inc"
33C-----------------------------------------------
34C C o m m o n B l o c k s
35C-----------------------------------------------
36#include "com04_c.inc"
37C-----------------------------------------------
38C D u m m y A r g u m e n t s
39C-----------------------------------------------
40 INTEGER , INTENT(IN) :: WEIGHT(NUMNOD)
41 my_real , INTENT(INOUT) ::
42 . fcont(3,numnod),fcont_max(3,numnod)
43C-----------------------------------------------
44C L o c a l V a r i a b l e s
45C-----------------------------------------------
46 my_real fold, fnew, fmax
47 INTEGER I,K,N
48C-----------------------------------------------
49
50 DO n=1,numnod
51 IF(weight(n) == 1) THEN
52 fnew = fcont(1,n)**2 + fcont(2,n)**2 + fcont(3,n)**2
53 fold = fcont_max(1,n)**2 + fcont_max(2,n)**2 +fcont_max(3,n)**2
54 fmax = max(fnew,fold)
55 IF(fnew > fold) THEN
56 fcont_max(1:3,n) = fcont(1:3,n)
57 ENDIF
58 ELSE
59 fcont(1:3,n) = zero
60 ENDIF
61 ENDDO
62
63
64 RETURN
#define my_real
Definition cppsort.cpp:32
#define max(a, b)
Definition macros.h:21