stats_compute_xyavg_temp Subroutine

private subroutine stats_compute_xyavg_temp()

Arguments

None

Calls

proc~~stats_compute_xyavg_temp~~CallsGraph proc~stats_compute_xyavg_temp stats_compute_xyavg_temp interface~spatial_avg spatial_avg proc~stats_compute_xyavg_temp->interface~spatial_avg proc~spatial_avg_xy spatial_avg_xy interface~spatial_avg->proc~spatial_avg_xy proc~spatial_avg_y spatial_avg_y interface~spatial_avg->proc~spatial_avg_y mpi_allreduce mpi_allreduce proc~spatial_avg_xy->mpi_allreduce proc~spatial_avg_y->mpi_allreduce

Called by

proc~~stats_compute_xyavg_temp~~CalledByGraph proc~stats_compute_xyavg_temp stats_compute_xyavg_temp proc~stats_main stats_main proc~stats_main->proc~stats_compute_xyavg_temp program~udales uDALES program~udales->proc~stats_main

Source Code

    subroutine stats_compute_xyavg_temp
      implicit none
      call spatial_avg(thlxy,thlm(ib:ie,jb:je,kb:ke+kh),kb,ke,IIc(ib:ie,jb:je,kb:ke+kh),IIcs(kb:ke+kh),.false.)
      call spatial_avg(tempxy,tempnow,kb,ke,IIc(ib:ie,jb:je,kb:ke+kh),IIcs(kb:ke+kh),.false.)
      call spatial_avg(wthlxyk,wm(ib:ie,jb:je,kb:ke+kh)*thlk(ib:ie,jb:je,kb:ke+kh),kb,ke,IIw(ib:ie,jb:je,kb:ke+kh),IIws(kb:ke+kh),.true.)
      call spatial_avg(thlxyk,thlk(ib:ie,jb:je,kb:ke+kh),kb,ke,IIw(ib:ie,jb:je,kb:ke+kh),IIws(kb:ke+kh),.true.)
      wpthlpxyk = wthlxyk - wxy*thlxyk
      where (IIws(kb:ke+kh)==0) wpthlpxyk = -999.
      call spatial_avg(thlsgsxy,thlsgs(ib:ie,jb:je,kb:ke+kh),kb,ke,IIw(ib:ie,jb:je,kb:ke+kh),IIws(kb:ke+kh),.true.)
    end subroutine stats_compute_xyavg_temp