new arrows for testing purposes
This commit is contained in:
parent
44bae3d1c8
commit
cca06c9ec6
29
src/model.c
29
src/model.c
|
@ -24,11 +24,11 @@
|
||||||
#include "../include/scheduler.h"
|
#include "../include/scheduler.h"
|
||||||
|
|
||||||
#define MAX_MODEL_NUMBER 1
|
#define MAX_MODEL_NUMBER 1
|
||||||
#define ARROW_NUMBER 2
|
#define ARROW_NUMBER 6
|
||||||
#define SITE_NUMBER 2
|
#define SITE_NUMBER 2
|
||||||
#define MAX_CYCLES 10
|
#define MAX_CYCLES 10
|
||||||
#define MAX_THREAD 0
|
#define MAX_THREAD 0
|
||||||
#define XMAX 30
|
#define XMAX 39
|
||||||
#define YMAX 0
|
#define YMAX 0
|
||||||
#define ZMAX 0
|
#define ZMAX 0
|
||||||
#define SPACE_SIZE (XMAX+1) * (YMAX+1) * (ZMAX+1)
|
#define SPACE_SIZE (XMAX+1) * (YMAX+1) * (ZMAX+1)
|
||||||
|
@ -153,11 +153,28 @@ static void ModelPrepareArrows(Space_t *globalDrawingSpace,
|
||||||
arrowArray->size = ARROW_NUMBER; //XXX hardcoded
|
arrowArray->size = ARROW_NUMBER; //XXX hardcoded
|
||||||
|
|
||||||
// Creating some arrows XXX random walking
|
// Creating some arrows XXX random walking
|
||||||
globalDrawingSpace->space[3].sites[1].nArrow = 1;
|
/* In each cell: the West (left) site is 0, the East (right) site is 1 */
|
||||||
|
globalDrawingSpace->space[1].sites[1].nArrow = 1;
|
||||||
arrowArray->array[0].siteId = 1;
|
arrowArray->array[0].siteId = 1;
|
||||||
arrowArray->array[0].x = 3;
|
arrowArray->array[0].x = 1;
|
||||||
|
|
||||||
|
globalDrawingSpace->space[2].sites[0].nArrow = 1;
|
||||||
|
arrowArray->array[1].siteId = 0;
|
||||||
|
arrowArray->array[1].x = 2;
|
||||||
|
|
||||||
|
globalDrawingSpace->space[3].sites[1].nArrow = 1;
|
||||||
|
arrowArray->array[2].siteId = 1;
|
||||||
|
arrowArray->array[2].x = 3;
|
||||||
|
|
||||||
globalDrawingSpace->space[4].sites[0].nArrow = 1;
|
globalDrawingSpace->space[4].sites[0].nArrow = 1;
|
||||||
arrowArray->array[1].siteId = 0;
|
arrowArray->array[3].siteId = 0;
|
||||||
arrowArray->array[1].x = 4;
|
arrowArray->array[3].x = 4;
|
||||||
|
|
||||||
|
globalDrawingSpace->space[10].sites[1].nArrow = 1;
|
||||||
|
arrowArray->array[4].siteId = 1;
|
||||||
|
arrowArray->array[4].x = 10;
|
||||||
|
|
||||||
|
globalDrawingSpace->space[11].sites[0].nArrow = 1;
|
||||||
|
arrowArray->array[5].siteId = 0;
|
||||||
|
arrowArray->array[5].x = 11;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue