Skip to content

Commit

Permalink
fix incorrect comm buffer in PR #1081
Browse files Browse the repository at this point in the history
  • Loading branch information
jhmatthews committed Jun 6, 2024
1 parent 659ec7e commit 8347fc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/communicate_plasma.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,8 @@ broadcast_updated_plasma_properties (const int n_start_rank, const int n_stop_ra
const int n_cells_max = get_max_cells_per_rank (NPLASMA);
const int num_ints = 1 + n_cells_max * (20 + nphot_total + 2 * NXBANDS + 2 * N_PHOT_PROC + nions);
const int num_doubles =
n_cells_max * (71 + 1 * 3 + 6 * NFLUX_ANGLES + 12 * NFORCE_DIRECTIONS + 9 * nions + 1 * nlte_levels + 3 * nphot_total +

n_cells_max * (71 + 1 * 3 + 9 * 4 + 6 * NFLUX_ANGLES + 3 * NFORCE_DIRECTIONS + 9 * nions + 1 * nlte_levels + 3 * nphot_total +
1 * n_inner_tot + 9 * NXBANDS + 1 * NBINS_IN_CELL_SPEC);
const int size_of_comm_buffer = calculate_comm_buffer_size (num_ints, num_doubles);
char *const comm_buffer = malloc (size_of_comm_buffer);

Expand Down
2 changes: 1 addition & 1 deletion source/python.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ main (argc, argv)

/* Calculate parameters associated with the binary star system */

if (geo.system_type == SYSTEM_TYPE_CV)
if (geo.binary)
binary_basics ();

/* Check that the parameters which have been supplied for the star, disk and boundary layer will
Expand Down

1 comment on commit 8347fc5

@jhmatthews
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note this also includes a preliminary fix for #1085

Please sign in to comment.