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

Allow to choose which model to check in multi-model file #3

Open
CSchoel opened this issue Oct 22, 2019 · 0 comments
Open

Allow to choose which model to check in multi-model file #3

CSchoel opened this issue Oct 22, 2019 · 0 comments

Comments

@CSchoel
Copy link
Member

CSchoel commented Oct 22, 2019

Modelica allows to define a package as a single file, e.g.

package MyPackage
  model MyFirstModel
    Real x(start=0, fixed=true);
  equation
    der(x) = 1;
  end MyFirstModel;
  model MySecondModel
    Real x(start=0, fixed=true);
  equation
    der(x) = 2;
  end MySecondModel;
end MyPackage;

In such a file the "Check Model" feature returns the error message

Error: Cannot instantiate HHmodelica.Modular due to class specialization PACKAGE.

It would be nice to be able to select from a dropdown menu to check either MyFirstModel or MySecondModel and not just the whole package.

@CSchoel CSchoel changed the title Allow to choose which model to check in Multi-Model file Allow to choose which model to check in multi-model file Oct 22, 2019
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

No branches or pull requests

1 participant