Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Domain type mingling #396

Closed
gchabert opened this issue Jul 23, 2019 · 1 comment
Closed

Domain type mingling #396

gchabert opened this issue Jul 23, 2019 · 1 comment
Assignees
Labels

Comments

@gchabert
Copy link
Contributor

gchabert commented Jul 23, 2019

When initializing a domain, the actual dimension of the argument should be taken into account and not only the object type as the domain resulting type is calculated from the dimension. For example, the following program is correct and crashes. A clear spec for Domain is just missing maybe.

   IntervalVector x(1,Interval::PI);
   Domain d(x,false);
   cout << d.dim.is_scalar() << endl;    // displays "true"
   cout << d.i() << endl;  // d.v() actually incorrect... (as specified ?)
@gchabert gchabert self-assigned this Jul 23, 2019
gchabert pushed a commit that referenced this issue Jul 31, 2019
@gchabert
Copy link
Contributor Author

Just added some asserts in the code + fix in ExprConstant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant