/[escript]/trunk/escript/src/DataC.cpp
ViewVC logotype

Diff of /trunk/escript/src/DataC.cpp

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

revision 474 by jgs, Mon Jan 30 04:23:44 2006 UTC revision 1388 by trankine, Fri Jan 11 07:45:58 2008 UTC
# Line 1  Line 1 
1  // $Id$  
2  /*  /* $Id$ */
3   ******************************************************************************  
4   *                                                                            *  /*******************************************************
5   *       COPYRIGHT  ACcESS 2004 -  All Rights Reserved                        *   *
6   *                                                                            *   *           Copyright 2003-2007 by ACceSS MNRF
7   * This software is the property of ACcESS. No part of this code              *   *       Copyright 2007 by University of Queensland
8   * may be copied in any form or by any means without the expressed written    *   *
9   * consent of ACcESS.  Copying, use or modification of this software          *   *                http://esscc.uq.edu.au
10   * by any unauthorised person is illegal unless that person has a software    *   *        Primary Business: Queensland, Australia
11   * license agreement with ACcESS.                                             *   *  Licensed under the Open Software License version 3.0
12   *                                                                            *   *     http://www.opensource.org/licenses/osl-3.0.php
13   ******************************************************************************   *
14  */   *******************************************************/
15    
16  extern "C" {  extern "C" {
17  #include "DataC.h"  #include "DataC.h"
# Line 42  int isDataPointShapeEqual(struct escript Line 42  int isDataPointShapeEqual(struct escript
42    }    }
43  }  }
44    
45    int  getNumDataPointsPerSample(struct escriptDataC* data)
46    {
47      if (data == (struct escriptDataC*)0) {
48           return 0;
49      } else {
50         escript::Data* temp=(escript::Data*)(data->m_dataPtr);
51         if (temp->isEmpty()) {
52            return 0;
53         } else {
54              return (temp->getNumDataPointsPerSample());
55         }
56      }
57    }
58    
59  int numSamplesEqual(struct escriptDataC* data, int numDataPointsPerSample,  int numSamplesEqual(struct escriptDataC* data, int numDataPointsPerSample,
60              int numSamples)              int numSamples)
61  {  {
# Line 135  double* getSampleData(struct escriptData Line 149  double* getSampleData(struct escriptData
149       }       }
150    }    }
151  }  }
152    
153    double* getSampleDataFast(struct escriptDataC* data, int sampleNo)
154    {
155      escript::Data* temp=(escript::Data*)(data->m_dataPtr);
156      return temp->getSampleData(sampleNo);
157    }

Legend:
Removed from v.474  
changed lines
  Added in v.1388

  ViewVC Help
Powered by ViewVC 1.1.26