You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Long Vensim equations extending over multiple lines may be turned into a bad comment. For instance,
This Year Change in Process Emissions by Policy and Industry[water and waste 36T39,indst methane destruction\
,Pollutant]=
Industry Process Emissions Policy to Pollutant Mappings[indst methane destruction,Pollutant\
]
*
(
-SUM(Process Emissions Abated due to Carbon Tax by Marginal Cost[waste management methane destruction\
,Marginal Abatement Cost
!])
- (
SUM(PERAC Mass CO2e Avoidable by Marginal Cost[waste management methane destruction\
,Marginal Abatement Cost!])
- SUM(Process Emissions Abated due to Carbon Tax by Marginal Cost[waste management methane destruction\
,Marginal Abatement Cost
!])
)
* Fraction of Methane Destruction Opportunities Achieved This Year[water and waste 36T39\
]
) ~~|
becomes:
// This Year Change in Process Emissions by Policy and Industry[water and waste 36T39,indst methane destruction,Pollutant] = Industry Process Emissions Policy to Pollutant Mappings[indst methane destruction,Pollutant]*(-SUM(Process Emissions Abated due to Carbon Tax by Marginal Cost[waste management methane destruction,Marginal Abatement Cost!])-(SUM(PERAC Mass CO2e Avoidable by Marginal Cost[waste management methane destruction,Marginal Abatement Cost!])-SUM(Process Emissions Abated due to Carbon Tax by Marginal Cost[waste management methane destruction,Marginal Abatement Cost
!]))*Fraction of Methane Destruction Opportunities Achieved This Year[water and waste 36T39])
Note the join fails to include the last line of text.
The text was updated successfully, but these errors were encountered:
Vensim may split a very long equation over multiple lines. EquationGen joins them into one long line when emitting the comment with the original equation. However, this was done with a string replace that only handled the first newline. Use a global replace to join multiple lines.
Long Vensim equations extending over multiple lines may be turned into a bad comment. For instance,
becomes:
Note the join fails to include the last line of text.
The text was updated successfully, but these errors were encountered: