1 |
/* $Id$ */ |
2 |
/* |
3 |
************************************************************ |
4 |
* Copyright 2006 by ACcESS MNRF * |
5 |
* * |
6 |
* http://www.access.edu.au * |
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 |
************************************************************ |
12 |
*/ |
13 |
|
14 |
#if !defined bruce_BruceFactory_20050901_H |
15 |
#define bruce_BruceFactory_20050901_H |
16 |
#include "system_dep.h" |
17 |
#include "escript/AbstractContinuousDomain.h" |
18 |
|
19 |
namespace bruce { |
20 |
|
21 |
/** |
22 |
\brief |
23 |
A suite of factory methods for creating various Bruces. |
24 |
|
25 |
Description: |
26 |
A suite of factory methods for creating various Bruces. |
27 |
*/ |
28 |
|
29 |
/** |
30 |
\brief |
31 |
Creates a rectangular mesh with n0 x n1 x n2 elements over the brick |
32 |
[l0,0,0] x [0,l1,0] x [0,0,l2]. |
33 |
|
34 |
\param n0,n1,n2 Input - number of elements in each dimension |
35 |
\param l0,l1,l2 Input - length of each side of brick |
36 |
*/ |
37 |
BRUCE_DLL_API escript::AbstractContinuousDomain* brick(int n0=2, int n1=2, int n2=2, |
38 |
double l0=1.0, double l1=1.0, double l2=1.0); |
39 |
|
40 |
/** |
41 |
\brief |
42 |
Creates a rectangular mesh with n0 x n1 elements over the rectangle |
43 |
[l0,0] x [0,l1]. |
44 |
|
45 |
\param n0,n1 Input - number of elements in each dimension |
46 |
\param l0,l1 Input - length of each side of rectangle |
47 |
*/ |
48 |
BRUCE_DLL_API escript::AbstractContinuousDomain* rectangle(int n0=2, int n1=2, |
49 |
double l0=1.0, double l1=1.0); |
50 |
|
51 |
} // end of namespace |
52 |
|
53 |
#endif |