OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
tshcdcom_dim.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!|| tshcdcom_dim ../engine/source/elements/thickshell/solidec/tshcdcom_dim.F
25!||--- called by ------------------------------------------------------
26!|| resol_init ../engine/source/engine/resol_init.F
27!||--- calls -----------------------------------------------------
28!|| spmd_exch_tag_tsh ../engine/source/mpi/elements/spmd_exch_dttsh.F
29!||====================================================================
30 SUBROUTINE tshcdcom_dim(IENUNL,FR_ELEM,IAD_ELEM,NBDDS,NBDDR ,
31 . ISEND ,IRECV )
32C-----------------------------------------------
33C M o d u l e s
34C-----------------------------------------------
35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38#include "implicit_f.inc"
39C-----------------------------------------------
40C C o m m o n B l o c k s
41C-----------------------------------------------
42#include "com01_c.inc"
43#include "com04_c.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER IENUNL(2,*),FR_ELEM(*),IAD_ELEM(2,*),NBDDS,NBDDR,
48 . irecv(*),isend(*)
49C-----------------------------------------------
50C L o c a l V a r i a b l e s
51C-----------------------------------------------
52 INTEGER I,J,N,IP,ITAGS(NUMNOD),LEN
53C=======================================================================
54 itags(1:numnod)=0
55 DO i = 1, ntsheg
56 n = ienunl(1,i)
57 itags(n) = i
58 n = ienunl(2,i)
59 itags(n) = i
60 END DO
61C--------
62 nbdds = 0
63 DO ip = 1,nspmd
64 DO j= iad_elem(1,ip),iad_elem(1,ip+1)-1
65 n = fr_elem(j)
66 IF (itags(n)>0) THEN
67 nbdds = nbdds + 1
68 isend(j) = 1
69 END IF
70 END DO
71 END DO
72 len = iad_elem(1,nspmd+1)-iad_elem(1,1)
73 CALL spmd_exch_tag_tsh(iad_elem ,fr_elem ,isend,irecv ,len)
74 nbddr = 0
75 DO ip = 1,nspmd
76 DO j= iad_elem(1,ip),iad_elem(1,ip+1)-1
77 IF (irecv(j)>0) nbddr = nbddr + 1
78 END DO
79 END DO
80C
81 RETURN
82 END
subroutine spmd_exch_tag_tsh(iad_elem, fr_elem, isend, irecv, len)
subroutine tshcdcom_dim(ienunl, fr_elem, iad_elem, nbdds, nbddr, isend, irecv)