Changeset 4765


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

Bug fix: only call getin_p if nErupt > 0

The variables for which we call getin_p here should be allocated and
they are allocated only if nErupt > 0.

File:
1 edited

Legend:

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

    r4764 r4765  
    3535          xlon_min_vol=0. ; xlon_max_vol=0.
    3636          xlat_min_vol=0. ; xlat_max_vol=0.
     37          ! injection params (dates, loc, injections params)
     38          CALL getin_p('year_emit_vol',year_emit_vol)
     39          CALL getin_p('mth_emit_vol',mth_emit_vol)
     40          CALL getin_p('day_emit_vol',day_emit_vol)
     41          CALL getin_p('altemiss_vol',altemiss_vol)
     42          CALL getin_p('sigma_alt_vol',sigma_alt_vol)
     43          CALL getin_p('xlon_min_vol',xlon_min_vol)
     44          CALL getin_p('xlon_max_vol',xlon_max_vol)
     45          CALL getin_p('xlat_min_vol',xlat_min_vol)
     46          CALL getin_p('xlat_max_vol',xlat_max_vol)
    3747          IF (flag_emit==1) THEN
    3848             ALLOCATE(m_sulf_emiss_vol(nErupt))
     
    7585       ENDIF ! fin if nerupt
    7686
    77        ! injection params (dates, loc, injections params)
    78        CALL getin_p('year_emit_vol',year_emit_vol)
    79        CALL getin_p('mth_emit_vol',mth_emit_vol)
    80        CALL getin_p('day_emit_vol',day_emit_vol)
    81        CALL getin_p('altemiss_vol',altemiss_vol)
    82        CALL getin_p('sigma_alt_vol',sigma_alt_vol)
    83        CALL getin_p('xlon_min_vol',xlon_min_vol)
    84        CALL getin_p('xlon_max_vol',xlon_max_vol)
    85        CALL getin_p('xlat_min_vol',xlat_min_vol)
    86        CALL getin_p('xlat_max_vol',xlat_max_vol)
    8787       IF (flag_emit==1) THEN
    8888          CALL getin_p('m_sulf_emiss_vol',m_sulf_emiss_vol)
Note: See TracChangeset for help on using the changeset viewer.