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

Go to the source code of this file.

Functions/Subroutines

subroutine i25free_bound (nrtm, mvoisin, irect, stifm, nrtm_free, free_irect_id)

Function/Subroutine Documentation

◆ i25free_bound()

subroutine i25free_bound ( integer, intent(in) nrtm,
integer, dimension(4,nrtm), intent(in) mvoisin,
integer, dimension(4,nrtm), intent(in) irect,
dimension(nrtm), intent(in) stifm,
integer, intent(inout) nrtm_free,
integer, dimension(nrtm), intent(inout) free_irect_id )

Definition at line 31 of file i25free_bound.F.

38C Get the list of free IRECT (i.e. at least one edge is at the boundary)
39C-----------------------------------------------
40C M o d u l e s
41C-----------------------------------------------
42#ifdef WITH_ASSERT
43 USE debug_mod
44#endif
45C-----------------------------------------------
46C I m p l i c i t T y p e s
47C-----------------------------------------------
48#include "implicit_f.inc"
49C-----------------------------------------------
50C D u m m y A r g u m e n t s
51C-----------------------------------------------
52 INTEGER, INTENT(IN) :: NRTM
53 INTEGER, INTENT(IN) :: MVOISIN(4,NRTM),IRECT(4,NRTM)
54 my_real, INTENT(IN) :: stifm(nrtm)
55 INTEGER, INTENT(INOUT) :: NRTM_FREE ! out: number of free irect
56 INTEGER, INTENT(INOUT) :: FREE_IRECT_ID(NRTM)! [out] max size = NRTM, list of free irect
57C-----------------------------------------------
58C L o c a l V a r i a b l e s
59C-----------------------------------------------
60 INTEGER :: IRM,IEDG
61 LOGICAL :: FREE
62
63 nrtm_free= 0
64 DO irm=1,nrtm
65 IF(stifm(irm)<=zero)cycle
66 free = .false.
67 DO iedg=1,4
68 IF( mvoisin(iedg,irm)==0 )THEN
69 IF(.NOT.(irect(3,irm)==irect(4,irm).AND.iedg==3))THEN
70 free = .true.
71 ENDIF
72 ENDIF
73 ENDDO
74 IF(free) THEN
75 nrtm_free = nrtm_free + 1
76 free_irect_id(nrtm_free) = irm
77 ENDIF
78 ENDDO
#define my_real
Definition cppsort.cpp:32