Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 24 additions & 27 deletions src/morphydefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,30 @@ typedef unsigned int MPLstate;
#define MPLWTMIN (MPL_EPSILON * 10) /*! Safest (for me!) if calculations
steer pretty clear of epsilon */

typedef struct MPLndsets MPLndsets;

typedef struct MPLndsets {

bool updated;
int steps_to_recall;
MPLstate* downpass1;
MPLstate* uppass1;
MPLstate* downpass2;
MPLstate* uppass2;
MPLstate* subtree_actives;
MPLstate* temp_subtr_actives;
MPLstate* temp_downpass1;
MPLstate* temp_uppass1;
MPLstate* temp_downpass2;
MPLstate* temp_uppass2;
bool* changes;
char** downp1str;
char** downp2str;
char** upp1str;
char** upp2str;

} MPLndsets;


typedef struct partition_s MPLpartition;
// Evaluator function pointers
typedef int (*MPLdownfxn)
Expand Down Expand Up @@ -82,7 +105,6 @@ typedef struct {
} MPLcell;


typedef struct charinfo_s MPLcharinfo;
typedef struct charinfo_s {

int charindex;
Expand Down Expand Up @@ -112,7 +134,6 @@ typedef struct {
} MPLcupdate;


typedef struct partition_s MPLpartition;
typedef struct partition_s {

MPLchtype chtype; /*!< The optimality type used for this partition. */
Expand Down Expand Up @@ -150,30 +171,6 @@ typedef struct partition_s {
} MPLpartition;



typedef struct MPLndsets {

bool updated;
int steps_to_recall;
MPLstate* downpass1;
MPLstate* uppass1;
MPLstate* downpass2;
MPLstate* uppass2;
MPLstate* subtree_actives;
MPLstate* temp_subtr_actives;
MPLstate* temp_downpass1;
MPLstate* temp_uppass1;
MPLstate* temp_downpass2;
MPLstate* temp_uppass2;
bool* changes;
char** downp1str;
char** downp2str;
char** upp1str;
char** upp2str;

} MPLndsets;


typedef struct mpl_matrix_s {
int ncells;
MPLcell* cells;
Expand Down