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

Invalid connection not picked up? #246

Open
MichaelClerx opened this issue Feb 26, 2020 · 1 comment
Open

Invalid connection not picked up? #246

MichaelClerx opened this issue Feb 26, 2020 · 1 comment
Labels

Comments

@MichaelClerx
Copy link
Contributor

<?xml version="1.0" encoding="UTF-8"?>
<!-- CellML Test Suite. https://github.com/MichaelClerx/cellml-validation -->
<!-- CellML 1.0, 3.4.6.4: Parent-child relationships are defined by
                          the parent's private interface, and
                          the child's public interface. -->
<model name="map_variables_hidden_cousins_3"
       xmlns="http://www.cellml.org/cellml/1.0#">
  <component name="A" /> <!-- Parent of AA -->
  <component name="AA"> <!-- Child -->
    <variable name="a" units="newton" public_interface="out" initial_value="1" />
  </component>
  <component name="B" /> <!-- Parent of BB -->
  <component name="BB"> <!-- Hidden from AA -->
    <variable name="a" units="newton" private_interface="in" />
  </component>
  <group>
    <relationship_ref relationship="encapsulation" />
    <component_ref component="A">
      <component_ref component="AA" />
    </component_ref>
  </group>
  <group>
    <relationship_ref relationship="encapsulation" />
    <component_ref component="B">
      <component_ref component="BB" />
    </component_ref>
  </group>
  <connection>
    <map_components component_1="AA" component_2="BB" />
    <map_variables variable_1="a" variable_2="a" />
  </connection>
</model>

Cellmlmanip reads this file without complaining

@jonc125
Copy link
Contributor

jonc125 commented Feb 26, 2020

And links the variables?

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

2 participants