source: trunk/LMDZ.MARS/libf/phymars/tabfi.F @ 4041

Last change on this file since 4041 was 4041, checked in by jbclement, 2 weeks ago

Mars PCM:
Deletion of depreciated keys to set water ice/frost albedo.
JBC

File size: 22.4 KB
Line 
1      MODULE tabfi_mod
2     
3      IMPLICIT NONE
4     
5      CONTAINS
6     
7c=======================================================================
8      SUBROUTINE tabfi(nid,Lmodif,tab0,day_ini,lmax,p_rad,
9     .                 p_omeg,p_g,p_mugaz,p_daysec,time)
10c=======================================================================
11c
12c   C. Hourdin 15/11/96
13c
14c   Object:        Lecture du tab_cntrl physique dans un fichier
15c   ------            et initialisation des constantes physiques
16c
17c   Arguments:
18c   ----------
19c
20c     Inputs:
21c     ------
22c
23c      - nid:    unitne logique du fichier ou on va lire le tab_cntrl   
24c                      (ouvert dans le programme appellant)
25c
26c                 si nid=0:
27c                       pas de lecture du tab_cntrl mais
28c                       Valeurs par default des constantes physiques
29c       
30c      - tab0:    Offset de tab_cntrl a partir duquel sont ranges
31c                  les parametres physiques (50 pour start_archive)
32c
33c      - Lmodif:  si on souhaite modifier les constantes  Lmodif = 1 = TRUE
34c
35c
36c     Outputs:
37c     --------
38c
39c      - day_ini: tab_cntrl(tab0+3) (Dans les cas ou l'on souhaite
40c                              comparer avec le day_ini dynamique)
41c
42c      - lmax:    tab_cntrl(tab0+2) (pour test avec nlayer)
43c
44c      - p_rad
45c      - p_omeg   !
46c      - p_g      ! Constantes physiques ayant des
47c      - p_mugaz  ! homonymes dynamiques
48c      - p_daysec !
49c
50c=======================================================================
51! to use  'getin_p'
52      use ioipsl_getin_p_mod, only: getin_p
53
54      use comsoil_h, only: volcapa ! soil volumetric heat capacity
55      use surfdat_h, only: z0_default, emissiv, emisice, albedice,
56     &                     iceradius, dtemisice, iceradius
57      use dimradmars_mod, only: tauvis
58      use iostart, only: get_var
59      use mod_phys_lmdz_para, only: is_parallel
60      use comcstfi_h, only: g, mugaz, omeg, rad, rcp
61      use time_phylmdz_mod, only: daysec, dtphys
62      use planete_h, only: aphelie, emin_turb, lmixmin, obliquit,
63     &                     peri_day, periheli, year_day,
64     &                     lsp2solp, iniorbit
65
66      implicit none
67 
68      include "netcdf.inc"
69
70c-----------------------------------------------------------------------
71c   Declarations
72c-----------------------------------------------------------------------
73
74c Arguments
75c ---------
76      INTEGER,INTENT(IN) :: nid,tab0
77      INTEGER*4,INTENT(OUT) :: day_ini
78      INTEGER,INTENT(IN) :: Lmodif
79      INTEGER,INTENT(OUT) :: lmax
80      REAL,INTENT(OUT) :: p_rad,p_omeg,p_g,p_mugaz,p_daysec,time
81
82c Variables
83c ---------
84      INTEGER :: nvarid
85      REAL :: peri_ls
86      INTEGER length
87      parameter (length = 100)
88      REAL tab_cntrl(length) ! array in which are stored the run's parameters
89      INTEGER  ierr
90      INTEGER size
91      CHARACTER modif*20
92      LOGICAL :: found
93      CHARACTER(len=5) :: modname="tabfi"
94
95      write(*,*)"tabfi: nid=",nid," tab0=",tab0," Lmodif=",Lmodif
96     
97c-----------------------------------------------------------------------
98c  Initialization of various physical constants to defaut values (nid = 0 case)
99c-----------------------------------------------------------------------
100      IF (nid.eq.0) then
101
102      ! to avoid further issues with writing
103      tab_cntrl(:)=0
104      lmax=0
105      day_ini=0
106      time = 0
107 
108c Reference pressure
109c-------------------------------------
110c     pressrf = 670. ! Pression de reference (Pa) ~650
111
112c Infos about Mars for the dynamics and physics
113c----------------------------------------------------------
114      rad=3397200.              ! radius of Mars (m)  ~3397200 m
115      daysec=88775.             ! length of a sol (s)  ~88775 s
116      omeg=4.*asin(1.)/(daysec) ! rotation rate  (rad.s-1)
117      g=3.72                    ! gravity (m.s-2) ~3.72
118      mugaz=43.49               ! Molar mass of the atmosphere (g.mol-1) ~43.49
119      rcp=.256793               ! = r/cp  ~0.256793
120
121c Informations about Mars, only for physics
122c-----------------------------------------------------
123      year_day = 669.   ! Modif FH: length of year (sols) ~668.6
124      periheli = 206.66 ! min. Sun-Mars distance (Mkm) ~206.66
125      aphelie = 249.22  ! max. Sun-Mars distance (Mkm) ~249.22
126      peri_day =  485.  ! date of perihelion (sols since N. spring)
127      obliquit = 25.19  ! Obliquity of the planet (deg) ~25.19
128
129c Boundary layer and turbulence
130c----------------------------
131      z0_default =  1.e-2 ! surface roughness (m) ~0.01
132      emin_turb = 1.e-6   ! minimal energy ~1.e-8
133      lmixmin = 30        ! mixing length ~100
134
135c Optical properties of polar caps and ground emissivity
136c-----------------------------------------------------
137      emissiv=.95            ! Emissivity of martian soil ~.95
138      emisice(1)=0.95        ! Emissivity of northern cap
139      emisice(2)=0.95        ! Emissivity of southern cap
140      albedice(1)=0.65       ! Albedo of northern cap
141      albedice(2)=0.65       ! Albedo of southern cap
142      iceradius(1) = 100.e-6 ! mean scat radius of CO2 snow (north)
143      iceradius(2) = 100.e-6 ! mean scat radius of CO2 snow (south)
144      dtemisice(1) = 0.4     ! time scale for snow metamorphism (north)
145      dtemisice(2) = 0.4     ! time scale for snow metamorphism (south)
146
147c dust aerosol properties
148c---------------------------------
149      tauvis= 0.2 ! mean visible optical depth
150
151c  Ancien code radiatif (non utilise avec le code d'apres 03/96)
152c---------------------------------------------------------------
153c     tauir= 0.  ! .2  ratio (mean IR opt.depth)/Visible
154c     scatalb=0. ! .86 scaterring albedo visible (~.86)
155c     asfact=0.  ! .79 assymetrie factor visible   (~.79)
156c     day0 = 0   ! = 0 en general !!!
157
158c soil properties
159      volcapa = 1.e6 ! soil volumetric heat capacity (in comsoil.h)
160      ELSE
161c-----------------------------------------------------------------------
162c  Initialization of physical constants by reading array tab_cntrl(:)
163c               which contains these parameters (nid != 0 case)
164c-----------------------------------------------------------------------
165c Read 'controle' array
166c
167       call get_var("controle",tab_cntrl,found)
168       if (.not.found) then
169         call abort_physic(modname,
170     &        "tabfi: Failed reading <controle> array",1)
171       else
172         write(*,*)'tabfi: tab_cntrl',tab_cntrl
173       endif
174c
175c  Initialization of some physical constants
176c informations on physics grid
177      lmax = nint(tab_cntrl(tab0+2))
178      day_ini = tab_cntrl(tab0+3)
179      time = tab_cntrl(tab0+4)
180      write (*,*) 'IN tabfi day_ini=',day_ini
181c Informations about planet Mars for dynamics and physics
182      rad = tab_cntrl(tab0+5)
183      omeg = tab_cntrl(tab0+6)
184      g = tab_cntrl(tab0+7)
185      mugaz = tab_cntrl(tab0+8)
186      rcp = tab_cntrl(tab0+9)
187      daysec = tab_cntrl(tab0+10)
188      dtphys = tab_cntrl(tab0+11)
189c Informations about planet Mars for the physics only
190      year_day = tab_cntrl(tab0+14)
191      periheli = tab_cntrl(tab0+15)
192      aphelie = tab_cntrl(tab0+16)
193      peri_day = tab_cntrl(tab0+17)
194      obliquit = tab_cntrl(tab0+18)
195c boundary layer and turbeulence
196      z0_default = tab_cntrl(tab0+19)
197      lmixmin = tab_cntrl(tab0+20)
198      emin_turb = tab_cntrl(tab0+21)
199c optical properties of polar caps and ground emissivity
200      albedice(1)= tab_cntrl(tab0+22)
201      albedice(2)= tab_cntrl(tab0+23)
202      emisice(1) = tab_cntrl(tab0+24)
203      emisice(2) = tab_cntrl(tab0+25)
204      emissiv    = tab_cntrl(tab0+26)
205      tauvis     = tab_cntrl(tab0+27)  ! dust opt. depth vis.
206      iceradius(1)= tab_cntrl(tab0+31) ! mean scat radius of CO2 snow (north)
207      iceradius(2)= tab_cntrl(tab0+32) ! mean scat radius of CO2 snow (south)
208      dtemisice(1)= tab_cntrl(tab0+33) !time scale for snow metamorphism (north)
209      dtemisice(2)= tab_cntrl(tab0+34) !time scale for snow metamorphism (south)
210c soil properties
211      volcapa = tab_cntrl(tab0+35) ! volumetric heat capacity
212c-----------------------------------------------------------------------
213c       Save some constants for later use (as routine arguments)
214c-----------------------------------------------------------------------
215      p_omeg = omeg
216      p_g = g
217      p_mugaz = mugaz
218      p_daysec = daysec
219      p_rad=rad
220
221      ENDIF    ! end of (nid = 0)
222
223c-----------------------------------------------------------------------
224c       Write physical constants to output before modifying them
225c-----------------------------------------------------------------------
226 
227   6  FORMAT(a20,e15.6,e15.6)
228   5  FORMAT(a20,f12.2,f12.2)
229 
230      write(*,*) '*****************************************************'
231      write(*,*) 'Reading tab_cntrl when calling tabfi before changes'
232      write(*,*) '*****************************************************'
233      write(*,5) '(1)        = ngrid?',tab_cntrl(tab0+1)
234      write(*,5) '(2)            lmax',tab_cntrl(tab0+2),real(lmax)
235      write(*,5) '(3)         day_ini',tab_cntrl(tab0+3),real(day_ini)
236      write(*,5) '(5)             rad',tab_cntrl(tab0+5),rad
237      write(*,5) '(10)         daysec',tab_cntrl(tab0+10),daysec
238      write(*,6) '(6)            omeg',tab_cntrl(tab0+6),omeg
239      write(*,5) '(7)               g',tab_cntrl(tab0+7),g
240      write(*,5) '(8)           mugaz',tab_cntrl(tab0+8),mugaz
241      write(*,5) '(9)             rcp',tab_cntrl(tab0+9),rcp
242      write(*,6) '(11)        dtphys?',tab_cntrl(tab0+11),dtphys
243
244      write(*,5) '(14)       year_day',tab_cntrl(tab0+14),year_day
245      write(*,5) '(15)       periheli',tab_cntrl(tab0+15),periheli
246      write(*,5) '(16)        aphelie',tab_cntrl(tab0+16),aphelie
247      write(*,5) '(17)       peri_day',tab_cntrl(tab0+17),peri_day
248      write(*,5) '(18)       obliquit',tab_cntrl(tab0+18),obliquit
249
250      write(*,6) '(19)     z0_default',tab_cntrl(tab0+19),z0_default
251      write(*,6) '(21)      emin_turb',tab_cntrl(tab0+21),emin_turb
252      write(*,5) '(20)        lmixmin',tab_cntrl(tab0+20),lmixmin
253
254      write(*,5) '(26)        emissiv',tab_cntrl(tab0+26),emissiv
255      write(*,5) '(24)     emisice(1)',tab_cntrl(tab0+24),emisice(1)
256      write(*,5) '(25)     emisice(2)',tab_cntrl(tab0+25),emisice(2)
257      write(*,5) '(22)    albedice(1)',tab_cntrl(tab0+22),albedice(1)
258      write(*,5) '(23)    albedice(2)',tab_cntrl(tab0+23),albedice(2)
259      write(*,6) '(31)   iceradius(1)',tab_cntrl(tab0+31),iceradius(1)
260      write(*,6) '(32)   iceradius(2)',tab_cntrl(tab0+32),iceradius(2)
261      write(*,5) '(33)   dtemisice(1)',tab_cntrl(tab0+33),dtemisice(1)
262      write(*,5) '(34)   dtemisice(2)',tab_cntrl(tab0+34),dtemisice(2)
263
264      write(*,5) '(27)         tauvis',tab_cntrl(tab0+27),tauvis
265
266      write(*,5) '(35)        volcapa',tab_cntrl(tab0+35),volcapa
267
268      write(*,*)
269      write(*,*) 'Lmodif in tabfi!!!!!!!',Lmodif
270
271c-----------------------------------------------------------------------
272c        Modifications...
273! NB: Modifying controls should only be done by newstart, and in seq mode
274      if ((Lmodif.eq.1).and.is_parallel) then
275        write(*,*) "tabfi: Error modifying tab_control should",
276     &             " only happen in serial mode (eg: by newstart)"
277        call abort_physic(modname,
278     &       "tab_control modification not possible in parallel",1)
279      endif
280c-----------------------------------------------------------------------
281
282      IF(Lmodif.eq.1) then
283
284      write(*,*)
285      write(*,*) 'Change values in tab_cntrl ? :'
286      write(*,*) '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
287      write(*,*) '(Current values given above)'
288      write(*,*)
289      write(*,*) '(3)          day_ini : Initial day (=0 at Ls=0)'
290      write(*,*) '(19)              z0 : default surface roughness (m)'
291      write(*,*) '(21)       emin_turb :  minimal energy (PBL)'
292      write(*,*) '(20)         lmixmin : mixing length (PBL)'
293      write(*,*) '(26)         emissiv : ground emissivity'
294      write(*,*) '(24 et 25)   emisice : CO2 ice max emissivity '
295      write(*,*) '(22 et 23)  albedice : CO2 ice cap albedos'
296      write(*,*) '(31 et 32) iceradius : mean scat radius of CO2 snow'
297      write(*,*) '(33 et 34) dtemisice : time scale for snow',
298     &           ' metamorphism'
299      write(*,*) '(27)        tauvis : mean dust vis. reference ',
300     &           'opacity'
301      write(*,*) '(35)         volcapa : soil volumetric heat capacity'
302      write(*,*) '(18)        obliquit : planet obliquity (deg)'
303      write(*,*) '(17)      peri_day : perihelion date (sol since Ls=0)'
304      write(*,*) '(  )      peri_ls : perihelion date (Ls since Ls=0)'
305      write(*,*) '(15)      periheli : min. sun-mars dist (Mkm)'
306      write(*,*) '(16)      aphelie  : max. sun-mars dist (Mkm)'
307      write(*,*)
308 
309 
310      do ! neverending loop
311        write(*,*)
312        write(*,*)
313        write(*,*) 'Changes to perform ?'
314        write(*,*) '   (enter keyword or return )'
315        write(*,*)
316        read(*,fmt='(a20)') modif
317        if (modif(1:1) .eq. ' ') goto 999
318 
319        write(*,*)
320        write(*,*) trim(modif) , ' : '
321
322        if (trim(modif) .eq. 'day_ini') then
323          write(*,*) 'current value:',day_ini
324          write(*,*) 'enter new value:'
325 101      read(*,*,iostat=ierr) day_ini
326          if(ierr.ne.0) goto 101
327          write(*,*) ' '
328          write(*,*) 'day_ini (new value):',day_ini
329
330        else if (trim(modif) .eq. 'z0') then
331          write(*,*) 'current value (m):',z0_default
332          write(*,*) 'enter new value (m):'
333 102      read(*,*,iostat=ierr) z0_default
334          if(ierr.ne.0) goto 102
335          write(*,*) ' '
336          write(*,*) ' z0 (new value):',z0_default
337
338        else if (trim(modif) .eq. 'emin_turb') then
339          write(*,*) 'current value:',emin_turb
340          write(*,*) 'enter new value:'
341 103      read(*,*,iostat=ierr) emin_turb
342          if(ierr.ne.0) goto 103
343          write(*,*) ' '
344          write(*,*) ' emin_turb (new value):',emin_turb
345
346        else if (trim(modif) .eq. 'lmixmin') then
347          write(*,*) 'current value:',lmixmin
348          write(*,*) 'enter new value:'
349 104      read(*,*,iostat=ierr) lmixmin
350          if(ierr.ne.0) goto 104
351          write(*,*) ' '
352          write(*,*) ' lmixmin (new value):',lmixmin
353
354        else if (trim(modif) .eq. 'emissiv') then
355          write(*,*) 'current value:',emissiv
356          write(*,*) 'enter new value:'
357 105      read(*,*,iostat=ierr) emissiv
358          if(ierr.ne.0) goto 105
359          write(*,*) ' '
360          write(*,*) ' emissiv (new value):',emissiv
361
362        else if (trim(modif) .eq. 'emisice') then
363          write(*,*) 'current value emisice(1) North:',emisice(1)
364          write(*,*) 'enter new value:'
365 106      read(*,*,iostat=ierr) emisice(1)
366          if(ierr.ne.0) goto 106
367          write(*,*)
368          write(*,*) ' emisice(1) (new value):',emisice(1)
369          write(*,*)
370
371          write(*,*) 'current value emisice(2) South:',emisice(2)
372          write(*,*) 'enter new value:'
373 107      read(*,*,iostat=ierr) emisice(2)
374          if(ierr.ne.0) goto 107
375          write(*,*)
376          write(*,*) ' emisice(2) (new value):',emisice(2)
377
378        else if (trim(modif) .eq. 'albedice') then
379          write(*,*) 'current value albedice(1) North:',albedice(1)
380          write(*,*) 'enter new value:'
381 108      read(*,*,iostat=ierr) albedice(1)
382          if(ierr.ne.0) goto 108
383          write(*,*)
384          write(*,*) ' albedice(1) (new value):',albedice(1)
385          write(*,*)
386
387          write(*,*) 'current value albedice(2) South:',albedice(2)
388          write(*,*) 'enter new value:'
389 109      read(*,*,iostat=ierr) albedice(2)
390          if(ierr.ne.0) goto 109
391          write(*,*)
392          write(*,*) ' albedice(2) (new value):',albedice(2)
393
394        else if (trim(modif) .eq. 'iceradius') then
395          write(*,*) 'current value iceradius(1) North:',iceradius(1)
396          write(*,*) 'enter new value:'
397 110      read(*,*,iostat=ierr) iceradius(1)
398          if(ierr.ne.0) goto 110
399          write(*,*)
400          write(*,*) ' iceradius(1) (new value):',iceradius(1)
401          write(*,*)
402
403          write(*,*) 'current value iceradius(2) South:',iceradius(2)
404          write(*,*) 'enter new value:'
405 111      read(*,*,iostat=ierr) iceradius(2)
406          if(ierr.ne.0) goto 111
407          write(*,*)
408          write(*,*) ' iceradius(2) (new value):',iceradius(2)
409
410        else if (trim(modif) .eq. 'dtemisice') then
411          write(*,*) 'current value dtemisice(1) North:',dtemisice(1)
412          write(*,*) 'enter new value:'
413 112      read(*,*,iostat=ierr) dtemisice(1)
414          if(ierr.ne.0) goto 112
415          write(*,*)
416          write(*,*) ' dtemisice(1) (new value):',dtemisice(1)
417          write(*,*)
418
419          write(*,*) 'current value dtemisice(2) South:',dtemisice(2)
420          write(*,*) 'enter new value:'
421 113      read(*,*,iostat=ierr) dtemisice(2)
422          if(ierr.ne.0) goto 113
423          write(*,*)
424          write(*,*) ' dtemisice(2) (new value):',dtemisice(2)
425
426        else if (trim(modif) .eq. 'tauvis') then
427          write(*,*) 'current value:',tauvis
428          write(*,*) 'enter new value:'
429 114      read(*,*,iostat=ierr) tauvis
430          if(ierr.ne.0) goto 114
431          write(*,*)
432          write(*,*) ' tauvis (new value):',tauvis
433
434        else if (trim(modif) .eq. 'obliquit') then
435          write(*,*) 'current value:',obliquit
436          write(*,*) 'obliquit should be 25.19 on current Mars'
437          write(*,*) 'enter new value:'
438 115      read(*,*,iostat=ierr) obliquit
439          if(ierr.ne.0) goto 115
440          write(*,*)
441          write(*,*) ' obliquit (new value):',obliquit
442
443        else if (trim(modif) .eq. 'peri_day') then
444          write(*,*) 'current value:',peri_day
445          write(*,*) 'peri_day should be 485 sols on current Mars'
446          write(*,*) 'enter new value:'
447 116      read(*,*,iostat=ierr) peri_day
448          if(ierr.ne.0) goto 116
449          write(*,*)
450          write(*,*) ' peri_day (new value):',peri_day
451         
452        else if (trim(modif) .eq. 'peri_ls') then
453          write(*,*) 'peri_ls value is not stored in start files,'
454          write(*,*) 'but it should be 251 degrees on current Mars'
455          write(*,*) '(peri_day should be 485 sols on current Mars)'
456          write(*,*) 'enter new value:'
457 1160     read(*,*,iostat=ierr) peri_ls
458          if(ierr.ne.0) goto 1160
459          write(*,*)
460          write(*,*) 'peri_ls asked:',peri_ls
461          write(*,*) 'for aphelion =',aphelie
462          write(*,*) 'perihelion =',periheli
463          write(*,*) 'and',year_day,'sols/year'
464          call lsp2solp(peri_ls,peri_day)
465          write(*,*) 'peri_day (new value):',peri_day
466
467
468        else if (trim(modif) .eq. 'periheli') then
469          write(*,*) 'current value:',periheli
470          write(*,*) 'perihelion should be 206.66 on current Mars'
471          write(*,*) 'enter new value:'
472 117      read(*,*,iostat=ierr) periheli
473          if(ierr.ne.0) goto 117
474          write(*,*)
475          write(*,*) ' periheli (new value):',periheli
476 
477        else if (trim(modif) .eq. 'aphelie') then
478          write(*,*) 'current value:',aphelie
479          write(*,*) 'aphelion should be 249.22 on current Mars'
480          write(*,*) 'enter new value:'
481 118      read(*,*,iostat=ierr) aphelie
482          if(ierr.ne.0) goto 118
483          write(*,*)
484          write(*,*) ' aphelie (new value):',aphelie
485 
486        else if (trim(modif) .eq. 'volcapa') then
487          write(*,*) 'current value:',volcapa
488          write(*,*) 'enter new value:'
489 119      read(*,*,iostat=ierr) volcapa
490          if(ierr.ne.0) goto 119
491          write(*,*)
492          write(*,*) ' volcapa (new value):',volcapa
493 
494        endif
495      enddo ! of do ! neverending loop
496
497 999  continue
498
499c-----------------------------------------------------------------------
500c       Write values of physical constants after modifications
501c-----------------------------------------------------------------------
502 
503      write(*,*) '*****************************************************'
504      write(*,*) 'Reading tab_cntrl when calling tabfi AFTER changes'
505      write(*,*) '*****************************************************'
506      write(*,5) '(1)        = ngrid?',tab_cntrl(tab0+1)
507      write(*,5) '(2)            lmax',tab_cntrl(tab0+2),real(lmax)
508      write(*,5) '(3)         day_ini',tab_cntrl(tab0+3),real(day_ini)
509      write(*,5) '(5)             rad',tab_cntrl(tab0+5),rad
510      write(*,5) '(10)         daysec',tab_cntrl(tab0+10),daysec
511      write(*,6) '(6)            omeg',tab_cntrl(tab0+6),omeg
512      write(*,5) '(7)               g',tab_cntrl(tab0+7),g
513      write(*,5) '(8)           mugaz',tab_cntrl(tab0+8),mugaz
514      write(*,5) '(9)             rcp',tab_cntrl(tab0+9),rcp
515      write(*,6) '(11)        dtphys?',tab_cntrl(tab0+11),dtphys
516 
517      write(*,5) '(14)       year_day',tab_cntrl(tab0+14),year_day
518      write(*,5) '(15)       periheli',tab_cntrl(tab0+15),periheli
519      write(*,5) '(16)        aphelie',tab_cntrl(tab0+16),aphelie
520      write(*,5) '(17)       peri_day',tab_cntrl(tab0+17),peri_day
521      write(*,5) '(18)       obliquit',tab_cntrl(tab0+18),obliquit
522 
523      write(*,6) '(19)     z0_default',tab_cntrl(tab0+19),z0_default
524      write(*,6) '(21)      emin_turb',tab_cntrl(tab0+21),emin_turb
525      write(*,5) '(20)        lmixmin',tab_cntrl(tab0+20),lmixmin
526 
527      write(*,5) '(26)        emissiv',tab_cntrl(tab0+26),emissiv
528      write(*,5) '(24)     emisice(1)',tab_cntrl(tab0+24),emisice(1)
529      write(*,5) '(25)     emisice(2)',tab_cntrl(tab0+25),emisice(2)
530      write(*,5) '(22)    albedice(1)',tab_cntrl(tab0+22),albedice(1)
531      write(*,5) '(23)    albedice(2)',tab_cntrl(tab0+23),albedice(2)
532      write(*,6) '(31)   iceradius(1)',tab_cntrl(tab0+31),iceradius(1)
533      write(*,6) '(32)   iceradius(2)',tab_cntrl(tab0+32),iceradius(2)
534      write(*,5) '(33)   dtemisice(1)',tab_cntrl(tab0+33),dtemisice(1)
535      write(*,5) '(34)   dtemisice(2)',tab_cntrl(tab0+34),dtemisice(2)
536 
537      write(*,5) '(27)         tauvis',tab_cntrl(tab0+27),tauvis
538
539      write(*,5) '(35)        volcapa',tab_cntrl(tab0+35),volcapa
540
541      write(*,*) 
542      write(*,*)
543
544      ENDIF ! of if (Lmodif == 1)
545
546c-----------------------------------------------------------------------
547c       Initialization of orbital parameters
548c-----------------------------------------------------------------------
549      call iniorbit()
550
551c-----------------------------------------------------------------------
552c       Case when using a start file from before March 1996 (without iceradius...
553c-----------------------------------------------------------------------
554      if (iceradius(1).eq.0) then
555         iceradius(1) = 100.e-6
556         iceradius(2) = 100.e-6
557         dtemisice(1) = 0.4
558         dtemisice(2) = 0.4
559         write (*,*) ' tabfi: WARNING : old initialisation file'
560         write (*,*) 'iceradius set to',iceradius(1),iceradius(2) 
561         write (*,*) 'dtemisice set to',dtemisice(1),dtemisice(2) 
562       end if
563
564      END SUBROUTINE tabfi
565
566      END MODULE tabfi_mod
Note: See TracBrowser for help on using the repository browser.