Location: OpenCOR issue demonstration - initial_value @ 1511bdc14d59 / opencor-issue-570.xml

Author:
David Nickerson <nickerso@users.sourceforge.net>
Date:
2015-03-09 22:17:54+13:00
Desc:
adding a test model which does not replicate the issue described in OpenCOR issue #570
Permanent Source URI:
https://models.physiomeproject.org/workspace/238/rawfile/1511bdc14d59f16b23bc7b141c4398ecc0e38fd2/opencor-issue-570.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" units="dimensionless" />
		<variable name="c" initial_value="-1.0" units="dimensionless"/>
		<variable name="y" initial_value="c" units="dimensionless" />
		<variable name="z" initial_value="2.0" units="dimensionless" />
		<variable name="condition" initial_value="1.0" units="dimensionless" />
		<variable name="dummy" units="dimensionless" />
		<math xmlns="http://www.w3.org/1998/Math/MathML">
			<apply>
				<eq />
				<apply>
					<diff />
					<bvar>
						<ci>dummy</ci>
					</bvar>
					<ci>y</ci>
				</apply>
				<cn cellml:units="dimensionless">1.0</cn>
			</apply>
			<apply>
				<eq />
				<ci>x</ci>
				<piecewise>
					<piece>
						<ci>y</ci>
						<apply>
							<gt />
							<ci>condition</ci>
							<cn cellml:units="dimensionless">0.5</cn>
						</apply>
					</piece>
					<otherwise>
						<ci>z</ci>
					</otherwise>
				</piecewise>
			</apply>
		</math>
	</component>
</model>