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

Go to the source code of this file.

Functions/Subroutines

subroutine decompress_i_nnz (array, len)
subroutine decompress_r_nnz (array, len)

Function/Subroutine Documentation

◆ decompress_i_nnz()

subroutine decompress_i_nnz ( integer, dimension(len), intent(inout) array,
integer, intent(in) len )

Definition at line 31 of file decompress_nnz.F.

32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36C---------------------------------------------
37C Arguments
38C---------------------------------------------
39 INTEGER, INTENT(IN) :: LEN
40 INTEGER, INTENT(INOUT) :: ARRAY(LEN)
41C---------------------------------------------
42C Local Variables
43C---------------------------------------------
44
45 INTEGER I,J,IBEGIN, NNZ
46
47 CALL read_i_c(ibegin,1)
48 j = 2
49 DO WHILE(ibegin > 0)
50 CALL read_i_c(nnz,1)
51 j = j +1
52 CALL read_i_c(array(ibegin:ibegin+nnz-1),nnz)
53 j = j + nnz
54 CALL read_i_c(ibegin,1)
55 j = j + 1
56 END DO
57
void read_i_c(int *w, int *len)

◆ decompress_r_nnz()

subroutine decompress_r_nnz ( dimension(len), intent(inout) array,
integer, intent(in) len )

Definition at line 70 of file decompress_nnz.F.

71C-----------------------------------------------
72C I m p l i c i t T y p e s
73C-----------------------------------------------
74#include "implicit_f.inc"
75C---------------------------------------------
76C Arguments
77C---------------------------------------------
78 INTEGER, INTENT(IN) :: LEN
79 my_real, INTENT(INOUT) :: array(len)
80C---------------------------------------------
81C Local Variables
82C---------------------------------------------
83
84 INTEGER I,J,IBEGIN, NNZ
85
86 CALL read_i_c(ibegin,1)
87 j = 2
88 DO WHILE(ibegin > 0)
89 CALL read_i_c(nnz,1)
90 j = j +1
91 CALL read_db(array(ibegin:ibegin+nnz-1),nnz)
92 j = j + nnz
93 CALL read_i_c(ibegin,1)
94 j = j + 1
95 END DO
96
#define my_real
Definition cppsort.cpp:32
subroutine read_db(a, n)
Definition read_db.F:88