summaryrefslogtreecommitdiffstats
path: root/examples/gaussians.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2022-07-05 23:55:18 (GMT)
committerGitHub <noreply@github.com>2022-07-05 23:55:18 (GMT)
commit5ceaf920eccbf5176065b0deeb27b124b821db76 (patch)
tree2bca04a4fd6fd27065c3e33335092970ef30b940 /examples/gaussians.c
parentac7bddf2af317d4bc34854f5565396da51ff12aa (diff)
downloadhdf5-feature/vfd_swmr.zip
hdf5-feature/vfd_swmr.tar.gz
hdf5-feature/vfd_swmr.tar.bz2
VFD SWMR: Warning fixes and minor cleanup (#1847)feature/vfd_swmr
* Normalization with develop * Moves remaining datatype code changes over from develop * Cleanup in examples files * Warning cleanup in VFD SWMR code * Committing clang-format changes * Warning cleanup * Warning reduction * More warning fixes * Committing clang-format changes * Even more warning reduction in the VFD SWMR tests * More warning fixes in the VFD SWMR tests * Even more VFD SWMR test warning fixes * Last warning fixes in VFD SWMR * Committing clang-format changes * Minor things missed from develop * Warning fixes from GitHub build failures * Committing clang-format changes * Fix for warning due to weird bit shift type promotion * Yet another attempt at fixing the integral promotion warning Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'examples/gaussians.c')
-rw-r--r--examples/gaussians.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/examples/gaussians.c b/examples/gaussians.c
index f67ea2f..7517949 100644
--- a/examples/gaussians.c
+++ b/examples/gaussians.c
@@ -202,25 +202,6 @@ matrix_read(state_t *s, int *framenop, float mat[ROWS][COLS])
*framenop = frameno + 2;
}
-#if 0
- if (!s->constantrate && (lead < -2 || 2 < lead)) {
- int gain = 31250 / 4;
- const struct timespec prior_integral = s->update_integral;
- struct timespec current_interval;
- if (lead > 0)
- gain *= 2;
- struct timespec adjustment = (struct timespec){.tv_sec = 0,
- .tv_nsec = gain * MAX(MIN(4, lead), -4)};
- /* XXX clamp it XXX */
- timespecadd(&s->update_integral,
- &adjustment, &s->update_integral);
- timespecadd(&s->update_integral,
- &s->update_interval, &current_interval);
- if (timespeccmp(&current_interval, &s->min_interval, <=))
- s->update_integral = prior_integral;
- }
-#endif
-
if (frameno >= dims[0]) {
int i, j;
for (i = 0; i < ROWS; i++) {
@@ -565,11 +546,6 @@ matrix_open(state_t *s, bool rw)
config.writer = rw;
config.md_pages_reserved = 128;
-#if 0 /* raw-data flushing is not implemented; default open-tries is ok */
- config.flush_raw_data = true;
- config.md_open_tries = 1;
-#endif
-
strlcpy(config.md_file_path, "./my_md_file", sizeof(config.md_file_path));
/* Enable page buffering */
@@ -688,10 +664,6 @@ main(int argc, char **argv)
case READ:
case STANDALONE:
matrix_draw(w, mat);
-#if 0
- wmove(topw, ROWS + 3, 0);
- waddstr(topw, "\"Don't cross the streams.\"");
-#endif
break;
case WRITE:
matrix_write(&s, frameno, mat);