Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/patches/clawpatch/fclaw_clawpatch_output_hdf5.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,12 @@ get_offsets_##TYPE(fclaw_global_t * glob, \
{ \
TYPE * offsets = (TYPE *) buffer; \
\
int num_cells_before; \
TYPE num_cells_before; \
int mx,my,mz,mbc; \
double dx,dy,dz,xlower,ylower,zlower; \
\
int num_patches_before = glob->domain->global_num_patches_before + glob->domain->blocks[blockno].num_patches_before + patchno; \
int num_points_per_cell; \
TYPE num_patches_before = glob->domain->global_num_patches_before + glob->domain->blocks[blockno].num_patches_before + patchno; \
TYPE num_points_per_cell; \
if(fclaw_clawpatch_dim(patch) == 2) \
{ \
fclaw_clawpatch_2d_grid_data(glob,patch,&mx,&my,&mbc,&xlower,&ylower,&dx,&dy); \
Expand All @@ -232,7 +232,7 @@ get_offsets_##TYPE(fclaw_global_t * glob, \
num_cells_before = num_patches_before * mx * my * mz; \
} \
\
int curr_offset = num_cells_before * num_points_per_cell; \
TYPE curr_offset = num_cells_before * num_points_per_cell; \
\
for(int k = 0; k < mz; k++) \
{ \
Expand Down
Loading