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
function mean_mask(array,mask,n1,n2,n3)!use uEMEP_definitionsimplicit nonereal,intent(in)::array(n1,n2,n3)logical,intent(in)::mask(n1,n2)integer,intent(in)::n1,n2,n3real::mean_maskinteger i,j,treal::count=0real::sum_array=0sum_array=0count=0do t=1,n3do j=1,n2do i=1,n1if(mask(i,j))thensum_array=sum_array+array(i,j,t)count=count+1.endif enddo enddo enddo if(count.gt.0)thenmean_mask=sum_array/countelsemean_mask=0endif end function mean_mask