float CUEMin = getCUEMin(); float daysOfGrowth = getDaysOfGrowth(); float timeTillCropMaturity = getTimeAtCropMaturity(); float calculatedCUE24 = CUEMax - ((CUEMax - CUEMin) * ((daysOfGrowth - timeTillCanopySenescence)) / (timeTillCropMaturity - timeTillCanopySenescence)); myLogger.debug("Legume: CUEMin: " + CUEMin); myLogger.debug("Legume: daysOfGrowth: " + daysOfGrowth); myLogger.debug("Legume: timeTillCropMaturity: " + timeTillCropMaturity); myLogger.debug("Legume: calculatedCUE24: " + calculatedCUE24); if (calculatedCUE24 < 0f) return 0f; return calculatedCUE24;
    protected float getCarbonUseEfficiency24() {        float CUEMax = getCUEMax();        float timeTillCanopySenescence = getTimeAtCanopySenescence();        myLogger.debug("Legume: CUEMax: " + CUEMax);        myLogger.debug("Legume: timeTillCanopySenescence: "                + timeTillCanopySenescence);        if (getDaysOfGrowth() < getTimeAtCanopySenescence()) {            return CUEMax;        } else {            float CUEMin = getCUEMin();            float daysOfGrowth = getDaysOfGrowth();            float timeTillCropMaturity = getTimeAtCropMaturity();            float calculatedCUE24 = CUEMax                    - ((CUEMax - CUEMin)                            * ((daysOfGrowth - timeTillCanopySenescence)) / (timeTillCropMaturity - timeTillCanopySenescence));            myLogger.debug("Legume: CUEMin: " + CUEMin);            myLogger.debug("Legume: daysOfGrowth: " + daysOfGrowth);            myLogger.debug("Legume: timeTillCropMaturity: "                    + timeTillCropMaturity);            myLogger.debug("Legume: calculatedCUE24: " + calculatedCUE24);            if (calculatedCUE24 < 0f)                return 0f;            else                return calculatedCUE24;        }    }