Closed ajt60gaibb closed 5 years ago
That's because the rectangle you specified is degenerate. I think you meant ultraSEM.rectangle([0 1 0 1])
?
OK. I guess I need help text then. I assumed it worked like rectangle
in MATLAB:
>> help rectangle
rectangle Create rectangle, rounded-rectangle, or ellipse
rectangle adds a default rectangle to the current axes.
rectangle('Position',pos) creates a rectangle in 2-D coordinates.
Specify pos as a four-element vector of the form [x y w h] in data
units. The x and y elements determine the location and the w and h
elements determine the size. The function plots into the current axes
without clearing existing content from the axes.
It follows the chebfun2
convention:
>> help ultraSEM.rectangle
rectangle Construct a rectangular ultraSEMDomain.
ultraSEM.rectangle([A B C D]) returns a rectangluar
ultraSEMDomain with vertices (A,C), (A,D), (B,D), (B,C) with a
single patch.
ultraSEM.rectangle([A B C D], M, N) returns the same rectangle,
but subdivided into an MxN grid of equally sized patches.
Similarly, ultraSEM.rectangle([A B C D], M) assumes N = M.
I've added an error for degenerate rectangles in 70992a7af2b61a014fe9defab440f2b704972c40.
When ultraSEM is given a single leaf domain, I was expecting it to just return the solution. Instead, I get warnings and it doesn't work: