The TELEMAC-MASCARET system
trunk
sources
utils
special
blanc2uscore.f
Go to the documentation of this file.
1
! *****************
2
SUBROUTINE
blanc2uscore(STRING,N)
3
! *****************
4
!***********************************************************************
5
! SPECIAL V7P2
6
!***********************************************************************
7
!
8
!brief Replance space by underscore in string
9
!
10
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11
!| STRING |<->| THE CHARACTER ARRAY TO CHANGE
12
!| N |-->| SIZE OF STRING
13
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14
!
15
USE
declarations_special
16
!
17
IMPLICIT NONE
18
!
19
!+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
20
!
21
INTEGER
,
INTENT(IN)
:: n
22
CHARACTER(LEN=N)
,
INTENT(INOUT)
:: string
23
!
24
!+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
25
!
26
INTEGER
:: i
27
!
28
!-----------------------------------------------------------------------
29
!
30
DO
i=1,n
31
IF
(string(i:i).EQ.
' '
) string(i:i) =
'_'
32
ENDDO
33
!
34
!-----------------------------------------------------------------------
35
!
36
END SUBROUTINE
blanc2uscore
37
declarations_special
Definition:
declarations_special.F:3