OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
metric_mod.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/.
23C Part of interface buffer:
24C Monitoring information for interface
25C-----------------------------------------------------------------------
26!||====================================================================
27!|| metric_mod ../common_source/modules/interfaces/metric_mod.F
28!||--- called by ------------------------------------------------------
29!|| close_interf_time ../engine/source/system/timer_interf.F
30!|| freform ../engine/source/input/freform.F
31!|| init_interf_sorting_strategy ../engine/source/interfaces/init_interf_sorting_strategy.F
32!|| int_startime ../engine/source/system/timer_interf.F
33!|| int_stoptime ../engine/source/system/timer_interf.F
34!|| intbufdef_mod ../common_source/modules/interfaces/intbufdef_mod.F90
35!|| inter_deallocate_wait ../engine/source/interfaces/generic/inter_deallocate_wait.F
36!|| inter_sort ../engine/source/interfaces/generic/inter_sort.F
37!|| intfop2 ../engine/source/interfaces/interf/intfop2.F
38!|| inttri ../engine/source/interfaces/intsort/inttri.F
39!|| open_interf_time ../engine/source/system/timer_interf.F
40!|| printime_interf ../engine/source/system/timer_interf.F
41!||====================================================================
43C----------------------------------------
44
45#include "my_real.inc"
46C Flag 2 names
47 INTEGER, PARAMETER :: algo_voxel = 1
48 INTEGER, PARAMETER :: algo_bucket = 2
49 INTEGER, PARAMETER :: try_algo_voxel =-1
50 INTEGER, PARAMETER :: try_algo_bucket = 0
51
52C Indexes
53 INTEGER, PARAMETER :: i_main_crit_tri = 1
54 INTEGER, PARAMETER :: i_main_tri = 2
55 INTEGER, PARAMETER :: i_main_opt_tri = 3
56 INTEGER, PARAMETER :: i_main_forces = 4
57 INTEGER, PARAMETER :: i_noint = 5
58 INTEGER, PARAMETER :: i_multimp = 6
59 INTEGER, PARAMETER :: i_nsn = 7
60 INTEGER, PARAMETER :: i_nsnr = 8
61 INTEGER, PARAMETER :: i_ncont = 9
62C Sizes
63 INTEGER, PARAMETER :: size_timer = 4
64 INTEGER, PARAMETER :: size_metric = 9
65
66C Debug
67 INTEGER, PARAMETER :: file_id= 4999
68
70
72 INTEGER :: noint
73 INTEGER :: multimp
74 INTEGER :: nsn
75 INTEGER :: nsnr
76 INTEGER :: impact
77 INTEGER :: ncont
78 INTEGER :: cycle0
79 INTEGER :: algo ! 1: definitive voxel, 2:definitive bucket , -1:test voxel, 0: test bucket
80 DOUBLE PRECISION :: tic,toc, told ! timers use choose algo
81 DOUBLE PRECISION, DIMENSION(SIZE_TIMER,2) :: time
82 END TYPE
83 CONTAINS
84
85!||====================================================================
86!|| int_printime ../common_source/modules/interfaces/metric_mod.F
87!||====================================================================
88 SUBROUTINE int_printime(THIS)
89C-----------------------------------------------
90C I m p l i c i t T y p e s
91C-----------------------------------------------
92#include "implicit_f.inc"
93C-----------------------------------------------
94C D u m m y A r g u m e n t s
95C-----------------------------------------------
96 TYPE(metric_struct_) :: THIS
97C-----------------------------------------------
98C L o c a l V a r i a b l e s
99C-----------------------------------------------
100 WRITE(4999,'(6I10,4F12.5)')
101 . this%NOINT,
102 . this%CYCLE0,
103 . this%NCONT,
104 . this%IMPACT,
105 . this%MULTIMP,
106 . this%NSNR,
107 . this%TIME(i_main_crit_tri,1),
108c . THIS%TIME(I_COMMCRIT,1),
109c . THIS%TIME(I_GFRONT,1),
110 . this%TIME(i_main_tri,1),
111 . this%TIME(i_main_opt_tri,1)
112c CALL INT_FLUSHTIME(THIS)
113 RETURN
114 END SUBROUTINE
115
116
117!||====================================================================
118!|| int_flushtime ../common_source/modules/interfaces/metric_mod.F
119!||--- called by ------------------------------------------------------
120!|| resol_init ../engine/source/engine/resol_init.F
121!||====================================================================
122 SUBROUTINE int_flushtime(THIS)
123C-----------------------------------------------
124C I m p l i c i t T y p e s
125C-----------------------------------------------
126#include "implicit_f.inc"
127C-----------------------------------------------
128C D u m m y A r g u m e n t s
129C-----------------------------------------------
130 TYPE(metric_struct_) :: THIS
131
132 this%TIME(1:size_timer,1:2) = 0.0d0
133 RETURN
134 END SUBROUTINE
135
136 END MODULE
integer, parameter i_main_tri
Definition metric_mod.F:54
integer, parameter size_metric
Definition metric_mod.F:64
integer, parameter i_nsnr
Definition metric_mod.F:60
integer, parameter i_ncont
Definition metric_mod.F:61
integer, parameter try_algo_voxel
Definition metric_mod.F:49
integer, parameter algo_voxel
Definition metric_mod.F:47
integer, parameter i_main_opt_tri
Definition metric_mod.F:55
integer, parameter i_main_forces
Definition metric_mod.F:56
integer, parameter i_multimp
Definition metric_mod.F:58
integer, parameter i_main_crit_tri
Definition metric_mod.F:53
integer, parameter i_noint
Definition metric_mod.F:57
subroutine int_printime(this)
Definition metric_mod.F:89
integer, parameter i_nsn
Definition metric_mod.F:59
subroutine int_flushtime(this)
Definition metric_mod.F:123
integer, parameter try_algo_bucket
Definition metric_mod.F:50
integer, parameter file_id
Definition metric_mod.F:67
integer global_interface_sorting_algo
Definition metric_mod.F:69
integer, parameter algo_bucket
Definition metric_mod.F:48
integer, parameter size_timer
Definition metric_mod.F:63