28 |
autolazy=0; |
autolazy=0; |
29 |
too_many_levels=70; |
too_many_levels=70; |
30 |
too_many_nodes=15000; |
too_many_nodes=15000; |
31 |
|
resolve_collective=0; |
32 |
// These #defs are for performance testing only |
// These #defs are for performance testing only |
33 |
// in general, I don't want people tweaking the |
// in general, I don't want people tweaking the |
34 |
// default value using compiler options |
// default value using compiler options |
39 |
#ifdef FAUTOLAZYOFF |
#ifdef FAUTOLAZYOFF |
40 |
autolazy=0; |
autolazy=0; |
41 |
#endif |
#endif |
42 |
|
|
43 |
|
#ifdef FRESCOLLECTON |
44 |
|
resolve_collective=1; |
45 |
|
#endif |
46 |
|
#ifdef FRESCOLLECTOFF |
47 |
|
resolve_collective=0; |
48 |
|
#endif |
49 |
|
|
50 |
} |
} |
51 |
|
|
52 |
int |
int |
68 |
{ |
{ |
69 |
return too_many_nodes; |
return too_many_nodes; |
70 |
} |
} |
71 |
|
if (!strcmp(name,"RESOLVE_COLLECTIVE")) |
72 |
|
{ |
73 |
|
return resolve_collective; |
74 |
|
} |
75 |
return sentinel; |
return sentinel; |
76 |
} |
} |
77 |
|
|
94 |
{ |
{ |
95 |
too_many_nodes=value; |
too_many_nodes=value; |
96 |
} |
} |
97 |
|
if (!strcmp(name,"RESOLVE_COLLECTIVE")) |
98 |
|
{ |
99 |
|
resolve_collective=value; |
100 |
|
} |
101 |
} |
} |
102 |
|
|
103 |
void |
void |
114 |
} |
} |
115 |
|
|
116 |
boost::python::list |
boost::python::list |
117 |
listEscriptParams() |
EscriptParams::listEscriptParams() |
118 |
{ |
{ |
119 |
using namespace boost::python; |
using namespace boost::python; |
120 |
boost::python::list l; |
boost::python::list l; |
121 |
l.append(make_tuple("TOO_MANY_LINES","Maximum number of lines to output when printing data before printing a summary instead.")); |
l.append(make_tuple("TOO_MANY_LINES", too_many_lines, "Maximum number of lines to output when printing data before printing a summary instead.")); |
122 |
l.append(make_tuple("AUTOLAZY","{0,1} Operations involving Expanded Data will create lazy results.")); |
l.append(make_tuple("AUTOLAZY", autolazy, "{0,1} Operations involving Expanded Data will create lazy results.")); |
123 |
|
l.append(make_tuple("RESOLVE_COLLECTIVE",resolve_collective ,"(TESTING ONLY) {0.1} Collective operations will resolve their data.")); |
124 |
|
l.append(make_tuple("TOO_MANY_LEVELS", too_many_levels, "(TESTING ONLY) maximum levels allowed in an expression.")); |
125 |
|
l.append(make_tuple("TOO_MANY_NODES", too_many_nodes, "(TESTING ONLY) maximum number of nodes in a expression.")); |
126 |
return l; |
return l; |
127 |
} |
} |
128 |
|
|
129 |
|
|
130 |
|
|
131 |
|
|
132 |
} // end namespace |
} // end namespace |