AgriculturalModelExchangeInitiative / PyCrop2ML

CropML Python library
Other
17 stars 17 forks source link

Math functions in cyml has to repect the type of operands #62

Open pradal opened 5 years ago

pradal commented 5 years ago

Let say:

cdef float h
cdef float plantHeight = 2.8
h = max(10, plantHeight)

The code will fail during the translation in Fortran because it will generate

h = MAX(10, plantHeight)

rather

h = MAX(10.0, plantHeight)