when I run the example\fem\Maxwell\Maxwell3ND0femrate.m, the fellowing error will appear
Output argument "isBdNode" (and possibly others) not assigned a value in
the execution with "gradmatrix" function.
Error in mgMaxwell (line 79)
[grad,isBdNode] = gradmatrix(edge,isBdEdge);
Error in Maxwell (line 393)
[u,info] = mgMaxwell(bigAD,f,AP,node,elemold,edge,HB,option);
Error in femMaxwell3 (line 60)
[u,edge,eqn,info] = Maxwell(node,elem,bdFlag,pde,option);
Error in Maxwell3ND0femrate (line 39)
femMaxwell3(mesh,pde,option);
this error will be resolved when I make the following changes to the file solver/gradmatrix.m
@@ -28,5 +28,6 @@ if any(isBdEdge) % no grad on boundary edges
idx = ~(isBdEdge(i) | isBdNode(j));
else
idx = 1:length(i);
isBdNode = false(N,1);
end
grad = sparse(i(idx),j(idx),s(idx),NE,N);
is the modification reasonable? thank you.