Closed aramcharan closed 9 years ago
I created a new branch "rye_harvest". You can download the new branch instead of the master branch for customized rye harvest code.
Thanks! Also I'd like your opinion on how best to go about the following: I have 3 locations that harvest rye at 3 different times of the year. Usually I go into the code and change the days (140 and 127 in the above case) to harvest the crop for each location (a quick fix given I don't have many locations).
How best to do this in the C version of CYCLES?
Added support for forced harvest for specified crops. You can now define forced harvest operations in .operation file (please see Lebanon.operation for sample input format). The rye_harvest branch is deleted as a result.
In the vb code DailyOperationsClass.vb GrowingCrop
Above the line : If Weather.dailyTemperatureMin < Crop.userColdDamageThresholdTemperature Then I have the following code inserted: 'If d = 140 And Crop.cropName = "Rye Bioenergy BS" Then Call CropHarvest.GrainHarvest(y, d, SimControl.simStartYear, Crop, RealizedCrop, Residue, Soil, SoilCarbon) If d = 140 And Crop.cropName = "Rye Bioenergy BS" Then Call CropHarvest.GrainHarvest(y, d, SimControl.simStartYear, Crop, RealizedCrop, Residue, Soil, SoilCarbon) End If
This allows me to harvest Rye on a specific day. Right now the c code does not harvest rye on time therefore throwing off cropping cycle.
This piece of code is specific to my study and may not be needed in the general c version