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 |
#include "bruce/Bruce/BruceFactory.h" |
17 |
#include "bruce/Bruce/BruceException.h" |
18 |
|
19 |
#include <iostream> |
20 |
#include <sstream> |
21 |
#include <boost/python/extract.hpp> |
22 |
|
23 |
using namespace std; |
24 |
using namespace escript; |
25 |
|
26 |
namespace bruce { |
27 |
|
28 |
AbstractContinuousDomain* brick(int n0,int n1,int n2, |
29 |
double l0,double l1,double l2) |
30 |
{ |
31 |
int numElements[]={n0,n1,n2}; |
32 |
double length[]={l0,l1,l2}; |
33 |
|
34 |
AbstractContinuousDomain* temp=new Bruce(); |
35 |
return temp; |
36 |
} |
37 |
|
38 |
AbstractContinuousDomain* rectangle(int n0,int n1, |
39 |
double l0, double l1) |
40 |
{ |
41 |
int numElements[]={n0,n1}; |
42 |
double length[]={l0,l1}; |
43 |
|
44 |
AbstractContinuousDomain* temp=new Bruce(); |
45 |
return temp; |
46 |
} |
47 |
|
48 |
} // end of namespace |