OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
checksum_mod Module Reference

Data Types

interface  adler32

Functions/Subroutines

integer function double_array_checksum (a, siz1, siz2)

Variables

integer, parameter root = 65521
integer, parameter two_power_16 = 65536

Function/Subroutine Documentation

◆ double_array_checksum()

integer function checksum_mod::double_array_checksum ( double precision, dimension(siz2,siz1), intent(in), target a,
integer, intent(in) siz1,
integer, intent(in) siz2 )
Parameters
[in]siz2sizes
[in]a2D array of real values
Returns
return value, Adler 32 checksum of A

Definition at line 52 of file node_checksum.F.

53 USE iso_c_binding
54C-----------------------------------------------
55C I m p l i c i t T y p e s
56C-----------------------------------------------
57 IMPLICIT NONE
58C-----------------------------------------------
59C D u m m y A r g u m e n t s
60C-----------------------------------------------
61 INTEGER, INTENT(IN) :: SIZ1,SIZ2 !< sizes
62 DOUBLE PRECISION, TARGET, INTENT(IN) :: A(SIZ2,SIZ1) !< 2D array of real values
63 INTEGER :: CHECKSUM !< return value, Adler 32 checksum of A
64C-----------------------------------------------
65C L o c a l V a r i a b l e s
66C-----------------------------------------------
67 integer(c_size_t) :: len
68C-----------------------------------------------
69 len = siz2*siz1
70 len = len * sizeof(a(1,1))
71 call adler32(c_loc(a), len, checksum)

Variable Documentation

◆ root

integer, parameter checksum_mod::root = 65521

Definition at line 31 of file node_checksum.F.

31 INTEGER, PARAMETER :: ROOT = 65521

◆ two_power_16

integer, parameter checksum_mod::two_power_16 = 65536

Definition at line 32 of file node_checksum.F.

32 INTEGER, PARAMETER :: TWO_POWER_16 = 65536