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
statl is declared to be of type logical. I believe the problem arises with how the Julian library handles boolean types, and differences in how gfortran and ifort internally represent boolean values. In the Julian library, macros are used to redefine True and False using the values -1 and 0 respectively. This matches the way ifort internally represents boolean values. It doesn't match the way gfortran internally represents boolean values, and I believe that is the source of the problem.
The problem "goes away" when the model is built using gfortran and the -O2 or -O3 flags. I am not sure why this is.
To fix the problem, users can either manually change the values of FTRUE and FFALSE in the Julian library file cfortran.h to 1 and 0 respectively, or a condition that tests when when the model is being built with gfortran could be added, and different flags set when this is the case. A condition already exists for Apple computers.
The text was updated successfully, but these errors were encountered:
The error occurs in the function READ_DATETIME in mod_time.F. It stems from the following call to the Julian library:
uk-fvcom/FVCOM_source/mod_time.F
Line 648 in 5548840
statl
is declared to be of type logical. I believe the problem arises with how the Julian library handles boolean types, and differences in how gfortran and ifort internally represent boolean values. In the Julian library, macros are used to redefine True and False using the values -1 and 0 respectively. This matches the way ifort internally represents boolean values. It doesn't match the way gfortran internally represents boolean values, and I believe that is the source of the problem.The problem "goes away" when the model is built using gfortran and the -O2 or -O3 flags. I am not sure why this is.
To fix the problem, users can either manually change the values of FTRUE and FFALSE in the Julian library file cfortran.h to 1 and 0 respectively, or a condition that tests when when the model is being built with gfortran could be added, and different flags set when this is the case. A condition already exists for Apple computers.
The text was updated successfully, but these errors were encountered: