You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could check in slycot.math.mc01td for out[1] being non-zero, and make the output 0 or 1 (though I don't know if .FALSE. always maps to 0). Or we could change the Fortran function to output an integer 0 or 1, instead of logical type.
"armflang" has .TRUE. set to -1, according to docs from mid-2018 [1]. I couldn't find anything else about flang conventions, neither via Google, nor flang --help.
Are we using flang in any of the Travis CI builds?
Activity
bnavigator commentedon Apr 13, 2020
Can you switch to
pytestinstead of oldunittest?bnavigator commentedon Apr 13, 2020
Slycot/slycot/src/MC01TD.f
Lines 53 to 55 in ac53a0a
Slycot/slycot/src/math.pyf
Line 8 in ac53a0a
Slycot/slycot/math.py
Lines 50 to 51 in ac53a0a
Slycot/slycot/math.py
Line 58 in ac53a0a
Slycot/slycot/tests/test_mc.py
Lines 14 to 32 in ac53a0a
There is something wrong with the documented but nowhere defined mapping of
logicaltoint. Does the Windows compiler map logical differently?bnavigator commentedon Apr 13, 2020
Some difference between (old) Intel compilers and gfortran: https://stackoverflow.com/questions/37293641/implicit-conversion-integer-logical-in-fortran-if-statement
roryyorke commentedon Apr 13, 2020
If I comment out that assertion, the test passes.
We could check in
slycot.math.mc01tdfor out[1] being non-zero, and make the output 0 or 1 (though I don't know if.FALSE.always maps to 0). Or we could change the Fortran function to output an integer 0 or 1, instead of logical type."armflang" has
.TRUE.set to -1, according to docs from mid-2018 [1]. I couldn't find anything else about flang conventions, neither via Google, norflang --help.Are we using
flangin any of the Travis CI builds?[1] https://armkeil.blob.core.windows.net/developer/Files/downloads/hpc/Arm-Fortran-Compiler-Reference-guide/Arm_Fortran_Compiler_Reference_101380_1840_00_en.pdf
bnavigator commentedon Apr 13, 2020
I am already working on a PR. Stand by.