/[escript]/release/5.2/dudley/test/DudleyDomainTestCase.cpp
ViewVC logotype

Contents of /release/5.2/dudley/test/DudleyDomainTestCase.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6692 - (show annotations)
Mon Jun 25 02:31:06 2018 UTC (3 years, 1 month ago) by jfenwick
File size: 1253 byte(s)
Fix

1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2018 by The University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Apache License, version 2.0
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16
17 #include <escript/AbstractContinuousDomain.h>
18
19 #include "DudleyDomainTestCase.h"
20
21 #include <dudley/DomainFactory.h>
22
23 #include <cppunit/TestCaller.h>
24 #include <boost/scoped_ptr.hpp>
25
26 using namespace escript;
27 using namespace dudley;
28 using namespace CppUnit;
29
30 void DudleyDomainTestCase::testAll()
31 {
32 JMPI info = makeInfo(MPI_COMM_WORLD);
33 Domain_ptr dom(brick(info));
34 CPPUNIT_ASSERT(dom->getDim() == 3);
35 }
36
37 TestSuite* DudleyDomainTestCase::suite()
38 {
39 TestSuite *testSuite = new TestSuite("DudleyDomainTestCase");
40
41 testSuite->addTest(new TestCaller<DudleyDomainTestCase>(
42 "testAll", &DudleyDomainTestCase::testAll));
43 return testSuite;
44 }
45

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26