OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
stat_node.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!|| stat_node ../engine/source/output/sta/stat_node.F
25!||--- called by ------------------------------------------------------
26!|| genstat ../engine/source/output/sta/genstat.F
27!||--- calls -----------------------------------------------------
28!|| spmd_dstat_vgath ../engine/source/mpi/output/spmd_stat.F
29!||--- uses -----------------------------------------------------
30!|| my_alloc_mod ../common_source/tools/memory/my_alloc.F90
31!||====================================================================
32 SUBROUTINE stat_node(X,NUMNOD,ITAB,ITABG,LENG,
33 . NODGLOB,WEIGHT,NODTAG)
34C-----------------------------------------------
35C M o d u l e s
36C-----------------------------------------------
37 USE my_alloc_mod
38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42C-----------------------------------------------
43C C o m m o n B l o c k s
44C-----------------------------------------------
45#include "units_c.inc"
46#include "task_c.inc"
47#include "spmd_c.inc"
48#include "com01_c.inc"
49C-----------------------------------------------
50C D u m m y A r g u m e n t s
51C-----------------------------------------------
52 INTEGER ITAB(*), NUMNOD,WEIGHT(*),ITABG(*),LENG,
53 . nodglob(*),nodtag(*)
55 . x(3,*)
56C-----------------------------------------------
57C L o c a l V a r i a b l e s
58C-----------------------------------------------
59 INTEGER I
60 INTEGER,DIMENSION(:),ALLOCATABLE :: NODTAGLOB
61 my_real,DIMENSION(:,:),ALLOCATABLE :: vglob
62C-----------------------------------------------
63 CALL my_alloc(nodtaglob,leng)
64 CALL my_alloc(vglob,3,leng)
65C-----------------------------------------------
66
67 IF (nspmd > 1) THEN
68 CALL spmd_dstat_vgath(x,nodglob,weight,vglob,nodtag,
69 . nodtaglob)
70 IF (ispmd/=0) RETURN
71 ENDIF
72
73 WRITE(iugeo,'(A)')'/NODE'
74 WRITE(iugeo,'(2A)')'# NODID XCOOR',
75 . ' YCOOR ZCOOR'
76
77 IF (nspmd == 1) THEN
78 DO i=1,numnod
79 IF(nodtag(i) /= 0) THEN
80 WRITE(iugeo,'(I10,1P3E20.13)')
81 . itab(i),x(1,i),x(2,i),x(3,i)
82 END IF
83 END DO
84 ELSE
85 DO i=1,numnodg
86 IF(nodtaglob(i) /= 0)
87 . WRITE(iugeo,'(I10,1P3E20.13)')
88 . itabg(i),vglob(1,i),vglob(2,i),vglob(3,i)
89 END DO
90 ENDIF
91C-----------------------------------------------
92 DEALLOCATE(nodtaglob)
93 DEALLOCATE(vglob)
94C-----------------------------------------------
95 RETURN
96 END
#define my_real
Definition cppsort.cpp:32
subroutine spmd_dstat_vgath(v, nodglob, weight, vgath, nodtag, nodtaglob)
Definition spmd_stat.F:212
subroutine stat_node(x, numnod, itab, itabg, leng, nodglob, weight, nodtag)
Definition stat_node.F:34