/[lmdze]/trunk/IOIPSL/strlowercase.f90
ViewVC logotype

Contents of /trunk/IOIPSL/strlowercase.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations)
Thu Jun 13 14:40:06 2019 UTC (4 years, 11 months ago) by guez
File size: 618 byte(s)
Change all `.f` suffixes to `.f90`. (The opposite was done in revision
82.)  Because of change of philosopy in GNUmakefile: we already had a
rewritten rule for `.f`, so it does not make the makefile longer to
replace it by a rule for `.f90`. And it spares us options of
makedepf90 and of the compiler. Also we prepare the way for a simpler
`CMakeLists.txt`.

1 module strlowercase_m
2
3 implicit none
4
5 contains
6
7 !=
8 SUBROUTINE strlowercase (str)
9 !---------------------------------------------------------------------
10 !- Converts a string into lowercase
11 !---------------------------------------------------------------------
12 IMPLICIT NONE
13 !-
14 CHARACTER(LEN=*) :: str
15 !-
16 INTEGER :: i,ic
17 !---------------------------------------------------------------------
18 DO i=1,LEN_TRIM(str)
19 ic = IACHAR(str(i:i))
20 IF ( (ic >= 65) .AND. (ic <= 90) ) str(i:i) = ACHAR(ic+32)
21 ENDDO
22 !-----------------------------
23 END SUBROUTINE strlowercase
24
25 end module strlowercase_m

  ViewVC Help
Powered by ViewVC 1.1.21