Last change
on this file since 15061 was 13036, checked in by Mathieu Morlighem, 13 years ago |
CHG: renaming _error2_ _error_
|
File size:
632 bytes
|
Line | |
---|
1 | #include <cstdio>
|
---|
2 | #include <cstring>
|
---|
3 | #include <cmath>
|
---|
4 | #include <ctime>
|
---|
5 |
|
---|
6 | #include "SubDomain.h"
|
---|
7 | #include "Mesh.h"
|
---|
8 |
|
---|
9 | namespace bamg {
|
---|
10 |
|
---|
11 | /*Constructors/Destructors*/
|
---|
12 |
|
---|
13 | /*Methods*/
|
---|
14 | /*FUNCTION SubDomain::Set {{{*/
|
---|
15 | void SubDomain::Set(const Mesh & Th ,long i,Mesh & ThNew){
|
---|
16 | *this = Th.subdomains[i];
|
---|
17 | if ( head-Th.triangles<0 || head-Th.triangles>=Th.nbt){
|
---|
18 | _error_("head-Th.triangles<0 || head-Th.triangles>=Th.nbt");
|
---|
19 | }
|
---|
20 | head = ThNew.triangles + Th.GetId(head) ;
|
---|
21 | if (edge-Th.edges<0 || edge-Th.edges>=Th.nbe);{
|
---|
22 | _error_("edge-Th.edges<0 || edge-Th.edges>=Th.nbe");
|
---|
23 | }
|
---|
24 | edge = ThNew.edges+ Th.GetId(edge);
|
---|
25 | }
|
---|
26 | /*}}}*/
|
---|
27 |
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.