Skip to content

Commit

Permalink
domain: Use explicit casting
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-griesbach committed Dec 14, 2023
1 parent 65cdc9e commit 9f5d48e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/fclaw2d_convenience.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ fclaw2d_domain_new (p4est_wrap_t * wrap, sc_keyvalue_t * attributes)
int tree_maxlevel, local_maxlevel;
int levels[2], global_levels[2];
p4est_topidx_t vnum;
p4est_gloidx_t current_local_num_patches;
p4est_connectivity_t *conn = wrap->conn;
p4est_ghost_t *ghost = wrap->match_aux ? wrap->ghost_aux : wrap->ghost;
#ifdef FCLAW_ENABLE_DEBUG
Expand Down Expand Up @@ -280,11 +281,12 @@ fclaw2d_domain_new (p4est_wrap_t * wrap, sc_keyvalue_t * attributes)
domain->local_max_patches = 0;
for (i = 0; i < wrap->p4est->mpisize; ++i)
{
current_local_num_patches =
wrap->p4est->global_first_quadrant[i + 1] -
wrap->p4est->global_first_quadrant[i];

domain->local_max_patches = SC_MAX (domain->local_max_patches,
wrap->p4est->
global_first_quadrant[i + 1] -
wrap->p4est->
global_first_quadrant[i]);
(int) current_local_num_patches);
}

/* allocate ghost patches */
Expand Down

0 comments on commit 9f5d48e

Please sign in to comment.