-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minimal example showing segfault on model flattening over multiple di…
…rectories (with some debugging).
- Loading branch information
Showing
12 changed files
with
203 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<model name="INa" xmlns="http://www.cellml.org/cellml/1.1#" xmlns:cellml="http://www.cellml.org/cellml/1.1#" xmlns:cmeta="http://www.cellml.org/metadata/1.0#" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<import xlink:href="units.xml"> | ||
<units name="uA_per_cmsq" units_ref="uA_per_cmsq"/> | ||
</import> | ||
<component name="INa"> | ||
<variable name="INa" private_interface="out" public_interface="out" units="uA_per_cmsq"/> | ||
</component> | ||
</model> |
23 changes: 23 additions & 0 deletions
23
tests/resources/importer/periodicstimulus/components/stimulated.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<model name="stimulated" xmlns="http://www.cellml.org/cellml/1.1#" xmlns:cellml="http://www.cellml.org/cellml/1.1#" xmlns:cmeta="http://www.cellml.org/metadata/1.0#" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<import xlink:href="units.xml"> | ||
<units name="uA_per_cmsq" units_ref="uA_per_cmsq"/> | ||
</import> | ||
<import xlink:href="INa.xml"> | ||
<component component_ref="INa" name="INa"/> | ||
</import> | ||
<component name="action_potential"> | ||
<!-- <variable name="Istim" private_interface="out" public_interface="in" units="uA_per_cmsq"/>--> | ||
<variable name="INa" private_interface="in" public_interface="out" units="uA_per_cmsq"/> | ||
</component> | ||
<group> | ||
<relationship_ref relationship="encapsulation"/> | ||
<component_ref component="action_potential"> | ||
<component_ref component="INa"/> | ||
</component_ref> | ||
</group> | ||
<connection> | ||
<map_components component_1="action_potential" component_2="INa"/> | ||
<map_variables variable_1="INa" variable_2="INa"/> | ||
</connection> | ||
</model> |
13 changes: 13 additions & 0 deletions
13
tests/resources/importer/periodicstimulus/components/units.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<model name="units" xmlns="http://www.cellml.org/cellml/1.1#" xmlns:cellml="http://www.cellml.org/cellml/1.1#"> | ||
<units name="cm"> | ||
<unit prefix="centi" units="metre"/> | ||
</units> | ||
<units name="uA"> | ||
<unit prefix="micro" units="ampere"/> | ||
</units> | ||
<units name="uA_per_cmsq"> | ||
<unit units="uA"/> | ||
<unit exponent="-2" units="cm"/> | ||
</units> | ||
</model> |
9 changes: 9 additions & 0 deletions
9
tests/resources/importer/periodicstimulus/experiments/periodic-stimulus.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<model name="periodic_stimulus" xmlns="http://www.cellml.org/cellml/1.1#" xmlns:cellml="http://www.cellml.org/cellml/1.1#" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<import xlink:href="../components/units.xml"> | ||
<units name="uA_per_cmsq" units_ref="uA_per_cmsq"/> | ||
</import> | ||
<import xlink:href="../components/stimulated.xml"> | ||
<component component_ref="action_potential" name="_model"/> | ||
</import> | ||
</model> |
Oops, something went wrong.