Statistiques
| Révision :

root / src / Header.f90 @ 3

Historique | Voir | Annoter | Télécharger (692 octet)

1 1 pfleura2
       subroutine Header(String)
2 1 pfleura2
! This short subroutine print a header in a nice way
3 1 pfleura2
4 1 pfleura2
         IMPLICIT NONE
5 1 pfleura2
6 1 pfleura2
         CHARACTER(*) :: String
7 1 pfleura2
         CHARACTER(70) :: Head1,Sep
8 1 pfleura2
         INTEGER :: LenS,Len1,Pos1
9 1 pfleura2
10 1 pfleura2
         Head1="====================================================================="
11 1 pfleura2
           Sep="                                                                     "
12 1 pfleura2
13 1 pfleura2
         LenS=len(String)
14 1 pfleura2
 !        WRITE(*,*) "DBG Head:",LenS, String
15 1 pfleura2
         Pos1=34-Int(LenS/2)
16 1 pfleura2
         Len1=67-LenS-Pos1
17 1 pfleura2
18 1 pfleura2
         WRITe(*,'(A)') Head1
19 1 pfleura2
         WRITE(*,'(A)') "=" // Sep(1:Pos1) // String(1:LenS) // Sep(1:Len1) // "="
20 1 pfleura2
         WRITe(*,'(A)') Head1
21 1 pfleura2
22 1 pfleura2
       END subroutine Header