change dt_variable to a logical variable in fortran codes to match data.py