/[lmdze]/trunk/bibio/lnblnk.f
ViewVC logotype

Annotation of /trunk/bibio/lnblnk.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 81 - (hide annotations)
Wed Mar 5 14:38:41 2014 UTC (10 years, 3 months ago) by guez
Original Path: trunk/bibio/lnblnk.f90
File size: 903 byte(s)
 Converted to free source form files which were still in fixed source
form. The conversion was done using the polish mode of the NAG Fortran
Compiler.

In addition to converting to free source form, the processing of the
files also:

-- indented the code (including comments);

-- set Fortran keywords to uppercase, and set all other identifiers
to lower case;

-- added qualifiers to end statements (for example "end subroutine
conflx", instead of "end");

-- changed the terminating statements of all DO loops so that each
loop ends with an ENDDO statement (instead of a labeled continue).

1 guez 3
2 guez 81 ! $Header: /home/cvsroot/LMDZ4/libf/bibio/lnblnk.F,v 1.1.1.1 2004/05/19
3     ! 12:53:05 lmdzadmin Exp $
4 guez 3
5 guez 81 INTEGER FUNCTION lnblnk(letter)
6 guez 3
7 guez 81 ! --------------------------------------------------------
8     ! Fonction qui determine la longeur d'un string sans les
9     ! blancs qui suivent. Le critere pour determiner la fin du
10     ! string est, trois blancs de suite
11     ! ---------------------------------------------------------
12     ! ARGUMENTS
13     ! +++++++++
14     ! letter: CHARACTER*xxx (xxx < imax)
15     ! le string dont on determine la longuer
16     ! lnblnk: INTEGER
17     ! le nombre de characteres
18 guez 3
19 guez 81 ! PARAMETER
20     ! +++++++++
21     ! imax : INTEGER
22     ! le nombre maximale de character que peut contenir le string
23     ! a traiter
24 guez 3
25 guez 81 IMPLICIT NONE
26     INTEGER i, imax
27     PARAMETER (imax=256)
28     CHARACTER *256 letter
29 guez 3
30 guez 81 i = 0
31 guez 3
32 guez 81 10 i = i + 1
33     IF (letter(i:i+3)==' ') GO TO 20
34     GO TO 10
35    
36     20 lnblnk = i - 1
37    
38     RETURN
39     END FUNCTION lnblnk
40    

  ViewVC Help
Powered by ViewVC 1.1.21