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

on analogfunction args #68

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions admsXml/adms.implicit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Copyright (C) 2002-2012 Laurent Lemaitre <[email protected]>
Copyright (C) 2015-2016 Guilherme Brondani Torri <[email protected]>
2012 Ryan Fox <[email protected]>
2017 Felix Salfelder <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -142,6 +143,20 @@
</admst:choose>
</admst:when>
<admst:when test="[datatypename='function']">
<admst:if test="[definition/datatypename='analogfunction']">
<admst:variable name="function" select="%(.)"/>
<admst:for-each select="definition/variable[(output='yes') and name!=$function/name]">
<admst:variable name="p" select="%(position(.))"/>

<admst:fatal test="[$function/arguments[position(.)=$p]/datatypename!='variable']"
format="%($function/name) output arg $p, %(.) must be variable\n"/>

<admst:for-each select="$function/arguments">
<admst:push into="$function/arguments[position(.)=$p]/probe"
select="probe" onduplicate="ignore"/>
</admst:for-each>
</admst:for-each>
</admst:if>
<admst:choose>
<admst:when test="[name='ddx' or name='\$ddx' or name='\$derivate']">
<admst:value-to select="$globalassignment/lhs/derivate" string="yes"/>
Expand Down