This is a static copy of a profile report

Home

getNormal (31 calls, 0.010 sec)
Generated 18-Mar-2011 23:31:44 using cpu time.
M-function in file /Users/Robert/Documents/Work/Cardiff/postdoc/myrepo/NURBS/isoBEM/getNormal.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
findNormalsAtCollocationPointsM-function31
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
11
[N(lclBasis) dN(lclBasis)]=NUR...
930.010 s100.0%
19
end
310 s0%
16
n=1/jacob * [ dxydxi(2) -dxydx...
310 s0%
15
jacob=norm(dxydxi);           ...
310 s0%
14
dxydxi=dN*elcoords;           ...
310 s0%
All other lines  0 s0%
Totals  0.010 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
NURBSbasisMEX-function930 s0%
Self time (built-ins, overhead, etc.)  0.010 s100.0%
Totals  0.010 s100% 
M-Lint results
No M-Lint messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function19
Non-code lines (comments, blank lines)8
Code lines (lines that can run)11
Code lines that did run11
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
   time   calls  line
1 function [ n jacob ] = getNormal( elcoords, xi_param, bsFnConn)
2 % simply calculate the normal at a local coordinate on an element
3
31 4 global knotVec controlPts p
5
31 6 numBasisFns=length(bsFnConn);
31 7 N=zeros(1,numBasisFns); dN=zeros(1,numBasisFns);
8
31 9 for lclBasis=1:numBasisFns
93 10 i=bsFnConn(lclBasis);
0.01 93 11 [N(lclBasis) dN(lclBasis)]=NURBSbasis(i, p, xi_param, knotVec, controlPts(:,3)' );
93 12 end
13
31 14 dxydxi=dN*elcoords; % the geometry derivatives
31 15 jacob=norm(dxydxi); % jacobian
31 16 n=1/jacob * [ dxydxi(2) -dxydxi(1) ];
17
18
31 19 end