Commit a4ef49ab authored by Cassio Kirch's avatar Cassio Kirch

Literals types.

parent 37bc5588
......@@ -3,19 +3,20 @@
#define Z 2
#define PI 3.14159265359
#define PLOT_EXIT_FILES
//#define PLOT_EXIT_FILES
#define ENDO_GAMMA
//#define ECTO_GAMMA
//#define COUNT_NEIGHBORS
#define ENDOPROP 0.25
#define N 800u
#define RANGE 25.0
#define RANGE 150.0
#define PROP 0.35
#define SEED 13049u /* Must be unsigned int. */
#define DIMENSIONS 2u
#define BOXES 324u
#define BOXES_IN_EDGE 18u
#define NEIGHBOR_DISTANCE 1.32 /* r0 */
#define BOXES 22500u
#define BOXES_IN_EDGE 150u
#define NEIGHBOR_DISTANCE 1.0//1.32 /* r0 */
#define CORE_RADIUS 0.4 /* rc */
#define ELASTIC_DISTANCE 1.0 /* re */
#define INFINITE_FORCE 10000.0
......@@ -30,9 +31,9 @@
#define DT 1.0
#define DATE_SIZE 36u /* Size of string */
#define FILENAME_SIZE 128u /* Size of string */
#define STEPS 2500ull
#define EXIT_INTERVAL 10
#define NUM_THREADS 8
#define STEPS 5000000ull
#define EXIT_INTERVAL 1000ull
#define NUM_THREADS 8u
#define RANDOM_0(max) (((double)rand()/RAND_MAX) * max)
......
......@@ -46,19 +46,19 @@ putParametersToFile(FILE* file)
"#SEED = %u\n" \
"#BOXES = %u\n" \
"#BOXES_IN_EDGE = %u\n" \
"#STEPS = %u\n" \
"#EXIT_INTERVAL = %d\n#\n" \
"#STEPS = %llu\n" \
"#EXIT_INTERVAL = %llu\n#\n" \
"#THREADS: %u\n", \
__DATE__, __TIME__, dateString, \
ALPHA11, ALPHA12, ALPHA22, \
BETA11, BETA12, BETA22, \
(unsigned int)N, ETA, V0, \
N, ETA, V0, \
NEIGHBOR_DISTANCE, DT, \
CORE_RADIUS, ELASTIC_DISTANCE, \
INFINITE_FORCE, RANGE, \
PROP, (unsigned int)SEED, (unsigned int)BOXES, \
(unsigned int)BOXES_IN_EDGE, (unsigned int)STEPS, \
(unsigned int)EXIT_INTERVAL, (unsigned int)NUM_THREADS);
PROP, SEED, BOXES, \
BOXES_IN_EDGE, STEPS, \
EXIT_INTERVAL, NUM_THREADS);
}
FILE*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment