changeset 12343:2391d8c8b12f octave-forge

fixed bug in bim3a_reaction - use of columns instad of improper length
author dvd7587
date Mon, 27 Jan 2014 14:43:45 +0000
parents c9ac8c5da043
children eeec46f595d7
files extra/bim/inst/bim3a_reaction.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/extra/bim/inst/bim3a_reaction.m	Sat Jan 25 18:36:18 2014 +0000
+++ b/extra/bim/inst/bim3a_reaction.m	Mon Jan 27 14:43:45 2014 +0000
@@ -46,8 +46,8 @@
     error("bim3a_reaction: first input is not a valid mesh structure.");
   endif
 
-  nnodes    = length(mesh.p);
-  nelem     = length(mesh.t);
+  nnodes    = columns (mesh.p);
+  nelem     = columns (mesh.t);
 
   ## Turn scalar input to a vector of appropriate size
   if isscalar(delta)
@@ -99,4 +99,4 @@
 %!test
 % [C1] = bim2a_reaction(mesh,3*delta,zeta);
 % [C2] = bim2a_reaction(mesh,3,1);
-% assert(C1,C2);
\ No newline at end of file
+% assert(C1,C2);