source: trunk/pgm03/init.f @ 1

Last change on this file since 1 was 1, checked in by cbipsl, 18 years ago

Geisa inital import

File size: 2.6 KB
Line 
1C     CETTE OPTION PERMET D'AFFECTER A LA BANQUE UN NUMERO DE VERSION
2C     EN METTANT LL3=VERS
3C     CETTE OPTION INITIALISE LES PISTES DISPONIBLES DE LA BANQUE
4C     EN ECRIVANT DES RECORDS COMMEMCANT PAR KB,LONGR,MAX,N52
5C     QUI SERVIRONT AU STOCKAGE DES INFORMATIONS UTILISATEURS
6C       
7C - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
8C       
9C LAST MODIF : 06.05.1991 PASSAGE DE 40 MOLECULES A 75 DANS LES COMMON
10C       
11C - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
12      subroutine init(iuni,isor,pgm,vers)
13C       
14      logical*1 qqq
15      integer vers
16      character*7   form,bin
17      character*3   pgm,modif,mpgx
18C       
19      common/p4/ nmol,knmol,ksot,kksot,ntab,nhist,kp,lre,form,bin,modif
20      common/p8/ npgx,nfff,mpgx,qqq(75)
21C       
22      nfff=1
23      call pgeisa(0.,99999.)
24      read (iuni,rec=1)
25     &aa1,aa2,anu,n203,nbraie,nbmol,iecr,ifin,ll1,ll2,ll3,ll4
26      if(ll1.eq.0.or.ll2.eq.0) go to 50
27      write(isor,1000)  pgm,pgm,vers
281000  format(1x,17('*'),98x,17('*')/1x,'* geisa   geisa *',
29     &31x,'      spectroscopic data bank      ',32x,
30     &'* geisa   geisa *'/' *',6x,a3,6x,'*',98x,'*',6x,a3,6x,'*'/
31     &' * geisa   geisa *',26x,15x,'*** GEISA',i2.2,' ***',16x,
32     &      26x,'* geisa   geisa *'/1x,17('*'),98x,17('*')/
33     &       1x,38x,'management and study of atmospheric spectroscopic
34     &informations')
35      write(isor,2000)
362000  format(//1x,45x,'initialisation of the user environment  '//)
37      ll3=vers
38      ll4=0
39      write(iuni,rec=1)
40     &aa1,aa2,anu,n203,nbraie,nbmol,iecr,ifin,ll1,ll2,ll3,ll4
41      kb=0
42      iiii=ifin+ll1+ll2
43      nxx=32+nmol
44C     4 MOTS DE DEBUT DE RECORD
45C       
46      longr=int(6217./nxx)*nxx
47C       
48C     KB+1 ADRESSE DU 1ER OCTET DISPONIBLE SUR LA PISTE
49C     LONGR=LONGUEUR DISPONIBLE SUR LA PISTE EN OCTETS
50C     MAX=NOMBRE DE PISTES RESERVEES POUR CES INFORMATIONS
51C     NXX=32+NMOL LONGUEUR EN OCTETS DES INFORMATIONS UTILISATEURS
52C       
53      do 10 i=iiii,iplace
54      write(iuni,rec=i   ) kb,longr,max,nxx
5510    continue
56      write(isor,3000) nbraie,aa1,aa2
573000  format(///' total number of transitions : ',i7//
58     &'   first  transition : ',f12.6/
59     &'   last   transition : ',f12.6/)
60      ifi1=ifin-1
61      write(isor,3100) ifi1
623100  format(/1x,'the data are contained form records 1 to',i6/)
63      write(isor,3200) ll1,ll2
643200  format(/1x,'the trs informations used  ',i5,' records'/
65     &1x,'the anl informations used  ',i5,' records'/)
66      return
6750    continue
68      write(isor,5000) pgm
695000  format(///' *',a3,'* used options trs and anl by coding parameter:
70     & modif=oui before this initialisation'///)
71      return
72      end
Note: See TracBrowser for help on using the repository browser.