Ignore:
Timestamp:
Dec 10, 2023, 10:37:06 PM (6 months ago)
Author:
lguez
Message:

Bug fix: move assignments to strataer_emiss_init

Bug fix: move assignments from procedure strataer_init to procedure
strataer_emiss_init. The variables to which we make assignments are
allocated in strataer_emiss_init and strataer_emiss_init is called
by physiq after strataer_init.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/StratAer/strataer_emiss_mod.F90

    r4763 r4764  
    2828       IF (nErupt.GT.0) THEN
    2929          ALLOCATE(year_emit_vol(nErupt),mth_emit_vol(nErupt),day_emit_vol(nErupt))
     30          year_emit_vol=0 ; mth_emit_vol=0 ; day_emit_vol=0
    3031          ALLOCATE(altemiss_vol(nErupt),sigma_alt_vol(nErupt))
    3132          ALLOCATE(xlat_min_vol(nErupt),xlon_min_vol(nErupt))
    3233          ALLOCATE(xlat_max_vol(nErupt),xlon_max_vol(nErupt))
     34          altemiss_vol=0. ; sigma_alt_vol=0.
     35          xlon_min_vol=0. ; xlon_max_vol=0.
     36          xlat_min_vol=0. ; xlat_max_vol=0.
    3337          IF (flag_emit==1) THEN
    3438             ALLOCATE(m_sulf_emiss_vol(nErupt))
    3539             ALLOCATE(m_aer_emiss_vol(nErupt,nAerErupt))
     40             m_aer_emiss_vol=0. ; m_sulf_emiss_vol=0.
    3641             IF (ok_qemiss) then
    3742                ALLOCATE(m_H2O_emiss_vol(nErupt))
     
    5257             ALLOCATE(id_HBr)
    5358             ALLOCATE(id_species(nSpeciesErupt))
     59             id_species = 3
    5460             ALLOCATE(m_species_emiss_vol(nErupt,nSpeciesErupt))
     61             m_species_emiss_vol=0.
    5562             ALLOCATE(m_NOx_emiss_vol(nErupt))
    5663             ALLOCATE(m_H2O_emiss_vol(nErupt))
     64             m_Chlore_emiss_vol=0. ; m_Brome_emiss_vol=0.
     65             m_NOx_emiss_vol=0. ; m_H2O_emiss_vol=0.
    5766             ALLOCATE(id_NOx)
    5867             ALLOCATE(id_H2O)
Note: See TracChangeset for help on using the changeset viewer.