Skip to content

Commit

Permalink
Make marginal components use pop comoponent
Browse files Browse the repository at this point in the history
Both MarginalDamage and MarginalDamage3 were coded to get the population
variable from SocioEconomic. Now they get population from the Population
component.
  • Loading branch information
davidanthoff committed Apr 23, 2012
1 parent ec56873 commit beb5bcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Fund/MarginalDamage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public double[] DoOneRun(int RunId, WeightingCombination[] i_weightingCombinatio
f1["ImpactSeaLevelRise"].Variables["wetcost"].StoreOutput = true;
f1["ImpactSeaLevelRise"].Variables["leavecost"].StoreOutput = true;
f1["SocioEconomic"].Variables["income"].StoreOutput = true;
f1["SocioEconomic"].Variables["population"].StoreOutput = true;
f1["Population"].Variables["population"].StoreOutput = true;

if (AdditionalInitCode != null)
AdditionalInitCode(f1);
Expand Down Expand Up @@ -195,7 +195,7 @@ public double[] DoOneRun(int RunId, WeightingCombination[] i_weightingCombinatio
f2["ImpactSeaLevelRise"].Variables["wetcost"].StoreOutput = true;
f2["ImpactSeaLevelRise"].Variables["leavecost"].StoreOutput = true;
f2["SocioEconomic"].Variables["income"].StoreOutput = true;
f2["SocioEconomic"].Variables["population"].StoreOutput = true;
f2["Population"].Variables["population"].StoreOutput = true;

if (AdditionalInitCode != null)
AdditionalInitCode(f2);
Expand Down
4 changes: 2 additions & 2 deletions Fund/MarginalDamage3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public double Start()
f1["ImpactSeaLevelRise"].Variables["wetcost"].StoreOutput = true;
f1["ImpactSeaLevelRise"].Variables["leavecost"].StoreOutput = true;
f1["socioeconomic"].Variables["income"].StoreOutput = true;
f1["socioeconomic"].Variables["population"].StoreOutput = true;
f1["Population"].Variables["population"].StoreOutput = true;


if (AdditionalInitMethod != null)
Expand Down Expand Up @@ -74,7 +74,7 @@ public double Start()
f2["ImpactSeaLevelRise"].Variables["wetcost"].StoreOutput = true;
f2["ImpactSeaLevelRise"].Variables["leavecost"].StoreOutput = true;
f2["socioeconomic"].Variables["income"].StoreOutput = true;
f2["socioeconomic"].Variables["population"].StoreOutput = true;
f2["Population"].Variables["population"].StoreOutput = true;

if (AdditionalInitMethod != null)
AdditionalInitMethod(f2);
Expand Down

0 comments on commit beb5bcd

Please sign in to comment.