/[escript]/branches/arrexp_2137_win_merge/escript/src/DataLazy.cpp
ViewVC logotype

Diff of /branches/arrexp_2137_win_merge/escript/src/DataLazy.cpp

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

revision 2220 by jfenwick, Wed Jan 14 04:31:34 2009 UTC revision 2221 by jfenwick, Mon Jan 19 06:11:25 2009 UTC
# Line 40  bool privdebug=false; Line 40  bool privdebug=false;
40  #define DISABLEDEBUG privdebug=false;  #define DISABLEDEBUG privdebug=false;
41  }  }
42    
43  #define SIZELIMIT  // #define SIZELIMIT
44  // #define SIZELIMIT if ((m_height>7) || (m_children>127)) {cerr << "\n!!!!!!! SIZE LIMIT EXCEEDED " << m_children << ";" << m_height << endl << toString() << endl; resolveToIdentity();}  // #define SIZELIMIT if ((m_height>7) || (m_children>127)) {cerr << "\n!!!!!!! SIZE LIMIT EXCEEDED " << m_children << ";" << m_height << endl << toString() << endl; resolveToIdentity();}
45    #define SIZELIMIT if ((m_height>7) || (m_children>127)) {resolveToIdentity();}
46    
47  /*  /*
48  How does DataLazy work?  How does DataLazy work?
# Line 397  DataLazy::DataLazy(DataAbstract_ptr p) Line 397  DataLazy::DataLazy(DataAbstract_ptr p)
397     }     }
398     else     else
399     {     {
400        p->makeLazyShared();
401      DataReady_ptr dr=dynamic_pointer_cast<DataReady>(p);      DataReady_ptr dr=dynamic_pointer_cast<DataReady>(p);
402      makeIdentity(dr);      makeIdentity(dr);
403  LAZYDEBUG(cout << "Wrapping " << dr.get() << " id=" << m_id.get() << endl;)  LAZYDEBUG(cout << "Wrapping " << dr.get() << " id=" << m_id.get() << endl;)
# Line 1566  DataLazy::toString() const Line 1567  DataLazy::toString() const
1567  void  void
1568  DataLazy::intoString(ostringstream& oss) const  DataLazy::intoString(ostringstream& oss) const
1569  {  {
1570  //   oss << "[" << m_children <<";"<<m_height <<"]";  //    oss << "[" << m_children <<";"<<m_height <<"]";
1571    switch (getOpgroup(m_op))    switch (getOpgroup(m_op))
1572    {    {
1573    case G_IDENTITY:    case G_IDENTITY:

Legend:
Removed from v.2220  
changed lines
  Added in v.2221

  ViewVC Help
Powered by ViewVC 1.1.26