Skip to content

Commit

Permalink
Merge pull request #310 from mabarnes/type-instability-fix
Browse files Browse the repository at this point in the history
Fix a couple of small type instabilities
  • Loading branch information
johnomotani authored Jan 23, 2025
2 parents 10ca911 + 34e80eb commit 0667722
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion moment_kinetics/src/initial_conditions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ function initialize_electron_pdf!(scratch, scratch_electron, pdf, moments, field
# Broadcast code_time and pdf_electron_converged from the root process of each
# shared-memory block (on which it might have been loaded from a restart
# file).
code_time = MPI.Bcast(code_time, 0, comm_block[])
code_time = MPI.Bcast(code_time, 0, comm_block[])::mk_float
pdf_electron_converged = MPI.Bcast(pdf_electron_converged, 0, comm_block[])

if pdf_electron_converged
Expand Down
6 changes: 3 additions & 3 deletions moment_kinetics/src/moment_kinetics_structs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,9 @@ end

"""
"""
struct moments_struct
ion::moments_ion_substruct
electron::moments_electron_substruct
struct moments_struct{ndim_moment_wall, ndim_moment_electron_source}
ion::moments_ion_substruct{ndim_moment_wall}
electron::moments_electron_substruct{ndim_moment_electron_source}
neutral::moments_neutral_substruct
# flag that indicates if the density should be evolved via continuity equation
evolve_density::Bool
Expand Down

0 comments on commit 0667722

Please sign in to comment.