/[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 2471 by jfenwick, Tue Feb 17 01:22:48 2009 UTC revision 2472 by jfenwick, Thu Jun 11 23:33:47 2009 UTC
# Line 26  EscriptParams::EscriptParams() Line 26  EscriptParams::EscriptParams()
26  {  {
27     too_many_lines=80;     too_many_lines=80;
28     autolazy=0;     autolazy=0;
29       too_many_levels=7;
30       too_many_nodes=127;
31              // These #defs are for performance testing only              // These #defs are for performance testing only
32              // in general, I don't want people tweaking the              // in general, I don't want people tweaking the
33              // default value using compiler options              // default value using compiler options
# Line 49  EscriptParams::getInt(const char* name, Line 51  EscriptParams::getInt(const char* name,
51     {     {
52      return autolazy;      return autolazy;
53     }     }
54       if (!strcmp(name,"TOO_MANY_LEVELS"))
55       {
56        return too_many_levels;
57       }
58       if (!strcmp(name,"TOO_MANY_NODES"))
59       {
60        return too_many_nodes;
61       }
62     return sentinel;     return sentinel;
63  }  }
64        
# Line 63  EscriptParams::setInt(const char* name, Line 73  EscriptParams::setInt(const char* name,
73     {     {
74      autolazy=!(value==0);   // set to 1 or zero      autolazy=!(value==0);   // set to 1 or zero
75     }     }
76       if (!strcmp(name,"TOO_MANY_LEVELS"))
77       {
78        too_many_levels=value;
79       }
80       if (!strcmp(name,"TOO_MANY_NODES"))
81       {
82        too_many_nodes=value;
83       }
84  }  }
85    
86  void  void

Legend:
Removed from v.2471  
changed lines
  Added in v.2472

  ViewVC Help
Powered by ViewVC 1.1.26