OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
nolib_usermat99.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!|| nolib_usermat99 ../engine/source/user_interface/nolib_usermat99.F
25!||--- called by ------------------------------------------------------
26!|| usermat_shell ../engine/source/materials/mat_share/usermat_shell.F
27!|| usermat_solid ../engine/source/materials/mat_share/usermat_solid.F
28!||--- uses -----------------------------------------------------
29!|| law_usersh ../engine/source/user_interface/law_usersh.F
30!|| names_and_titles_mod ../common_source/modules/names_and_titles_mod.F
31!||====================================================================
32 SUBROUTINE nolib_usermat99(ILAW_USER, IUSER_KEY)
33C-----------------------------------------------
34C D e s c r i p t i o n
35C-----------------------------------------------
36C This subroutine returns IUSER_KEY='USER**' where ** is ILAW_USER
37C
38! example : ILAW_USER==3 --> IUSER_KEY='USER03'
39! example : ILAW_USER==31 --> IUSER_KEY='USER31'
40!
41! valid range for ILAW_USER (precondition) :
42! ILAW_USER \in [1,99]
43! (if ILAW_USER is out of range then IUSER_KEY is unchanged)
44!
45C-----------------------------------------------
46C M o d u l e s
47C-----------------------------------------------
48 USE law_usersh
50C-----------------------------------------------
51C C o m m o n B l o c k s
52C-----------------------------------------------
53#include "implicit_f.inc"
54C-----------------------------------------------
55C D u m m y A r g u m e n t s
56C-----------------------------------------------
57 CHARACTER(LEN=NCHARLINE100),INTENT(INOUT) :: IUSER_KEY
58 INTEGER,INTENT(IN) :: ILAW_USER
59C-----------------------------------------------
60C S o u r c e L i n e s
61C-----------------------------------------------
62 IF(ilaw_user >= 1 .AND. ilaw_user <= 9) THEN
63 iuser_key = 'USER00'
64 WRITE(iuser_key(6:6),fmt='(I1)')ilaw_user
65 ELSEIF(ilaw_user >= 10 .AND. ilaw_user <= 99) THEN
66 iuser_key = 'USER00'
67 WRITE(iuser_key(5:6),fmt='(I2)')ilaw_user
68 ENDIF
69C-----------------------------------------------
70 RETURN
71 END
integer, parameter ncharline100
subroutine nolib_usermat99(ilaw_user, iuser_key)