/[escript]/trunk/ripley/src/Rectangle.cpp
ViewVC logotype

Diff of /trunk/ripley/src/Rectangle.cpp

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

revision 3756 by caltinay, Fri Jan 6 02:35:19 2012 UTC revision 3757 by caltinay, Fri Jan 6 04:48:27 2012 UTC
# Line 262  const int* Rectangle::borrowSampleRefere Line 262  const int* Rectangle::borrowSampleRefere
262      throw RipleyException(msg.str());      throw RipleyException(msg.str());
263  }  }
264    
265  bool Rectangle::ownSample(int fsCode, index_t id) const  bool Rectangle::ownSample(int fsType, index_t id) const
266  {  {
267  #ifdef ESYS_MPI  #ifdef ESYS_MPI
268      if (fsCode == Nodes) {      switch (fsType) {
269          return (m_dofMap[id] < getNumDOF());          case Nodes:
270      } else {          case ReducedNodes: //FIXME: reduced
271          stringstream msg;              return (m_dofMap[id] < getNumDOF());
272          msg << "ownSample() not implemented for "          case DegreesOfFreedom:
273              << functionSpaceTypeAsString(fsCode);          case ReducedDegreesOfFreedom:
274          throw RipleyException(msg.str());              return true;
275            case Elements:
276            case ReducedElements:
277                // check ownership of element's bottom left node
278                return (m_dofMap[id%m_NE0+m_N0*(id/m_NE0)] < getNumDOF());
279            case FaceElements:
280            case ReducedFaceElements:
281            default:
282                break;
283      }      }
284    
285        stringstream msg;
286        msg << "ownSample() not implemented for "
287            << functionSpaceTypeAsString(fsType);
288        throw RipleyException(msg.str());
289  #else  #else
290      return true;      return true;
291  #endif  #endif

Legend:
Removed from v.3756  
changed lines
  Added in v.3757

  ViewVC Help
Powered by ViewVC 1.1.26