OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
init_interf_sorting_strategy.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!|| init_interf_sorting_strategy ../engine/source/interfaces/init_interf_sorting_strategy.F
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||--- uses -----------------------------------------------------
28!|| intbufdef_mod ../common_source/modules/interfaces/intbufdef_mod.F90
29!|| metric_mod ../common_source/modules/interfaces/metric_mod.F
30!||====================================================================
31 SUBROUTINE init_interf_sorting_strategy(INTBUF_TAB,NINTER)
32C Bucket or voxel, depending on /PERF/ in 1.rad
33C By default, both will be tried, the best will be kept
34C for the rest of simulation
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
38 USE intbufdef_mod
39 USE metric_mod
40C-----------------------------------------------
41C I m p l i c i t T y p e s
42C-----------------------------------------------
43#include "implicit_f.inc"
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 INTEGER, INTENT(IN) :: NINTER
48 TYPE(intbuf_struct_),DIMENSION(NINTER), INTENT(INOUT) :: INTBUF_TAB
49C-----------------------------------------------
50C L o c a l V a r i a b l e s
51C-----------------------------------------------
52 INTEGER :: I
53 DO i=1,ninter
54 intbuf_tab(i)%METRIC%TIC = 0
55 intbuf_tab(i)%METRIC%TOC = 0
56 intbuf_tab(i)%METRIC%TOLD = 0
57 intbuf_tab(i)%METRIC%CYCLE0 = -1
59 intbuf_tab(i)%METRIC%ALGO = try_algo_voxel
60 ELSEIF( global_interface_sorting_algo == 2) THEN
61 intbuf_tab(i)%METRIC%ALGO = algo_bucket
62 ELSE
63 intbuf_tab(i)%METRIC%ALGO = algo_voxel
64 ENDIF
65 ENDDO
66 END
67
68
subroutine init_interf_sorting_strategy(intbuf_tab, ninter)
integer, parameter try_algo_voxel
Definition metric_mod.F:49
integer, parameter algo_voxel
Definition metric_mod.F:47
integer global_interface_sorting_algo
Definition metric_mod.F:69
integer, parameter algo_bucket
Definition metric_mod.F:48