/[escript]/trunk/esys2/escript/inc/esys/SerialAccessor.cpp
ViewVC logotype

Annotation of /trunk/esys2/escript/inc/esys/SerialAccessor.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 82 - (hide annotations)
Tue Oct 26 06:53:54 2004 UTC (16 years ago) by jgs
File size: 726 byte(s)
Initial revision

1 jgs 82 #include "esys/SerialAccessor.h"
2    
3     using namespace std;
4     using namespace boost::python;
5    
6     SerialAccessor::SerialAccessor(const std::vector<int>& pointDataShape,
7     int blockSize, int numBlocks):
8     m_shape(pointDataShape),
9     m_blockSize(blockSize),
10     m_numBlocks(numBlocks)
11     {
12     }
13    
14     SerialAccessor::~SerialAccessor()
15     {
16     }
17    
18     void SerialAccessor::copy(const boost::python::numeric::array& pointData,ValueContainerType& values) const
19     {
20     vector<int> shape=extract<vector<int> > (pointData.getshape());
21     if (m_shape!=shape) {
22     AccessorException e("Couldn't copy. Input data shape doesn't match accessor shape.");
23     throw e;
24     }
25     }
26    
27     void SerialAccessor::evaluate(ValueContainerType& values, void (*operation)(double)) const
28     {
29     }

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26