Skip to content

non-integer number warning #73

@danielru

Description

@danielru

Running nosetests throws the following warning, which seems to indicate that M1 and M2 are not necessarily integers. This is odd.

tests.test_collocation.TestCollocation.test_1 ... pySDC/pySDC/Collocation.py:85: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
L = np.zeros([M1, M2])
/usr/not-backed-up/pySDC/pySDC/Collocation.py:87: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
Lp = np.zeros(M2)
/usr/not-backed-up/pySDC/pySDC/Collocation.py:97: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
Lp = M2 * (L[:, M1 - 1] - y * L[:, M2 - 1]) / (1 - y ** 2)
/usr/not-backed-up/pySDC/pySDC/Collocation.py:99: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
y = y0 - L[:, M2 - 1] / Lp
/usr/not-backed-up/pySDC/pySDC/Collocation.py:96: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
L[:, k] = ((2 * k - 1) * y * L[:, k - 1] - (k - 1) * L[:, k - 2]) / k

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions