/[escript]/branches/ripleygmg_from_3668/ripley/src/RipleyDomain.cpp
ViewVC logotype

Diff of /branches/ripleygmg_from_3668/ripley/src/RipleyDomain.cpp

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

revision 3691 by caltinay, Wed Nov 23 23:07:37 2011 UTC revision 3697 by caltinay, Mon Nov 28 04:52:00 2011 UTC
# Line 89  pair<int,int> RipleyDomain::getDataShape Line 89  pair<int,int> RipleyDomain::getDataShape
89      const int ptsPerSample = (m_numDim==2 ? 4 : 8);      const int ptsPerSample = (m_numDim==2 ? 4 : 8);
90      switch (fsType) {      switch (fsType) {
91          case Nodes:          case Nodes:
             return pair<int,int>(1, getNumNodes());  
92          case DegreesOfFreedom:          case DegreesOfFreedom:
93              return pair<int,int>(1, getNumNodes());              return pair<int,int>(1, getNumNodes());
94          case Elements:          case Elements:
# Line 97  pair<int,int> RipleyDomain::getDataShape Line 96  pair<int,int> RipleyDomain::getDataShape
96          case FaceElements:          case FaceElements:
97              return pair<int,int>(ptsPerSample/2, getNumFaceElements());              return pair<int,int>(ptsPerSample/2, getNumFaceElements());
98              /*              /*
99            case Points:
100                return pair<int,int>(1, getNumNodes());
101          case ReducedNodes:          case ReducedNodes:
102            case ReducedDegreesOfFreedom:
103              return pair<int,int>(1, getNumReducedNodes());              return pair<int,int>(1, getNumReducedNodes());
104          case ReducedElements:          case ReducedElements:
105              return pair<int,int>(1, getNumReducedElements());              return pair<int,int>(1, getNumReducedElements());
106          case ReducedFaceElements:          case ReducedFaceElements:
107              return pair<int,int>(1, getNumReducedFaceElements());              return pair<int,int>(1, getNumReducedFaceElements());
         case Points:  
             return pair<int,int>(1, getNumNodes());  
         case ReducedDegreesOfFreedom:  
             return pair<int,int>(1, getNumReducedNodes());  
108              */              */
109          default:          default:
110              break;              break;
# Line 355  escript::ASM_ptr RipleyDomain::newSystem Line 353  escript::ASM_ptr RipleyDomain::newSystem
353      return sma;      return sma;
354  }  }
355    
356    void RipleyDomain::setNewX(const escript::Data& arg)
357    {
358        throw RipleyException("setNewX(): Operation not supported");
359    }
360    
361  //  //
362  // the methods that follow have to be implemented by the subclasses  // the methods that follow have to be implemented by the subclasses
363  //  //
# Line 384  const int* RipleyDomain::borrowSampleRef Line 387  const int* RipleyDomain::borrowSampleRef
387      throw RipleyException("borrowSampleReferenceIDs() not implemented");      throw RipleyException("borrowSampleReferenceIDs() not implemented");
388  }  }
389    
 void RipleyDomain::setNewX(const escript::Data& arg)  
 {  
     throw RipleyException("setNewX(): Operation not supported");  
 }  
   
390  void RipleyDomain::interpolateOnDomain(escript::Data& target,  void RipleyDomain::interpolateOnDomain(escript::Data& target,
391                                         const escript::Data& in) const                                         const escript::Data& in) const
392  {  {
# Line 513  dim_t RipleyDomain::getNumDataPointsGlob Line 511  dim_t RipleyDomain::getNumDataPointsGlob
511      throw RipleyException("getNumDataPointsGlobal() not implemented");      throw RipleyException("getNumDataPointsGlobal() not implemented");
512  }  }
513    
514    IndexVector RipleyDomain::getNumNodesPerDim() const
515    {
516        throw RipleyException("getNumNodesPerDim() not implemented");
517    }
518    
519    IndexVector RipleyDomain::getNumElementsPerDim() const
520    {
521        throw RipleyException("getNumElementsPerDim() not implemented");
522    }
523    
524    IndexVector RipleyDomain::getNumFacesPerBoundary() const
525    {
526        throw RipleyException("getNumFacesPerBoundary() not implemented");
527    }
528    
529    IndexVector RipleyDomain::getNodeDistribution() const
530    {
531        throw RipleyException("getNodeDistribution() not implemented");
532    }
533    
534    pair<double,double> RipleyDomain::getFirstCoordAndSpacing(dim_t dim) const
535    {
536        throw RipleyException("getFirstCoordAndSpacing() not implemented");
537    }
538    
539  dim_t RipleyDomain::getNumFaceElements() const  dim_t RipleyDomain::getNumFaceElements() const
540  {  {
541      throw RipleyException("getNumFaceElements() not implemented");      throw RipleyException("getNumFaceElements() not implemented");

Legend:
Removed from v.3691  
changed lines
  Added in v.3697

  ViewVC Help
Powered by ViewVC 1.1.26