/[escript]/trunk/finley/test/MeshAdapterTestCase.cpp
ViewVC logotype

Contents of /trunk/finley/test/MeshAdapterTestCase.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4934 - (show annotations)
Tue May 13 00:28:11 2014 UTC (7 years, 6 months ago) by jfenwick
File size: 1464 byte(s)
This commit is brought to you by the number 4934 and the tool "meld".
Merge of partially complete split world code from branch.



1
2 /*****************************************************************************
3 *
4 * Copyright (c) 2003-2014 by University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Open Software License version 3.0
9 * http://www.opensource.org/licenses/osl-3.0.php
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
18 #include "MeshAdapterTestCase.h"
19
20 #include "finley/CppAdapter/MeshAdapter.h"
21 #include "finley/CppAdapter/MeshAdapterFactory.h"
22
23 #include "escript/AbstractContinuousDomain.h"
24
25 #include <cppunit/TestCaller.h>
26 #include <boost/scoped_ptr.hpp>
27
28 using namespace escript;
29 using namespace finley;
30 using namespace CppUnit;
31
32 void MeshAdapterTestCase::testAll()
33 {
34 // test construction of a mesh using the brick factory method
35 // boost::scoped_ptr<AbstractContinuousDomain> myMesh(brick());
36 esysUtils::JMPI info=esysUtils::makeInfo(MPI_COMM_WORLD);
37 brick(info); // brick now returns a Domain_ptr which will auto delete
38 }
39
40 TestSuite* MeshAdapterTestCase::suite()
41 {
42 TestSuite *testSuite = new TestSuite("MeshAdapterTestCase");
43
44 testSuite->addTest(new TestCaller<MeshAdapterTestCase>(
45 "testAll",&MeshAdapterTestCase::testAll));
46 return testSuite;
47 }
48

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26