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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2548 - (hide annotations)
Mon Jul 20 06:20:06 2009 UTC (10 years, 4 months ago) by jfenwick
File MIME type: text/plain
File size: 1513 byte(s)
Updating copyright notices
1 ksteube 1312
2     /*******************************************************
3 ksteube 1811 *
4 jfenwick 2548 * Copyright (c) 2003-2009 by University of Queensland
5 ksteube 1811 * Earth Systems Science Computational Center (ESSCC)
6     * http://www.uq.edu.au/esscc
7     *
8     * Primary Business: Queensland, Australia
9     * Licensed under the Open Software License version 3.0
10     * http://www.opensource.org/licenses/osl-3.0.php
11     *
12     *******************************************************/
13 ksteube 1312
14 ksteube 1811
15 jgs 82 #include "CompareFuncs.h"
16    
17     /*
18     * Return true if all of the calls match the expected values.
19     * Return false if results don't match.
20     */
21    
22     int compareTypeCode(struct escriptDataC* data, int typeResult)
23     {
24     int result=0;
25     result+=(getFunctionSpaceType(data)==typeResult);
26     return result;
27     }
28    
29     int compareNumSamples(struct escriptDataC* data, int numDataPointsPerSample, int numSamples)
30     {
31     return numSamplesEqual(data,numDataPointsPerSample,numSamples);
32     }
33    
34     int compareIsExpanded(struct escriptDataC* data, int expanded)
35     {
36     return (isExpanded(data)==expanded);
37     }
38    
39     int compareIsEmpty(struct escriptDataC* data, int empty)
40     {
41     return (isEmpty(data)==empty);
42     }
43    
44     /*
45     int comparePointShape(struct escriptDataC* data, int rank, int* dimensions)
46     {
47     return pointShapeEqual(data,rank,dimensions);
48     }
49    
50     int compareSampleDataWrite(struct escriptDataC* data, int sampleNo, double* sampleData)
51     {
52     return (getSampleDataWrite(data,sampleNo)==sampleData);
53     }
54    
55     int compareSampleDataRead(struct escriptDataC* data, int tag, double* sampleData)
56     {
57     int sampleNo=0;
58     return (getSampleDataRead(data,tag,sampleNo)==sampleData);
59     }
60     */

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26