Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Vladislav Perepelkin
hppca
Commits
6e7c727a
Commit
6e7c727a
authored
Nov 14, 2016
by
Vladislav Perepelkin
Browse files
removed unnecessary file
parent
6ef8bc0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
system/config.c.example
deleted
100644 → 0
View file @
6ef8bc0d
// USER CONFIGURATION FILE
#define THREADS 8
// Main properties
#define WIDTH 500
#define HEIGHT 500
#define ITERS 501
#define SAVE_PERIOD 50
#define AVERAGING_RADIUS 1
#define ENSEMBLE_SIZE 2
// Fill part of field
void fill(int row, int col, int height, int width,
double prob_m1, double prob_m2, double prob_m4, double prob_m8,
double prob_rp16, double prob_rp32, double prob_rp64, double prob_rp128);
// Field initialization
void init()
{
fill(0, 0, HEIGHT, WIDTH, // area: row, col, height, width
0.7, 0.7, 0.7, 0.7, // move probabilities: 1, 2, 4, 8
0.25, 0.0, 0.0, 0.0); // rest probabilities: 16, 32, 64, 128
}
// Sources rules
void sources(int iter)
{
if (iter==0) {
fill(0, WIDTH/2-10, HEIGHT, WIDTH/2+10,
1.0, 1.0, 1.0, 1.0,
0.75, 0.0, 0.0, 0.0);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment