OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
nolib_usermat99.F File Reference
#include "implicit_f.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine nolib_usermat99 (ilaw_user, iuser_key)

Function/Subroutine Documentation

◆ nolib_usermat99()

subroutine nolib_usermat99 ( integer, intent(in) ilaw_user,
character(len=ncharline100), intent(inout) iuser_key )

Definition at line 32 of file nolib_usermat99.F.

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.AND. ELSEIF(ILAW_USER >= 10 ILAW_USER <= 99) THEN
66 IUSER_KEY = 'user00'
67 WRITE(IUSER_KEY(5:6),FMT='(i2)')ILAW_USER
68 ENDIF
69C-----------------------------------------------
70 RETURN
integer, parameter ncharline100