This is a static copy of a profile report

Home

maskuv (1 call, 0.006 sec)
Generated 04-Aug-2014 13:05:15 using cpu time.
function in file /gdata/projects/atl/FV_Matlab_Framework_JingPJH/trunk/Src/Util/maskuv.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
NodePadfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
19
Masku = max(Mask(:,1:end-1), M...
10.006 s100.0%
20
Maskv = max(Mask(1:end-1,:), M...
10 s0%
All other lines  0 s0%
Totals  0.006 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function20
Non-code lines (comments, blank lines)18
Code lines (lines that can run)2
Code lines that did run2
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
time 
calls 
 line
   1 
function [Masku, Maskv] = maskuv(Mask)
   2 
% [Masku Maskv] = maskuv(Mask)
   3 
% This function creates the u and v masks for a staggered grid
   4 
%
   5 
% INPUTS:
   6 
%       Mask:   The tracer mask matrix (also the Pressure mask matrix)
   7 
%               Different boundary conditions are marked with positive
   8 
%               integers, and interior points have to be zero. 
   9 
%               e.g. Mask = zeros(5,5);Mask(3,3)=1;Mask(2,4)=2;
  10 
%               Created 2 different boundaries.
  11 
%       NOTE: Masks will require some fixing if two different boundaries
  12 
%       are specified next to each other.
  13 
% OUTPUTS:
  14 
%       Masku:  Mask matrix for the u velocity
  15 
%       Maskv:  Mask matrix for the v velocity
  16 
%
  17 
% Written by:   Matt Ueckermann for MIT course 2.29
  18 

< 0.01 
      1 
  19 
Masku = max(Mask(:,1:end-1), Mask(:,2:end)); 
      1 
  20 
Maskv = max(Mask(1:end-1,:), Mask(2:end,:));