gparker/emergy — pull request #1 by pigne (2012-12-15 14:40:23+00:00)
Title: New structure to properly hold [source => input => (output=value)]. Needed to compute multi-sources projects.

Hi Gordon,

In the calculateEmergyWithSources procedure, the inputOutputFlows structure did not allow to store each input/output pair for each source. Already computed inputs (in previous sources) where overwriten by new ones.

1 )I added a new data structure [source => input => (output=value)], similar to the ones you used, to allow identical inputs to appear in various sources.

2 )Added a totalInputFlow and totalOutputFlow attributes to the EmProfile struct. These two attributes count the total emergy in the inputs of the system and the total emergy found in the output.

3) Added another attribute to count nodes that ever get visited. Requested by Benedeto from CRP.

4) Last update is simple include for the project to build on windows.

Best,
Yoann