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
Copy file name to clipboardExpand all lines: examples/fortran/pineappl.f90
+34-34Lines changed: 34 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -26,71 +26,71 @@ module pineappl
26
26
! As a workaround for typing Fortran enums, we define the name of the enum as the last enum value. This way, variables can be declared as, e.g. for pineappl_conv_type, integer(kind(pineappl_conv_type)). The compiler doesn't check that a value is from the right enum, but it clarifies the code for the user.
! The Kinematics struct is a tuple-like struct in the PineAPPL Rust code, which is realized as a C union. Fortran does not support unions, but fortunately the union is only for storing ints, so we just use an integer variable for `index`
92
92
type, bind(c) :: pineappl_kinematics
93
-
integer(kind(pineappl_kinematics_tag)) :: tag
93
+
integer(c_int) :: tag
94
94
integer(c_size_t) :: index
95
95
end type
96
96
@@ -101,12 +101,12 @@ module pineappl
101
101
end type
102
102
103
103
type, bind(c) :: pineappl_scale_func_form
104
-
integer(kind(pineappl_scale_func_form_tag)) :: tag
0 commit comments