Skip to content

Commit

Permalink
Correct spelling error primative -> primitive.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhardman committed Jan 2, 2025
1 parent b42c849 commit 538870d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion moment_kinetics/src/chebyshev.jl
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ A function that takes the indefinite integral in each element of `coord.grid`,
leaving the result (element-wise) in `coord.scratch_2d`.
"""
function elementwise_indefinite_integration!(coord, ff, chebyshev::chebyshev_info)
# the primative of f
# the primitive of f
pf = coord.scratch_2d
# define local variable nelement for convenience
nelement = coord.nelement_local
Expand Down
14 changes: 7 additions & 7 deletions moment_kinetics/src/finite_differences.jl
Original file line number Diff line number Diff line change
Expand Up @@ -544,18 +544,18 @@ end
"""
elementwise_indefinite_integration!(coord, f, not_spectral::finite_difference_info)
Calculate the primative of f using second-order accurate trapezium rule; result stored
Calculate the primitive of f using second-order accurate trapezium rule; result stored
in coord.scratch_2d.
"""
function elementwise_indefinite_integration!(coord, f, not_spectral::finite_difference_info)
return primative_finite_difference!(coord, f, coord.finite_difference_option)
return primitive_finite_difference!(coord, f, coord.finite_difference_option)
end

"""
"""
function primative_finite_difference!(coord, f, finite_difference_option)
function primitive_finite_difference!(coord, f, finite_difference_option)
# space here to add different integration methods, if required
primative_second_order!(coord, f)
primitive_second_order!(coord, f)
return nothing
end

Expand All @@ -564,17 +564,17 @@ Integrate the input function f and return as pf
using second-order trapezium rule.
Do the integral on each element separately.
"""
function primative_second_order!(coord, f)
function primitive_second_order!(coord, f)
n = length(f)
ngrid = coord.ngrid
nelement = coord.nelement_local
# the primative
# the primitive
pf = coord.scratch_2d
# the grid
z = coord.grid
igrid_full = coord.igrid_full
for j in 1:nelement
# lower value of primative is zero
# lower value of primitive is zero
# indefinite_integral_elements_to_full_grid!() in calculus.jl
# will calculate the correct integration constants
pf[1,j] = 0.0
Expand Down
2 changes: 1 addition & 1 deletion moment_kinetics/src/gauss_legendre.jl
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ A function that takes the indefinite integral in each element of `coord.grid`,
leaving the result (element-wise) in `coord.scratch_2d`.
"""
function elementwise_indefinite_integration!(coord, ff, gausslegendre::gausslegendre_info)
# the primative of f
# the primitive of f
pf = coord.scratch_2d
# define local variable nelement for convenience
nelement = coord.nelement_local
Expand Down

0 comments on commit 538870d

Please sign in to comment.