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

Go to the source code of this file.

Functions/Subroutines

subroutine h3d_write_scalar (iok_part, is_written, scalar, nel, offset, nft, value, is_written_value)
subroutine h3d_write_scalar_stack (iok_part, is_written, scalar, nel, offset, nft, value, is_written_value, shell_scalar_stack)
subroutine h3d_write_scalar_real (iok_part, is_written, scalar, i, offset, nft, value)

Function/Subroutine Documentation

◆ h3d_write_scalar()

subroutine h3d_write_scalar ( integer, dimension(*) iok_part,
integer, dimension(*) is_written,
scalar,
integer nel,
integer offset,
integer nft,
value,
integer, dimension(*) is_written_value )

Definition at line 32 of file h3d_write_scalar.F.

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
#define my_real
Definition cppsort.cpp:32

◆ h3d_write_scalar_real()

subroutine h3d_write_scalar_real ( integer, dimension(*) iok_part,
integer, dimension(*) is_written,
scalar,
integer i,
integer offset,
integer nft,
real value )

Definition at line 101 of file h3d_write_scalar.F.

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

◆ h3d_write_scalar_stack()

subroutine h3d_write_scalar_stack ( integer, dimension(*) iok_part,
integer, dimension(*) is_written,
real(kind=4), dimension(*) scalar,
integer nel,
integer offset,
integer nft,
value,
integer, dimension(*) is_written_value,
integer, intent(inout) shell_scalar_stack )

Definition at line 65 of file h3d_write_scalar.F.

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(*)
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