1 |
/* $Id$ */ |
2 |
/* |
3 |
****************************************************************************** |
4 |
* * |
5 |
* COPYRIGHT ACcESS 2005 - All Rights Reserved * |
6 |
* * |
7 |
* This software is the property of ACcESS. No part of this code * |
8 |
* may be copied in any form or by any means without the expressed written * |
9 |
* consent of ACcESS. Copying, use or modification of this software * |
10 |
* by any unauthorised person is illegal unless that person has a software * |
11 |
* license agreement with ACcESS. * |
12 |
* * |
13 |
****************************************************************************** |
14 |
*/ |
15 |
|
16 |
#if !defined bruce_BruceFactory_20050901_H |
17 |
#define bruce_BruceFactory_20050901_H |
18 |
#ifdef MSVC |
19 |
#ifdef BRUCE_EXPORTS |
20 |
#define BRUCE_DLL __declspec(dllexport) |
21 |
#else |
22 |
#define BRUCE_DLL __declspec(dllimport) |
23 |
#endif |
24 |
#else |
25 |
#define BRUCE_DLL |
26 |
#endif |
27 |
#include "escript/Data/AbstractContinuousDomain.h" |
28 |
#include "Bruce/Bruce.h" |
29 |
|
30 |
namespace bruce { |
31 |
|
32 |
/** |
33 |
\brief |
34 |
A suite of factory methods for creating various Bruces. |
35 |
|
36 |
Description: |
37 |
A suite of factory methods for creating various Bruces. |
38 |
*/ |
39 |
|
40 |
/** |
41 |
\brief |
42 |
Creates a rectangular mesh with n0 x n1 x n2 elements over the brick |
43 |
[l0,0,0] x [0,l1,0] x [0,0,l2]. |
44 |
|
45 |
\param n0,n1,n2 Input - number of elements in each dimension |
46 |
\param l0,l1,l2 Input - length of each side of brick |
47 |
*/ |
48 |
BRUCE_DLL escript::AbstractContinuousDomain* brick(int n0=2, int n1=2, int n2=2, |
49 |
double l0=1.0, double l1=1.0, double l2=1.0); |
50 |
|
51 |
/** |
52 |
\brief |
53 |
Creates a rectangular mesh with n0 x n1 elements over the rectangle |
54 |
[l0,0] x [0,l1]. |
55 |
|
56 |
\param n0,n1 Input - number of elements in each dimension |
57 |
\param l0,l1 Input - length of each side of rectangle |
58 |
*/ |
59 |
BRUCE_DLL escript::AbstractContinuousDomain* rectangle(int n0=2, int n1=2, |
60 |
double l0=1.0, double l1=1.0); |
61 |
|
62 |
} // end of namespace |
63 |
|
64 |
#endif |