Location: OpenCOR issue demonstration - initial_value @ 2403cd8ed1cf / model.xml

Author:
David Nickerson <nickerso@users.sourceforge.net>
Date:
2015-03-06 13:56:43+13:00
Desc:
adding a basic model which demonstrates a potential OpenCOR issue when dealing with initial values which are variables rather than numbers
Permanent Source URI:
https://staging.physiomeproject.org/workspace/238/rawfile/2403cd8ed1cfc16f35d99192388dd20203082d54/model.xml

<?xml version="1.0" encoding="UTF-8"?>
<model xmlns="http://www.cellml.org/cellml/1.1#" xmlns:cellml="http://www.cellml.org/cellml/1.1#" name="test">
	<component name="test">
		<variable name="x" initial_value="1.0" units="dimensionless"/>
		<variable name="y" initial_value="x" units="dimensionless"/>
		<variable name="z" units="dimensionless"/>
		<math xmlns="http://www.w3.org/1998/Math/MathML">
	        <apply>
	           <eq/>
	           <apply>
	              <diff/>
	              <bvar>
	                 <ci>z</ci>
	              </bvar>
	              <ci>y</ci>
	           </apply>
	           <cn cellml:units="dimensionless">0.0</cn>
	        </apply>
		</math>
	</component>
</model>