/[escript]/branches/diaplayground/ripley/src/Brick.cpp
ViewVC logotype

Diff of /branches/diaplayground/ripley/src/Brick.cpp

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

revision 3743 by caltinay, Fri Dec 9 05:03:08 2011 UTC revision 3744 by caltinay, Tue Dec 13 06:41:54 2011 UTC
# Line 77  string Brick::getDescription() const Line 77  string Brick::getDescription() const
77    
78  bool Brick::operator==(const AbstractDomain& other) const  bool Brick::operator==(const AbstractDomain& other) const
79  {  {
80      if (dynamic_cast<const Brick*>(&other))      const Brick* o=dynamic_cast<const Brick*>(&other);
81          return this==&other;      if (o) {
82            return (RipleyDomain::operator==(other) &&
83                    m_gNE0==o->m_gNE0 && m_gNE1==o->m_gNE1 && m_gNE2==o->m_gNE2
84                    && m_l0==o->m_l0 && m_l1==o->m_l1 && m_l2==o->m_l2
85                    && m_NX==o->m_NX && m_NY==o->m_NY && m_NZ==o->m_NZ);
86        }
87    
88      return false;      return false;
89  }  }
# Line 1221  pair<double,double> Brick::getFirstCoord Line 1226  pair<double,double> Brick::getFirstCoord
1226      throw RipleyException("getFirstCoordAndSpacing(): invalid argument");      throw RipleyException("getFirstCoordAndSpacing(): invalid argument");
1227  }  }
1228    
1229    //protected
1230    dim_t Brick::getNumDOF() const
1231    {
1232        return m_nodeDistribution[m_mpiInfo->rank+1]
1233            -m_nodeDistribution[m_mpiInfo->rank];
1234    }
1235    
1236  //protected  //protected
1237  dim_t Brick::getNumFaceElements() const  dim_t Brick::getNumFaceElements() const

Legend:
Removed from v.3743  
changed lines
  Added in v.3744

  ViewVC Help
Powered by ViewVC 1.1.26