OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
decompress_nnz.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!|| decompress_i_nnz ../common_source/comm/decompress_nnz.F
25!||--- called by ------------------------------------------------------
26!|| intbuf_ini ../common_source/interf/intbuf_ini.F
27!|| rdresb ../engine/source/output/restart/rdresb.F
28!||--- calls -----------------------------------------------------
29!|| read_i_c ../common_source/tools/input_output/write_routtines.c
30!||====================================================================
31 SUBROUTINE decompress_i_nnz(ARRAY,LEN)
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
58 END SUBROUTINE
59
60
61!||====================================================================
62!|| decompress_r_nnz ../common_source/comm/decompress_nnz.F
63!||--- called by ------------------------------------------------------
64!|| intbuf_ini ../common_source/interf/intbuf_ini.F
65!|| rdresb ../engine/source/output/restart/rdresb.F
66!||--- calls -----------------------------------------------------
67!|| read_db ../common_source/tools/input_output/read_db.F
68!|| read_i_c ../common_source/tools/input_output/write_routtines.c
69!||====================================================================
70 SUBROUTINE decompress_r_nnz(ARRAY,LEN)
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
97 END SUBROUTINE
98
#define my_real
Definition cppsort.cpp:32
subroutine decompress_i_nnz(array, len)
subroutine decompress_r_nnz(array, len)
subroutine read_db(a, n)
Definition read_db.F:88
void read_i_c(int *w, int *len)