Skip to content

Commit 990c456

Browse files
authored
Merge pull request #1 from hpc-io/develop
Committing clang-format changes
2 parents 8920c67 + 78c1edb commit 990c456

File tree

1 file changed

+30
-27
lines changed

1 file changed

+30
-27
lines changed

src/H5VLpdc.c

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ static void * H5VL_pdc_dataset_create(void *obj, const H5VL_loc_params_t *loc_pa
131131
hid_t dapl_id, hid_t dxpl_id, void **req);
132132
static void * H5VL_pdc_dataset_open(void *obj, const H5VL_loc_params_t *loc_params, const char *name,
133133
hid_t dapl_id, hid_t dxpl_id, void **req);
134-
static herr_t H5VL_pdc_dataset_read(size_t count, void *dset[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[],
135-
hid_t plist_id, void *buf[], void **req);
136-
static herr_t H5VL_pdc_dataset_write(size_t count, void *dset[], hid_t mem_type_id[], hid_t mem_space_id[], hid_t file_space_id[],
137-
hid_t plist_id, const void *buf[], void **req);
134+
static herr_t H5VL_pdc_dataset_read(size_t count, void *dset[], hid_t mem_type_id[], hid_t mem_space_id[],
135+
hid_t file_space_id[], hid_t plist_id, void *buf[], void **req);
136+
static herr_t H5VL_pdc_dataset_write(size_t count, void *dset[], hid_t mem_type_id[], hid_t mem_space_id[],
137+
hid_t file_space_id[], hid_t plist_id, const void *buf[], void **req);
138138
static herr_t H5VL_pdc_dataset_get(void *dset, H5VL_dataset_get_args_t *args, hid_t dxpl_id, void **req);
139139
static herr_t H5VL_pdc_dataset_specific(void *obj, H5VL_dataset_specific_args_t *args, hid_t dxpl_id,
140140
void **req);
@@ -520,7 +520,7 @@ H5VL_pdc_info_copy(const void *_old_info)
520520
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
521521

522522
new_info->under_vol_info = old_info->under_vol_info;
523-
new_info->under_vol_id = old_info->under_vol_id;
523+
new_info->under_vol_id = old_info->under_vol_id;
524524

525525
FUNC_RETURN_SET(new_info);
526526

@@ -1003,7 +1003,7 @@ H5VL_pdc_file_specific(void *file, H5VL_file_specific_args_t *args, hid_t dxpl_i
10031003
H5VL_file_specific_args_t *new_args;
10041004
H5VL_pdc_info_t * info;
10051005
hid_t under_vol_id = -1;
1006-
herr_t ret_value = 0;
1006+
herr_t ret_value = 0;
10071007

10081008
if (args->op_type == H5VL_FILE_IS_ACCESSIBLE) {
10091009

@@ -1288,9 +1288,9 @@ H5VL_pdc_dataset_open(void *obj, const H5VL_loc_params_t *loc_params, const char
12881288
dset->under_vol_id = o->under_vol_id;
12891289
dset->under_object = dset;
12901290
/* pdcid_t id_name = (pdcid_t)name; */
1291-
obj_info = PDCobj_get_info(dset->obj_id);
1292-
dset->space_id = H5Screate_simple(obj_info->obj_pt->ndim, obj_info->obj_pt->dims, NULL);
1293-
dset->type = obj_info->obj_pt->type;
1291+
obj_info = PDCobj_get_info(dset->obj_id);
1292+
dset->space_id = H5Screate_simple(obj_info->obj_pt->ndim, obj_info->obj_pt->dims, NULL);
1293+
dset->type = obj_info->obj_pt->type;
12941294
o->nobj++;
12951295
H5_LIST_INSERT_HEAD(&o->ids, dset, entry);
12961296

@@ -1303,7 +1303,7 @@ H5VL_pdc_dataset_open(void *obj, const H5VL_loc_params_t *loc_params, const char
13031303

13041304
/*---------------------------------------------------------------------------*/
13051305
herr_t
1306-
H5VL_pdc_dataset_write(size_t count, void *_dset[], hid_t mem_type_id[], hid_t mem_space_id[],
1306+
H5VL_pdc_dataset_write(size_t count, void *_dset[], hid_t mem_type_id[], hid_t mem_space_id[],
13071307
hid_t file_space_id[], hid_t plist_id, const void *buf[], void **req)
13081308
{
13091309
#ifdef ENABLE_LOGGING
@@ -1360,8 +1360,9 @@ H5VL_pdc_dataset_write(size_t count, void *_dset[], hid_t mem_type_id[], hid_t m
13601360
free(offset);
13611361

13621362
#ifdef USE_REGION_TRANSFER
1363-
transfer_request = PDCregion_transfer_create((void *)buf[u], PDC_WRITE, dset->obj_id, region_x, region_xx);
1364-
ret = PDCregion_transfer_start(transfer_request);
1363+
transfer_request =
1364+
PDCregion_transfer_create((void *)buf[u], PDC_WRITE, dset->obj_id, region_x, region_xx);
1365+
ret = PDCregion_transfer_start(transfer_request);
13651366
if (ret != SUCCEED) {
13661367
HGOTO_ERROR(H5E_DATASET, H5E_WRITEERROR, FAIL, "Failed to region transfer start");
13671368
}
@@ -1404,7 +1405,7 @@ H5VL_pdc_dataset_write(size_t count, void *_dset[], hid_t mem_type_id[], hid_t m
14041405

14051406
/*---------------------------------------------------------------------------*/
14061407
herr_t
1407-
H5VL_pdc_dataset_read(size_t count, void *_dset[], hid_t mem_type_id[], hid_t mem_space_id[],
1408+
H5VL_pdc_dataset_read(size_t count, void *_dset[], hid_t mem_type_id[], hid_t mem_space_id[],
14081409
hid_t file_space_id[], hid_t plist_id, void *buf[], void **req)
14091410
{
14101411
#ifdef ENABLE_LOGGING
@@ -1423,7 +1424,7 @@ H5VL_pdc_dataset_read(size_t count, void *_dset[], hid_t mem_type_id[], hid_t me
14231424

14241425
FUNC_ENTER_VOL(herr_t, SUCCEED)
14251426

1426-
for(size_t u = 0; u < count; u++) {
1427+
for (size_t u = 0; u < count; u++) {
14271428
dset = (H5VL_pdc_obj_t *)_dset[u];
14281429
/* Get memory dataspace object */
14291430
if ((ndim = H5Sget_simple_extent_ndims(mem_space_id[u])) < 0)
@@ -1444,8 +1445,9 @@ H5VL_pdc_dataset_read(size_t count, void *_dset[], hid_t mem_type_id[], hid_t me
14441445
free(offset);
14451446

14461447
#ifdef USE_REGION_TRANSFER
1447-
transfer_request = PDCregion_transfer_create((void *)buf[u], PDC_READ, dset->obj_id, region_x, region_xx);
1448-
ret = PDCregion_transfer_start(transfer_request);
1448+
transfer_request =
1449+
PDCregion_transfer_create((void *)buf[u], PDC_READ, dset->obj_id, region_x, region_xx);
1450+
ret = PDCregion_transfer_start(transfer_request);
14491451
if (ret != SUCCEED) {
14501452
HGOTO_ERROR(H5E_DATASET, H5E_WRITEERROR, FAIL, "Failed to region transfer start");
14511453
}
@@ -1708,8 +1710,8 @@ H5VL_pdc_group_create(void *obj, const H5VL_loc_params_t *loc_params, const char
17081710
#endif
17091711

17101712
H5VL_pdc_obj_t *group;
1711-
H5VL_pdc_obj_t *o = (H5VL_pdc_obj_t *)obj;
1712-
void * under = NULL;
1713+
H5VL_pdc_obj_t *o = (H5VL_pdc_obj_t *)obj;
1714+
void * under = NULL;
17131715
char * group_name = (char *)calloc(1, strlen(name) + 1);
17141716
strcpy(group_name, name);
17151717

@@ -1743,8 +1745,8 @@ H5VL_pdc_group_open(void *obj, const H5VL_loc_params_t *loc_params, const char *
17431745
#endif
17441746

17451747
H5VL_pdc_obj_t *group;
1746-
H5VL_pdc_obj_t *o = (H5VL_pdc_obj_t *)obj;
1747-
void * under = NULL;
1748+
H5VL_pdc_obj_t *o = (H5VL_pdc_obj_t *)obj;
1749+
void * under = NULL;
17481750
char * group_name = (char *)malloc(strlen(name) + 1);
17491751
strcpy(group_name, name);
17501752

@@ -1865,7 +1867,7 @@ H5VL_pdc_attr_create(void *obj, const H5VL_loc_params_t *loc_params, const char
18651867
#endif
18661868

18671869
H5VL_pdc_obj_t *attr;
1868-
H5VL_pdc_obj_t *o = (H5VL_pdc_obj_t *)obj;
1870+
H5VL_pdc_obj_t *o = (H5VL_pdc_obj_t *)obj;
18691871
void * under = NULL;
18701872
psize_t value_size;
18711873

@@ -1894,8 +1896,8 @@ H5VL_pdc_attr_open(void *obj, const H5VL_loc_params_t *loc_params, const char *n
18941896
fflush(stdout);
18951897
#endif
18961898
H5VL_pdc_obj_t *attr;
1897-
H5VL_pdc_obj_t *o = (H5VL_pdc_obj_t *)obj;
1898-
void * under = NULL;
1899+
H5VL_pdc_obj_t *o = (H5VL_pdc_obj_t *)obj;
1900+
void * under = NULL;
18991901
char * attr_name = (char *)malloc(strlen(name) + 1);
19001902
strcpy(attr_name, name);
19011903
o->attr_name = attr_name;
@@ -1917,10 +1919,11 @@ H5VL_pdc_attr_read(void *attr, hid_t mem_type_id, void *buf, hid_t dxpl_id, void
19171919
H5VL_pdc_obj_t *o = (H5VL_pdc_obj_t *)attr;
19181920
void * tag_value;
19191921
/* psize_t * value_size; */
1920-
perr_t ret_value;
1921-
pdc_var_type_t value_type;
1922+
perr_t ret_value;
1923+
pdc_var_type_t value_type;
19221924

1923-
ret_value = PDCobj_get_tag(o->obj_id, (char *)o->attr_name, &tag_value, &value_type, &(o->attr_value_size));
1925+
ret_value =
1926+
PDCobj_get_tag(o->obj_id, (char *)o->attr_name, &tag_value, &value_type, &(o->attr_value_size));
19241927
memcpy(buf, tag_value, o->attr_value_size);
19251928
if (tag_value)
19261929
free(tag_value);
@@ -1998,7 +2001,7 @@ H5VL_pdc_attr_close(void *attr, hid_t dxpl_id, void **req)
19982001
#endif
19992002

20002003
/* H5VL_pdc_obj_t *o = (H5VL_pdc_obj_t *)attr; */
2001-
herr_t ret_value;
2004+
herr_t ret_value;
20022005
ret_value = 0;
20032006

20042007
return ret_value;

0 commit comments

Comments
 (0)