Ignore:
Timestamp:
Jan 21, 2019 1:02:11 AM (6 years ago)
Author:
knoop
Message:

Some interface calls moved to module_interface + cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/chemistry_model_mod.f90

    r3664 r3685  
    2727! -----------------
    2828! $Id$
     29! Some interface calls moved to module_interface + cleanup
     30!
     31! 3664 2019-01-09 14:00:37Z forkel
    2932! Replaced misplaced location message by @todo
    3033!
     
    454457    END INTERFACE chem_header
    455458
     459    INTERFACE chem_init_arrays
     460       MODULE PROCEDURE chem_init_arrays
     461    END INTERFACE chem_init_arrays
     462
    456463    INTERFACE chem_init
    457464       MODULE PROCEDURE chem_init
     
    564571         chem_check_data_output_pr, chem_check_parameters,                    &
    565572         chem_data_output_2d, chem_data_output_3d, chem_data_output_mask,     &
    566          chem_define_netcdf_grid, chem_header, chem_init,                     &
     573         chem_define_netcdf_grid, chem_header, chem_init, chem_init_arrays,   &
    567574         chem_init_profiles, chem_integrate, chem_parin,                      &
    568575         chem_prognostic_equations, chem_rrd_local,                           &
     
    11821189!-- temporary switch of this part of the check
    11831190!    RETURN                !bK commented
     1191    CALL chem_init_internal
    11841192!---------------------
    11851193
     
    17171725! Description:
    17181726! ------------
     1727!> Subroutine initializating chemistry_model_mod specific arrays
     1728!------------------------------------------------------------------------------!
     1729 SUBROUTINE chem_init_arrays
     1730
     1731!-- Please use this place to allocate required arrays
     1732
     1733 END SUBROUTINE chem_init_arrays
     1734
     1735!
     1736!------------------------------------------------------------------------------!
     1737!
     1738! Description:
     1739! ------------
    17191740!> Subroutine initializating chemistry_model_mod
    17201741!------------------------------------------------------------------------------!
    17211742 SUBROUTINE chem_init
     1743
     1744    USE chem_emissions_mod,                                                    &
     1745        ONLY:  chem_emissions_init
     1746
     1747    IMPLICIT NONE
     1748
     1749
     1750    IF ( do_emis )  CALL chem_emissions_init
     1751
     1752
     1753 END SUBROUTINE chem_init
     1754
     1755!
     1756!------------------------------------------------------------------------------!
     1757!
     1758! Description:
     1759! ------------
     1760!> Subroutine initializating chemistry_model_mod
     1761!> internal workaround for chem_species dependency in chem_check_parameters
     1762!------------------------------------------------------------------------------!
     1763 SUBROUTINE chem_init_internal
    17221764
    17231765    USE control_parameters,                                                  &
     
    17271769    USE pegrid
    17281770
     1771    USE netcdf_data_input_mod,                                                 &
     1772        ONLY:  chem_emis, chem_emis_att, netcdf_data_input_chemistry_data
     1773
    17291774    IMPLICIT NONE
    17301775
     
    17361781    INTEGER(iwp) ::  lpr_lev           !< running index for chem spcs profile level
    17371782
     1783    IF ( do_emis ) THEN
     1784       CALL netcdf_data_input_chemistry_data( chem_emis_att, chem_emis )
     1785    ENDIF
    17381786!
    17391787!-- Allocate memory for chemical species
     
    18611909    ENDDO
    18621910
     1911!    CALL photolysis_init   ! probably also required for restart
     1912
    18631913    RETURN
    18641914
    1865  END SUBROUTINE chem_init
     1915 END SUBROUTINE chem_init_internal
    18661916
    18671917!
Note: See TracChangeset for help on using the changeset viewer.