Skip to content

Commit

Permalink
[Trifocal+P2Pt] reducing variables for cache
Browse files Browse the repository at this point in the history
  • Loading branch information
rfabbri committed Oct 27, 2023
1 parent 1096fbf commit dc41db4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions minus/minus.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,9 @@ struct minus_core<P, F>::track_settings {
F dt_decrease_factor_; // m2 stepDecreaseFactor not existent in DEFAULT, using what is in track.m2:77
F infinity_threshold_; // m2 InfinityThreshold
F infinity_threshold2_;
unsigned max_corr_steps_; // m2 maxCorrSteps (track.m2 param of rawSetParametersPT corresp to max_corr_steps in NAG.cpp)
unsigned num_successes_before_increase_; // m2 numberSuccessesBeforeIncrease
unsigned max_num_steps_; // maximum number of steps per track.
// Each step takes roughly 1 microseconds (tops)
unsigned max_num_steps_; // maximum number of steps per track. Each step takes roughly 1 microseconds (tops)
char num_successes_before_increase_; // m2 numberSuccessesBeforeIncrease
char max_corr_steps_; // m2 maxCorrSteps (track.m2 param of rawSetParametersPT corresp to max_corr_steps in NAG.cpp)
};
// Original settings from Tim: Fri Feb 22 12:00:06 -03 2019 Git 0ec3340
// o9 = MutableHashTable{AffinePatches => DynamicPatch }
Expand Down
4 changes: 2 additions & 2 deletions minus/minus.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ track(const track_settings &s, const C<F> s_sols[f::nve*f::nsols], const C<F> pa
bool end_zone = false;
v::copy(s_s, x0);
*t0 = 0; *dt = t_step;
unsigned predictor_successes = 0;
char predictor_successes = 0;

// track H(x,t) for t in [0,1]
while (t_s->status == PROCESSING
Expand Down Expand Up @@ -209,7 +209,7 @@ track(const track_settings &s, const C<F> s_sols[f::nve*f::nsols], const C<F> pa
vp::add_to_self(x1t1, dxdt);

/// CORRECTOR ///
unsigned n_corr_steps = 0;
char n_corr_steps = 0;
bool is_successful;
do {
++n_corr_steps;
Expand Down

0 comments on commit dc41db4

Please sign in to comment.