Glauber Dynamics in C
Simulation for Glauber Dynamics written in C11
Data Structures | Typedefs | Functions
glauber_dynamics.h File Reference

Contains main dynamics and main function. More...

#include "pcg_variants.h"
#include "update_rules.h"

Go to the source code of this file.

Data Structures

struct  arguments
 Struct containing the results of the inline command arguments. More...
 

Typedefs

typedef struct arguments arguments
 Typedef of the arguments struct.
 

Functions

void glauber_dynamics (graph *init_state, update_rule graph_update, int threshold_time, arguments *args)
 Do a glauber evolution on init_state using the provided update rule. More...
 

Detailed Description

Contains main dynamics and main function.

Function Documentation

◆ glauber_dynamics()

void glauber_dynamics ( graph init_state,
update_rule  graph_update,
int  threshold_time,
arguments args 
)

Do a glauber evolution on init_state using the provided update rule.

Parameters
init_statePointer to the initial state, note that this is changed in place and after running the function the pointer points to the evolved graph.
graph_updateupdate_rule which should be run on every vertex every exp(1) time.
threshold_timeMaximum time for which the system runs.
argsarguments from parsed command-line arguments.
See also
graph