1 |
|
2 |
/***************************************************************************** |
3 |
* |
4 |
* Copyright (c) 2003-2020 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-2017 by Centre for Geoscience Computing (GeoComp) |
14 |
* Development from 2019 by School of Earth and Environmental Sciences |
15 |
** |
16 |
*****************************************************************************/ |
17 |
|
18 |
#include <escript/AbstractContinuousDomain.h> |
19 |
|
20 |
#include "FinleyDomainTestCase.h" |
21 |
|
22 |
#include <finley/DomainFactory.h> |
23 |
|
24 |
#include <cppunit/TestCaller.h> |
25 |
#include <boost/scoped_ptr.hpp> |
26 |
|
27 |
using namespace escript; |
28 |
using namespace finley; |
29 |
using namespace CppUnit; |
30 |
|
31 |
void FinleyDomainTestCase::testAll() |
32 |
{ |
33 |
JMPI info = makeInfo(MPI_COMM_WORLD); |
34 |
Domain_ptr dom(brick(info)); |
35 |
CPPUNIT_ASSERT(dom->getDim() == 3); |
36 |
} |
37 |
|
38 |
TestSuite* FinleyDomainTestCase::suite() |
39 |
{ |
40 |
TestSuite *testSuite = new TestSuite("FinleyDomainTestCase"); |
41 |
|
42 |
testSuite->addTest(new TestCaller<FinleyDomainTestCase>( |
43 |
"testAll",&FinleyDomainTestCase::testAll)); |
44 |
return testSuite; |
45 |
} |
46 |
|