Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 3, 2024
1 parent 9dba3d9 commit 62cdcae
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
16 changes: 8 additions & 8 deletions HDF5Examples/C/H5T/116/h5ex_t_complex.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
int
main(void)
{
float _Complex wdata[DIM0][DIM1]; /* Write buffer */
float _Complex **rdata; /* Read buffer */
hid_t file, space, dset; /* Handles */
herr_t status;
hsize_t dims[2] = {DIM0, DIM1};
int ndims;
hsize_t i, j;
float _Complex wdata[DIM0][DIM1]; /* Write buffer */
float _Complex **rdata; /* Read buffer */
hid_t file, space, dset; /* Handles */
herr_t status;
hsize_t dims[2] = {DIM0, DIM1};
int ndims;
hsize_t i, j;

/*
* Initialize data.
Expand All @@ -39,7 +39,7 @@ main(void)
for (j = 0; j < DIM1; j++) {
float real = (float)i / (j + 0.5) + j;
float imaginary = (float)i / (j + 0.5) + j + 1;
wdata[i][j] = real + imaginary * I;
wdata[i][j] = real + imaginary * I;
}

/*
Expand Down
18 changes: 9 additions & 9 deletions HDF5Examples/C/H5T/116/h5ex_t_complex_custom.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
int
main(void)
{
float _Complex wdata[DIM0][DIM1]; /* Write buffer */
float _Complex **rdata; /* Read buffer */
hid_t file, space, dset, dtype; /* Handles */
herr_t status;
hsize_t dims[2] = {DIM0, DIM1};
int ndims;
hsize_t i, j;
float _Complex wdata[DIM0][DIM1]; /* Write buffer */
float _Complex **rdata; /* Read buffer */
hid_t file, space, dset, dtype; /* Handles */
herr_t status;
hsize_t dims[2] = {DIM0, DIM1};
int ndims;
hsize_t i, j;

/*
* Initialize data.
Expand All @@ -39,7 +39,7 @@ main(void)
for (j = 0; j < DIM1; j++) {
float real = (float)i / (j + 0.5) + j;
float imaginary = (float)i / (j + 0.5) + j + 1;
wdata[i][j] = real + imaginary * I;
wdata[i][j] = real + imaginary * I;
}

/*
Expand All @@ -60,7 +60,7 @@ main(void)
* type. The HDF5 library automatically converts between different
* complex number types.
*/
dset = H5Dcreate(file, DATASET, H5T_CPLX_IEEE_F64LE, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
dset = H5Dcreate(file, DATASET, H5T_CPLX_IEEE_F64LE, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);

/*
* Create a datatype for writing to the dataset. This datatype is a
Expand Down
16 changes: 8 additions & 8 deletions HDF5Examples/C/H5T/116/h5ex_t_complex_msvc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
int
main(void)
{
_Fcomplex wdata[DIM0][DIM1]; /* Write buffer */
_Fcomplex **rdata; /* Read buffer */
hid_t file, space, dset; /* Handles */
herr_t status;
hsize_t dims[2] = {DIM0, DIM1};
int ndims;
hsize_t i, j;
_Fcomplex wdata[DIM0][DIM1]; /* Write buffer */
_Fcomplex **rdata; /* Read buffer */
hid_t file, space, dset; /* Handles */
herr_t status;
hsize_t dims[2] = {DIM0, DIM1};
int ndims;
hsize_t i, j;

/*
* Initialize data.
Expand All @@ -40,7 +40,7 @@ main(void)
for (j = 0; j < DIM1; j++) {
float real = (float)i / (j + 0.5) + j;
float imaginary = (float)i / (j + 0.5) + j + 1;
wdata[i][j] = _FCbuild(real, imaginary);
wdata[i][j] = _FCbuild(real, imaginary);
}

/*
Expand Down

0 comments on commit 62cdcae

Please sign in to comment.