Nodes of different colours represent the following:
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Source Code
subroutine uEMEP_set_species_loopuse uEMEP_definitionsimplicit noneinteger s_loop!Set the pollutant index loops after reading in pollutant_index!Remove the sand and salt PM2.5, not necessary. Fixed ratio if needed n_pollutant_loop=6if(save_emep_species)thenn_species_loop_index=n_sp_indexdo s_loop=1,n_species_loop_indexspecies_loop_index(s_loop)=s_loopenddo elseif(save_seasalt)thenn_species_loop_index=1species_loop_index(1)=sp_seasalt_indexelse!No species will be read or chosen. Set to 0 to make sure it fails if they aren_species_loop_index=1species_loop_index(1)=0endif!Override the save_emep_species to include the OP speciesif(save_emep_OP_species)thenn_species_loop_index=n_sp_OP_indexdo s_loop=1,n_species_loop_indexspecies_loop_index(s_loop)=s_loopenddo endif write(unit_logfile,'(a,i)')'Number of species=',n_species_loop_index!write(*,*) '####0: ',n_species_loop_indexend subroutine uEMEP_set_species_loop