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

Go to the source code of this file.

Functions/Subroutines

subroutine varcondec (icodv, varconv, codtot)

Function/Subroutine Documentation

◆ varcondec()

subroutine varcondec ( integer, dimension(ale%global%lconv) icodv,
integer varconv,
integer codtot )

Definition at line 32 of file varcondec.F.

33C-----------------------------------------------
34C M o d u l e s
35C-----------------------------------------------
36 USE ale_mod
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41C-----------------------------------------------
42C D u m m y A r g u m e n t s
43C-----------------------------------------------
44 INTEGER ICODV(ALE%GLOBAL%LCONV),VARCONV,CODTOT
45C-----------------------------------------------
46C L o c a l V a r i a b l e s
47C-----------------------------------------------
48 INTEGER I,PDIX,CODVR
49C-----------------------------------------------
50C S o u r c e L i n e s
51C-----------------------------------------------
52 codtot=0
53 pdix=10**(ale%GLOBAL%LCONV-1)
54 codvr=varconv
55 DO i=ale%GLOBAL%LCONV,1,-1
56 icodv(i)=codvr/pdix
57 codvr=codvr-icodv(i)*pdix
58 pdix=pdix/10
59 IF(icodv(i)/=0)codtot=codtot+1
60 ENDDO
61C-----------------------------------------------
62 RETURN
63C-----------------------------------------------
type(ale_) ale
Definition ale_mod.F:249