Skip to content

Conversation

@neut
Copy link

@neut neut commented Feb 15, 2017

Infinite loop could happen for some distance functions. This caps the
maximum number of iterations to 1e3 by default, or allows override
using the <iteration_max> parameter

Infinite loop could happen for some distance functions. This caps the
maximum number of iterations to 1e3 by default, or allows override
using the <iteration_max> parameter
#-----------------------------------------------------------------------------

def distmesh2d(fd, fh, h0, bbox, pfix=None, fig='gcf'):
def distmesh2d(fd, fh, h0, bbox, pfix=None, fig='gcf', iteration_max=1e3):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: 1e3 is a float but you really want an int here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants