//--------------------------------------------------------------------------- #ifndef ParametersH #define ParametersH #define CODEGEAR 1 // set to 1 for CodeGear compiler, 0 for Visual Studio #define VCL 0 // set to 0 for the batch version #define BATCH 0 // set to 1 to show simple diagnostics, otherwise set to 0 #define SHOWLOWESTF 0 #define SHOWITER 0 #define SHOWNEIGHBOURS 0 #define SHOWOPENLIST 0 #define SHOWCLOSEDLIST 0 #define SHOWTRACE 0 #define GO2TARGET 1 // set to 1 to move directly towards target once within PR #define READSOURCE 0 // set to 1 to read source file, 0 to ignore it #define NODATACOST 600000 // cost to use in place of nodata value #define WRITE_PATHS 1 // 0 = do not write paths file, 1 = write it #define WRITE_OUTPUT1 0 // 0 = do not write output file, 1 = write it #define WRITE_OUTPUT2 0 // 0 = do not write output2 file, 1 = write it //#define COSTGRID "pref" #define COSTGRID "resist" // Parameters dependent on grain size // 3m grain #define GRAIN "3" #define NOWINDOW 1 #define WINDOW 10000 #define PRANGE 10 #define DPSTART 2 #define DPEND 20 #define DPINCR 2 const int STARTLOCN[4][2] = {606,475,1441,849,4006,3991,5056,3776}; // 6m grain //#define GRAIN "6" //#define WINDOW 5000 //#define PRANGE 5 //#define DPSTART 2 //#define DPEND 10 //#define DPINCR 2 //const int STARTLOCN[4][2] = {303,237,720,424,2003,1995,2528,1888}; // 10m grain //#define GRAIN "10" //#define WINDOW 3000 //#define PRANGE 3 //#define DPSTART 2 //#define DPEND 6 //#define DPINCR 1 //const int STARTLOCN[4][2] = {180,141,432,252,1200,1197,1515,1131}; // 15m grain //#define GRAIN "15" //#define WINDOW 2000 //#define PRANGE 2 //#define DPSTART 2 //#define DPEND 8 //#define DPINCR 1 //const int STARTLOCN[4][2] = {121,95,288,169,801,798,1011,755}; // 15m grain // 30m grain //#define GRAIN "30" //#define NOWINDOW 0 //#define WINDOW 1000 //#define PRANGE 1 //#define DPSTART 1 //#define DPEND 10 //#define DPINCR 1 //const int STARTLOCN[4][2] = {60,47,144,84,400,399,505,377}; // 30m grain //const int SEED = 101; // Random number generator seed //const int SEED = 123; // Random number generator seed const int SEED = time(0); // Random number generator seed //--------------------------------------------------------------------------- #endif