This is a static copy of a profile reportHome
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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
11 | [N(lclBasis) dN(lclBasis)]=NUR... | 93 | 0.010 s | 100.0% |  |
19 | end | 31 | 0 s | 0% |  |
16 | n=1/jacob * [ dxydxi(2) -dxydx... | 31 | 0 s | 0% |  |
15 | jacob=norm(dxydxi); ... | 31 | 0 s | 0% |  |
14 | dxydxi=dN*elcoords; ... | 31 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.010 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
NURBSbasis | MEX-function | 93 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0.010 s | 100.0% |  |
Totals | | | 0.010 s | 100% | |
M-Lint results
No M-Lint messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 19 |
Non-code lines (comments, blank lines) | 8 |
Code lines (lines that can run) | 11 |
Code lines that did run | 11 |
Code lines that did not run | 0 |
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