Skip to content
Snippets Groups Projects
Commit 6099fdbb authored by Peter Alexander's avatar Peter Alexander
Browse files

Merge

parents 00adc4f1 b904db23
No related branches found
No related tags found
No related merge requests found
......@@ -253,7 +253,7 @@ public class CountryAgent {
private Map<CropType, Double> getMinCerealFraction(Timestep timestep) {
Map<CropType, Double> minCerealFraction = new HashMap<CropType, Double>();
int yearsOfChange = (timestep.getTimestep() - ModelConfig.TECHNOLOGY_CHANGE_START_STEP) * ModelConfig.TIMESTEP_SIZE;
int yearsOfChange = ModelConfig.IS_CALIBRATION_RUN ? 0 : (timestep.getTimestep() - ModelConfig.TECHNOLOGY_CHANGE_START_STEP) * ModelConfig.TIMESTEP_SIZE;
for (Map.Entry<CropType, Double> entry : demandManager.getBaseCerealFraction(country).entrySet()) {
minCerealFraction.put(entry.getKey(), entry.getValue() * Math.max(ModelConfig.TOTAL_MAX_CEREAL_CHANGE, (1- ModelConfig.ANNUAL_MAX_CEREAL_CHANGE * yearsOfChange)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment