OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
leclas1.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!|| leclas1 ../starter/source/loads/laser/leclas1.F
25!||--- called by ------------------------------------------------------
26!|| leclas ../starter/source/loads/laser/leclas.F
27!||--- calls -----------------------------------------------------
28!|| hm_get_int_array_index ../starter/source/devtools/hm_reader/hm_get_int_array_index.F
29!||--- uses -----------------------------------------------------
30!|| format_mod ../starter/share/modules1/format_mod.F90
31!|| hm_option_read_mod ../starter/share/modules1/hm_option_read_mod.F
32!|| submodel_mod ../starter/share/modules1/submodel_mod.F
33!||====================================================================
34 SUBROUTINE leclas1(NL ,LAS ,NC, LSUBMODEL)
35C-----------------------------------------------
36C M o d u l e s
37C-----------------------------------------------
40 USE format_mod , ONLY : fmt_10i
41C-----------------------------------------------
42C I m p l i c i t T y p e s
43C-----------------------------------------------
44#include "implicit_f.inc"
45C-----------------------------------------------
46C D u m m y A r g u m e n t s
47C-----------------------------------------------
48 INTEGER,INTENT(IN) :: NC, NL
49 INTEGER,INTENT(INOUT) :: LAS(2,*)
50 TYPE(submodel_data),INTENT(IN) ::LSUBMODEL(NSUBMOD)
51C-----------------------------------------------
52C C o m m o n B l o c k s
53C-----------------------------------------------
54#include "units_c.inc"
55C-----------------------------------------------
56C L o c a l V a r i a b l e s
57C-----------------------------------------------
58 INTEGER I,J,N,NN,NK
59 INTEGER J10(NL)
60 LOGICAL IS_AVAILABLE
61C---------------------------------
62C List of plasma elements
63C---------------------------------
64
65 !---READING
66 DO j=1,nl
67 CALL hm_get_int_array_index('location_unit_element', j10(j), j, is_available, lsubmodel)
68 las(1,j) = j10(j)
69 ENDDO
70
71 !---OUTPUT
72 n = 0
73 nn = nl / 10
74 nk = mod(nl,10)
75 DO j=1,nn
76 WRITE(iout,fmt_10i)j10((j-1)*10+1:j*10)
77 ENDDO
78 WRITE(iout,fmt_10i)j10(nn*10+1:nn*10+nk)
79
80 !---STORAGE
81 las(1,nl+1)=nc
82
83 RETURN
84 END
subroutine hm_get_int_array_index(name, ival, index, is_available, lsubmodel)
subroutine leclas1(nl, las, nc, lsubmodel)
Definition leclas1.F:35
integer nsubmod