ahbarnett / mpspack

2D Helmholtz scattering and eigenvalue problems via particular solutions and integral equations
Other
32 stars 5 forks source link

Domain - Introductory example in the tutorial #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
With the intention of getting used to the package, i decided to work myself 
through the tutorial. Unfortunately, i failed right at the start, i.e. at 
defining the domain for the introductory example (laplace's equation) on page 2.

While defining the segment "s" worked quite well (looked like figure 1), i got 
an error message when trying to put d=domain(s, +1):

"??? Attempt to execute SCRIPT utils.inpolyc as a function:
C:\Users\glatz\Documents\MATLAB\mpspack-1.1beta\@utils\inpolyc.m

Error in ==> utils.inpolywrapper at 31
i = logical(utils.inpolyc(p, v));   % converts int to logical

Error in ==> domain.domain>domain.inside at 114
          i = utils.inpolywrapper(p(:), v);

Error in ==> domain.domain>domain.normalscheck at 97
        norout = ~d.inside(p);                 % true if points away from domain

Error in ==> domain.domain>domain.domain at 75
        norout = normalscheck(d);              % normals sense of whole seg list"

Original issue reported on code.google.com by off...@kukiatthedoor.at on 29 Jul 2011 at 2:26

GoogleCodeExporter commented 9 years ago
I forgot to mention that i use matlab 7.11.0 (R2010b)

Original comment by off...@kukiatthedoor.at on 29 Jul 2011 at 2:28

GoogleCodeExporter commented 9 years ago
The error only occurs in the beta version 1.1, version 1.0. is not affected.

Original comment by off...@kukiatthedoor.at on 1 Aug 2011 at 12:59

GoogleCodeExporter commented 9 years ago
Dear kukiatthedoor,
This is fixed by the README which explains how to set up the in-polygon checking
if it did not compile properly when you did make.
Please let me know if this still doesn't work for you.
- Alex

Original comment by alex.h.b...@gmail.com on 21 Dec 2011 at 4:22