Skip to content

Illegal call to zeros with negative argument #49

Description

@maltelenz

The call to zeros(n_q - 1) here:

(zr_q, zx_q) := z_matrix(n_q, x_q, xsig_s, r_s, zeros(n_q-1), xsig_rq, r_rq);

seems to come down to zeros(-1), if we resolve n_q:
final parameter Integer n_q=size(xsig_rq,1);

parameter SIpu.Reactance[:] xsig_rq=fill(0,0)

giving the expression zeros(size(fill(0, 0), 1) - 1) ==> zeros(-1), which is illegal (all arguments to zeros need to be >=0), or am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions