mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-12-23 04:43:57 +01:00
Missing break in front end
This commit is contained in:
parent
c687c80f92
commit
1f7386c4ca
@ -1745,19 +1745,18 @@ trexio_write_$group_dset$_64 (trexio_t* const file, const $group_dset_dtype_doub
|
|||||||
|
|
||||||
$group_dset_dtype_double$* $group_dset$_p = ($group_dset_dtype_double$*) $group_dset$;
|
$group_dset_dtype_double$* $group_dset$_p = ($group_dset_dtype_double$*) $group_dset$;
|
||||||
|
|
||||||
/* Handle index type */
|
|
||||||
if ($is_index$) {
|
if ($is_index$) {
|
||||||
|
/* Handle index type : is_index = $is_index$ */
|
||||||
uint64_t dim_size = 1;
|
uint64_t dim_size = 1;
|
||||||
for (uint32_t i=0; i<rank; ++i){
|
for (uint32_t i=0; i<rank; ++i){
|
||||||
dim_size *= dims[i];
|
dim_size *= dims[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
$group_dset$_p = CALLOC(dim_size, $group_dset_dtype_double$);
|
$group_dset$_p = CALLOC(dim_size, $group_dset_dtype_double$);
|
||||||
if ($group_dset$_p == NULL) return TREXIO_ALLOCATION_FAILED;
|
if ($group_dset$_p == NULL) return TREXIO_ALLOCATION_FAILED;
|
||||||
|
|
||||||
for (uint64_t i=0; i<dim_size; ++i){
|
for (uint64_t i=0; i<dim_size; ++i){
|
||||||
$group_dset$_p[i] -= ($group_dset_dtype_double$) 1;
|
$group_dset$_p[i] -= ($group_dset_dtype_double$) 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1777,11 +1776,11 @@ trexio_write_$group_dset$_64 (trexio_t* const file, const $group_dset_dtype_doub
|
|||||||
#else
|
#else
|
||||||
return TREXIO_BACK_END_MISSING;
|
return TREXIO_BACK_END_MISSING;
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
case TREXIO_JSON:
|
case TREXIO_JSON:
|
||||||
rc = trexio_json_write_$group_dset$(file, $group_dset$_p, rank, dims);
|
rc = trexio_json_write_$group_dset$(file, $group_dset$_p, rank, dims);
|
||||||
break;
|
break;
|
||||||
,*/
|
,*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Handle index type */
|
/* Handle index type */
|
||||||
@ -2501,6 +2500,7 @@ trexio_read_$group_dset$(trexio_t* const file,
|
|||||||
break;
|
break;
|
||||||
#else
|
#else
|
||||||
rc = TREXIO_BACK_END_MISSING;
|
rc = TREXIO_BACK_END_MISSING;
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
case TREXIO_JSON:
|
case TREXIO_JSON:
|
||||||
|
Loading…
Reference in New Issue
Block a user