Skip to content

Commit

Permalink
fixed headers for fortran an c
Browse files Browse the repository at this point in the history
  • Loading branch information
AdhocMan committed Jan 7, 2021
1 parent 0e5bf68 commit a1959bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/spfft/spfft.f90
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ integer(c_int) function spfft_transform_backward_ptr(transform, input, &
use iso_c_binding
type(c_ptr), value :: transform
complex(c_double), dimension(*), intent(in) :: input
c_double, dimension(*), intent(out) :: output
real(c_double), dimension(*), intent(out) :: output
end function

integer(c_int) function spfft_transform_forward(transform, inputLocation, &
Expand All @@ -367,7 +367,7 @@ integer(c_int) function spfft_transform_forward_ptr(transform, input, &
output, scaling) bind(C)
use iso_c_binding
type(c_ptr), value :: transform
c_double, dimension(*), intent(in) :: input
real(c_double), dimension(*), intent(in) :: input
complex(c_double), dimension(*), intent(out) :: output
integer(c_int), value :: scaling
end function
Expand Down Expand Up @@ -570,7 +570,7 @@ integer(c_int) function spfft_float_transform_backward_ptr(transform, input, &
use iso_c_binding
type(c_ptr), value :: transform
complex(c_float), dimension(*), intent(in) :: input
c_float, dimension(*), intent(out) :: output
real(c_float), dimension(*), intent(out) :: output
end function

integer(c_int) function spfft_float_transform_forward(transform, inputLocation, &
Expand All @@ -586,7 +586,7 @@ integer(c_int) function spfft_float_transform_forward_ptr(transform, input, &
output, scaling) bind(C)
use iso_c_binding
type(c_ptr), value :: transform
c_float, dimension(*), intent(in) :: input
real(c_float), dimension(*), intent(in) :: input
complex(c_float), dimension(*), intent(out) :: output
integer(c_int), value :: scaling
end function
Expand Down Expand Up @@ -719,7 +719,7 @@ integer(c_int) function spfft_float_multi_transform_backward_ptr(numTransforms,
integer(c_int), value :: numTransforms
type(c_ptr), value :: transforms
type(c_ptr), value :: inputPointers
type(c_ptr), value :: outputLocations
type(c_ptr), value :: outputPointers
end function

end interface
Expand Down
1 change: 1 addition & 0 deletions include/spfft/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ typedef enum SpfftProcessingUnitType SpfftProcessingUnitType;
typedef enum SpfftTransformType SpfftTransformType;
typedef enum SpfftIndexFormatType SpfftIndexFormatType;
typedef enum SpfftScalingType SpfftScalingType;
typedef enum SpfftExecType SpfftExecType;
/*! \endcond */
#endif // cpp
#endif

0 comments on commit a1959bd

Please sign in to comment.