OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
h3d_write_scalar.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!|| h3d_write_scalar ../engine/source/output/h3d/h3d_results/h3d_write_scalar.F
25!||--- called by ------------------------------------------------------
26!|| h3d_nodal_scalar ../engine/source/output/h3d/h3d_results/h3d_nodal_scalar.F
27!|| h3d_oned_scalar ../engine/source/output/h3d/h3d_results/h3d_oned_scalar.F90
28!|| h3d_quad_scalar_1 ../engine/source/output/h3d/h3d_results/h3d_quad_scalar_1.F90
29!|| h3d_solid_scalar_1 ../engine/source/output/h3d/h3d_results/h3d_solid_scalar_1.F
30!|| h3d_sph_scalar ../engine/source/output/h3d/h3d_results/h3d_sph_scalar.F
31!||====================================================================
32 SUBROUTINE h3d_write_scalar(
33 . IOK_PART ,IS_WRITTEN ,SCALAR ,NEL ,OFFSET ,NFT,
34 . VALUE,IS_WRITTEN_VALUE)
35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38#include "implicit_f.inc"
39C-----------------------------------------------
40C D u m m y A r g u m e n t s
41C-----------------------------------------------
43 . scalar(*),value(*)
44 INTEGER IOK_PART(*),IS_WRITTEN(*),IS_WRITTEN_VALUE(*)
45 INTEGER NEL,OFFSET,NFT
46C-----------------------------------------------
47C L o c a l V a r i a b l e s
48C-----------------------------------------------
49 INTEGER I
50C-----------------------------------------------
51C
52 DO i=1,nel
53 scalar(offset+nft+i) = value(i)
54 IF(iok_part(i) == 1 .AND. is_written_value(i) == 1) is_written(offset+nft+i)= 1
55 value(i) = zero
56 ENDDO
57
58 RETURN
59 END
60!||====================================================================
61!|| h3d_write_scalar_stack ../engine/source/output/h3d/h3d_results/h3d_write_scalar.F
62!||--- called by ------------------------------------------------------
63!|| h3d_shell_scalar_1 ../engine/source/output/h3d/h3d_results/h3d_shell_scalar_1.F
64!||====================================================================
66 . IOK_PART ,IS_WRITTEN ,SCALAR ,NEL ,OFFSET ,NFT,
67 . VALUE,IS_WRITTEN_VALUE,SHELL_SCALAR_STACK)
68C-----------------------------------------------
69C I m p l i c i t T y p e s
70C-----------------------------------------------
71#include "implicit_f.inc"
72C-----------------------------------------------
73C D u m m y A r g u m e n t s
74C-----------------------------------------------
75 INTEGER,INTENT(INOUT):: SHELL_SCALAR_STACK
76 REAL(KIND=4) :: SCALAR(*)
77 my_real
78 . VALUE(*)
79 INTEGER IOK_PART(*),IS_WRITTEN(*),IS_WRITTEN_VALUE(*)
80 INTEGER NEL,OFFSET,NFT
81C-----------------------------------------------
82C L o c a l V a r i a b l e s
83C-----------------------------------------------
84 INTEGER I
85C-----------------------------------------------
86C
87 DO I=1,nel
88 IF(iok_part(i) == 1 .AND. is_written_value(i) == 1) THEN
89 shell_scalar_stack = shell_scalar_stack + 1
90 scalar(shell_scalar_stack) = value(i)
91 is_written(shell_scalar_stack)= offset+nft+i
92 ENDIF
93 value(i) = zero
94 ENDDO
95
96 RETURN
97 END
98!||====================================================================
99!|| h3d_write_scalar_real ../engine/source/output/h3d/h3d_results/h3d_write_scalar.F
100!||====================================================================
102 . IOK_PART ,IS_WRITTEN ,SCALAR ,I ,OFFSET ,NFT,
103 . VALUE)
104C-----------------------------------------------
105C I m p l i c i t T y p e s
106C-----------------------------------------------
107#include "implicit_f.inc"
108C-----------------------------------------------
109C D u m m y A r g u m e n t s
110C-----------------------------------------------
111 my_real
112 . scalar(*)
113 REAL VALUE
114 INTEGER IOK_PART(*),IS_WRITTEN(*)
115 INTEGER I,OFFSET,NFT
116C-----------------------------------------------
117C L o c a l V a r i a b l e s
118C-----------------------------------------------
119
120 scalar(offset+nft+i) = dble(VALUE)
121 IF(iok_part(i) == 1 ) is_written(offset+nft+i)= 1
122 VALUE = zero
123
124 RETURN
125 END
#define my_real
Definition cppsort.cpp:32
subroutine h3d_write_scalar(iok_part, is_written, scalar, nel, offset, nft, value, is_written_value)
subroutine h3d_write_scalar_real(iok_part, is_written, scalar, i, offset, nft, value)
subroutine h3d_write_scalar_stack(iok_part, is_written, scalar, nel, offset, nft, value, is_written_value, shell_scalar_stack)