From 34e80eb59fc25cc43fc0c4c9b57a1f35dcd65e14 Mon Sep 17 00:00:00 2001 From: John Omotani Date: Wed, 22 Jan 2025 19:18:52 +0000 Subject: [PATCH] Fix a couple of small type instabilities --- moment_kinetics/src/initial_conditions.jl | 2 +- moment_kinetics/src/moment_kinetics_structs.jl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/moment_kinetics/src/initial_conditions.jl b/moment_kinetics/src/initial_conditions.jl index 536137c98..52f146c11 100644 --- a/moment_kinetics/src/initial_conditions.jl +++ b/moment_kinetics/src/initial_conditions.jl @@ -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 diff --git a/moment_kinetics/src/moment_kinetics_structs.jl b/moment_kinetics/src/moment_kinetics_structs.jl index 15a68090d..9fd746598 100644 --- a/moment_kinetics/src/moment_kinetics_structs.jl +++ b/moment_kinetics/src/moment_kinetics_structs.jl @@ -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