Weird behavior calling FORTRAN function

Double check that you are using the correct types for nx and Units_Option: if you’re using gfortran and the default KINDs for INTEGER and LOGICAL, then I think these should both be Int32: KIND Type Parameters (The GNU Fortran Compiler)

1 Like