/[escript]/trunk/escript/src/EscriptParams.cpp
ViewVC logotype

Diff of /trunk/escript/src/EscriptParams.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2794 by jfenwick, Wed Nov 25 04:02:01 2009 UTC revision 2795 by jfenwick, Wed Dec 2 02:39:23 2009 UTC
# Line 28  EscriptParams::EscriptParams() Line 28  EscriptParams::EscriptParams()
28     too_many_lines=80;     too_many_lines=80;
29     autolazy=0;     autolazy=0;
30     too_many_levels=70;     too_many_levels=70;
31     too_many_nodes=15000;  //    too_many_nodes=15000;
32     resolve_collective=0;     resolve_collective=0;
33     print_lazy_tree=0;     lazy_str_fmt=0;
34       lazy_verbose=0;
35    
36  #ifdef USE_LAPACK  #ifdef USE_LAPACK
37     lapack_support=1;     lapack_support=1;
# Line 72  EscriptParams::getInt(const char* name, Line 73  EscriptParams::getInt(const char* name,
73     {     {
74      return too_many_levels;      return too_many_levels;
75     }     }
76     if (!strcmp(name,"TOO_MANY_NODES"))  //    if (!strcmp(name,"TOO_MANY_NODES"))
77     {  //    {
78      return too_many_nodes;  //  return too_many_nodes;
79     }  //    }
80     if (!strcmp(name,"RESOLVE_COLLECTIVE"))     if (!strcmp(name,"RESOLVE_COLLECTIVE"))
81     {     {
82      return resolve_collective;      return resolve_collective;
83     }     }
84     if (!strcmp(name,"PRINT_LAZY_TREE"))     if (!strcmp(name,"LAZY_STR_FMT"))
85     {     {
86      return print_lazy_tree;      return lazy_str_fmt;
87     }     }
88     if (!strcmp(name,"LAPACK_SUPPORT"))     if (!strcmp(name,"LAPACK_SUPPORT"))
89     {     {
# Line 96  EscriptParams::getInt(const char* name, Line 97  EscriptParams::getInt(const char* name,
97      return 0;      return 0;
98  #endif  #endif
99     }     }
100       if (!strcmp(name,"LAZY_VERBOSE"))
101       {
102        return lazy_verbose;
103       }
104     return sentinel;     return sentinel;
105  }  }
106        
# Line 114  EscriptParams::setInt(const char* name, Line 119  EscriptParams::setInt(const char* name,
119     {     {
120      too_many_levels=value;      too_many_levels=value;
121     }     }
122     if (!strcmp(name,"TOO_MANY_NODES"))  //    if (!strcmp(name,"TOO_MANY_NODES"))
123     {  //    {
124      too_many_nodes=value;  //  too_many_nodes=value;
125     }  //    }
126     if (!strcmp(name,"RESOLVE_COLLECTIVE"))     if (!strcmp(name,"RESOLVE_COLLECTIVE"))
127     {     {
128      resolve_collective=value;      resolve_collective=value;
129     }     }
130     if (!strcmp(name,"PRINT_LAZY_TREE"))     if (!strcmp(name,"LAZY_STR_FMT"))
131       {
132        lazy_str_fmt=value;
133       }
134       if (!strcmp(name,"LAZY_VERBOSE"))
135     {     {
136      print_lazy_tree=value;      lazy_verbose=value;
137     }     }
138     // Note: there is no way to modifiy the LAPACK_SUPPORT variable atm     // Note: there is no way to modifiy the LAPACK_SUPPORT variable atm
139  }  }
# Line 151  EscriptParams::listEscriptParams() Line 160  EscriptParams::listEscriptParams()
160     l.append(make_tuple("AUTOLAZY", 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."));
161     l.append(make_tuple("RESOLVE_COLLECTIVE",resolve_collective ,"(TESTING ONLY) {0.1} Collective operations will resolve their data."));     l.append(make_tuple("RESOLVE_COLLECTIVE",resolve_collective ,"(TESTING ONLY) {0.1} Collective operations will resolve their data."));
162     l.append(make_tuple("TOO_MANY_LEVELS", too_many_levels, "(TESTING ONLY) maximum levels allowed in an expression."));     l.append(make_tuple("TOO_MANY_LEVELS", too_many_levels, "(TESTING ONLY) maximum levels allowed in an expression."));
163     l.append(make_tuple("TOO_MANY_NODES", too_many_nodes, "(TESTING ONLY) maximum number of nodes in a expression."));  //    l.append(make_tuple("TOO_MANY_NODES", too_many_nodes, "(TESTING ONLY) maximum number of nodes in a expression."));
164       l.append(make_tuple("LAZY_STR_FMT", lazy_str_fmt, "{0,1,2}(TESTING ONLY) change output format for lazy expressions."));
165       l.append(make_tuple("LAZY_VERBOSE", lazy_verbose, "{0,1} Print a warning when expressions are resolved because they are too large."));
166     return l;     return l;
167  }  }
168    

Legend:
Removed from v.2794  
changed lines
  Added in v.2795

  ViewVC Help
Powered by ViewVC 1.1.26