Ice Sheet System Model  4.18
Code documentation
Public Member Functions | Data Fields
bamg::SubDomain Class Reference

#include <SubDomain.h>

Public Member Functions

void Set (const Mesh &, long, Mesh &)
 

Data Fields

Trianglehead
 
long ReferenceNumber
 
int direction
 
Edgeedge
 

Detailed Description

Definition at line 12 of file SubDomain.h.

Member Function Documentation

◆ Set()

void bamg::SubDomain::Set ( const Mesh Th,
long  i,
Mesh ThNew 
)

Definition at line 14 of file SubDomain.cpp.

14  {/*{{{*/
15  *this = Th.subdomains[i];
16  if( head-Th.triangles<0 || head-Th.triangles>=Th.nbt){
17  _error_("head-Th.triangles<0 || head-Th.triangles>=Th.nbt");
18  }
19  head = ThNew.triangles + Th.GetId(head) ;
20  if(edge-Th.edges<0 || edge-Th.edges>=Th.nbe){
21  _error_("edge-Th.edges<0 || edge-Th.edges>=Th.nbe");
22  }
23  edge = ThNew.edges+ Th.GetId(edge);
24  }

Field Documentation

◆ head

Triangle* bamg::SubDomain::head

Definition at line 16 of file SubDomain.h.

◆ ReferenceNumber

long bamg::SubDomain::ReferenceNumber

Definition at line 17 of file SubDomain.h.

◆ direction

int bamg::SubDomain::direction

Definition at line 18 of file SubDomain.h.

◆ edge

Edge* bamg::SubDomain::edge

Definition at line 19 of file SubDomain.h.


The documentation for this class was generated from the following files:
bamg::SubDomain::edge
Edge * edge
Definition: SubDomain.h:19
bamg::SubDomain::head
Triangle * head
Definition: SubDomain.h:16
_error_
#define _error_(StreamArgs)
Definition: exceptions.h:49