/[escript]/trunk/escript/test/DataC/CompareFuncs.c
ViewVC logotype

Annotation of /trunk/escript/test/DataC/CompareFuncs.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 155 - (hide annotations)
Wed Nov 9 02:02:19 2005 UTC (15 years, 5 months ago) by jgs
File MIME type: text/plain
File size: 1984 byte(s)
move all directories from trunk/esys2 into trunk and remove esys2

1 jgs 82 /*
2     *****************************************************************************
3     * *
4     * COPYRIGHT ACcESS - All Rights Reserved *
5     * *
6     * This software is the property of ACcESS. No part of this code *
7     * may be copied in any form or by any means without the expressed written *
8     * consent of ACcESS. Copying, use or modification of this software *
9     * by any unauthorised person is illegal unless that person has a software *
10     * license agreement with ACcESS. *
11     * *
12     *****************************************************************************
13     */
14     #include "CompareFuncs.h"
15    
16     /*
17     * Return true if all of the calls match the expected values.
18     * Return false if results don't match.
19     */
20    
21     int compareTypeCode(struct escriptDataC* data, int typeResult)
22     {
23     int result=0;
24     result+=(getFunctionSpaceType(data)==typeResult);
25     return result;
26     }
27    
28     int compareNumSamples(struct escriptDataC* data, int numDataPointsPerSample, int numSamples)
29     {
30     return numSamplesEqual(data,numDataPointsPerSample,numSamples);
31     }
32    
33     int compareIsExpanded(struct escriptDataC* data, int expanded)
34     {
35     return (isExpanded(data)==expanded);
36     }
37    
38     int compareIsEmpty(struct escriptDataC* data, int empty)
39     {
40     return (isEmpty(data)==empty);
41     }
42    
43     /*
44     int comparePointShape(struct escriptDataC* data, int rank, int* dimensions)
45     {
46     return pointShapeEqual(data,rank,dimensions);
47     }
48    
49     int compareSampleDataWrite(struct escriptDataC* data, int sampleNo, double* sampleData)
50     {
51     return (getSampleDataWrite(data,sampleNo)==sampleData);
52     }
53    
54     int compareSampleDataRead(struct escriptDataC* data, int tag, double* sampleData)
55     {
56     int sampleNo=0;
57     return (getSampleDataRead(data,tag,sampleNo)==sampleData);
58     }
59     */

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26