aboutsummaryrefslogtreecommitdiff
path: root/Carpet/LoopControl/src/lc_hill.h
blob: 7d418314ba014ccbeef4ef6e5dc02c7747781b39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef LC_HILL_H
#define LC_HILL_H

#include <cctk.h>

#include "loopcontrol.h"



/* no typedef here; forward declcared in loopcontrol.h */
struct lc_hill_state_t {
  int iteration;
  
  lc_state_t best;
  double best_time;
  int have_best;
  
  int excursion_start;          /* -1 if not on an excursion */
  
  lc_state_t previous;
  double previous_time;
  int have_previous;
  
  lc_state_t state;
  double time;
};



void
lc_hill_init (lc_statset_t * restrict const ls,
              lc_state_t * restrict const state);

void
lc_hill_finish (lc_statset_t * restrict const ls,
                lc_stattime_t const * restrict const lt);

#endif  /* #ifndef LC_HILL_H */