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

Go to the source code of this file.

Functions/Subroutines

integer function nvar (text)

Function/Subroutine Documentation

◆ nvar()

integer function nvar ( character(len=ncharline100) text)

Definition at line 31 of file nvar.F.

32C-----------------------------------------------
33C M o d u l e s
34C-----------------------------------------------
36C-----------------------------------------------
37C I m p l i c i t T y p e s
38C-----------------------------------------------
39#include "implicit_f.inc"
40C-----------------------------------------------
41C C o m m o n B l o c k s
42C-----------------------------------------------
43
44C-----------------------------------------------
45C D u m m y A r g u m e n t s
46C-----------------------------------------------
47 CHARACTER(LEN=NCHARLINE100):: TEXT
48C-----------------------------------------------
49C L o c a l V a r i a b l e s
50C-----------------------------------------------
51 INTEGER N, I, J
52 CHARACTER TEXT1*101
53C-----------------------------------------------
54 text1(1:1)=' '
55 text1(2:101)=text
56 n=0
57 DO i=2,101
58 j=i-1
59 IF(text1(i:i) /= ' ' .AND. text1(j:j) == ' ') THEN
60 n=n+1
61 ENDIF
62 ENDDO
63 nvar=n
64 RETURN
integer, parameter ncharline100
integer function nvar(text)
Definition nvar.F:32