Changeset 3622
- Timestamp:
- 04/27/10 08:27:06 (15 years ago)
- Location:
- issm/trunk/src/c/objects
- Files:
-
- 2 deleted
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Beam.cpp
r3621 r3622 59 59 } 60 60 /*}}}*/ 61 /*FUNCTION Beam::Beam(int i, IoModel* iomodel){{{1*/ 62 Beam::Beam(int index,IoModel* iomodel){ 63 61 /*FUNCTION Beam::Beam(int id, int i, IoModel* iomodel){{{1*/ 62 Beam::Beam(int beam_id, int index,IoModel* iomodel){ 64 63 65 64 int i; 66 65 67 66 /*beam constructor input: */ 68 int beam_id;69 67 int beam_matice_id; 70 68 int beam_matpar_id; … … 73 71 74 72 /*id: */ 75 beam_id=index+1;76 73 this->id=beam_id; 77 74 -
issm/trunk/src/c/objects/Beam.h
r3621 r3622 42 42 Beam(int beam_id,int* beam_node_ids, int beam_matice_id, int beam_matpar_id); 43 43 Beam(int beam_id,Hook* beam_hnodes, Hook* beam_hmatice, Hook* beam_hmatpar, Parameters* beam_parameters, Inputs* beam_inputs); 44 Beam(int i, IoModel* iomodel);44 Beam(int beam_id,int i, IoModel* iomodel); 45 45 ~Beam(); 46 46 /*}}}*/ -
issm/trunk/src/c/objects/Icefront.cpp
r3597 r3622 19 19 20 20 /*Object constructors and destructor*/ 21 /*FUNCTION Icefront constructor{{{1*/21 /*FUNCTION Icefront::Icefront() {{{1*/ 22 22 Icefront::Icefront(){ 23 23 return; 24 24 } 25 25 /*}}}*/ 26 /*FUNCTION Icefront constructor{{{1*/26 /*FUNCTION Icefront::Icefront(char icefront_type[ICEFRONTSTRING],int icefront_fill,int icefront_sid, ...) {{{1*/ 27 27 Icefront::Icefront(char icefront_type[ICEFRONTSTRING],int icefront_fill,int icefront_sid, int icefront_mparid, int icefront_eid, int icefront_element_type, 28 28 int icefront_node_ids[MAX_ICEFRONT_GRIDS],double icefront_h[MAX_ICEFRONT_GRIDS],double icefront_b[MAX_ICEFRONT_GRIDS]){ … … 33 33 } 34 34 /*}}}*/ 35 /*FUNCTION I nit: used by constructor{{{1*/35 /*FUNCTION Icefront::Init {{{1*/ 36 36 void Icefront::Init(char icefront_type[ICEFRONTSTRING],int icefront_fill,int icefront_sid, int icefront_mparid, int icefront_eid, int icefront_element_type, 37 37 int icefront_node_ids[MAX_ICEFRONT_GRIDS],double icefront_h[MAX_ICEFRONT_GRIDS],double icefront_b[MAX_ICEFRONT_GRIDS]){ … … 62 62 } 63 63 /*}}}*/ 64 /*FUNCTION Icefront constructor from iomodel{{{1*/65 Icefront::Icefront(int i , IoModel* iomodel){64 /*FUNCTION Icefront::Icefront(int id, int i, IoModel* iomodel) {{{1*/ 65 Icefront::Icefront(int icefront_id,int i, IoModel* iomodel){ 66 66 67 67 int segment_width; … … 74 74 int icefront_fill; 75 75 int icefront_element_type; 76 int icefront_sid;77 76 int icefront_eid; 78 77 int icefront_mparid; … … 94 93 icefront_mparid=iomodel->numberofelements+1; //matlab indexing 95 94 icefront_mparid=iomodel->numberofelements+1; //matlab indexing 96 icefront_sid=i+1; //matlab indexing97 95 icefront_fill=(int)*(iomodel->pressureload+segment_width*i+segment_width-1); 98 96 icefront_eid=(int) *(iomodel->pressureload+segment_width*i+segment_width-2); //matlab indexing … … 148 146 else ISSMERROR("Not supported yet!"); 149 147 150 this->Init(icefront_type,icefront_fill,icefront_ sid,icefront_mparid,icefront_eid,icefront_element_type,icefront_node_ids,icefront_h,icefront_b);151 } 152 153 154 /*}}}*/ 155 /*FUNCTION Icefront destructor{{{1*/148 this->Init(icefront_type,icefront_fill,icefront_id,icefront_mparid,icefront_eid,icefront_element_type,icefront_node_ids,icefront_h,icefront_b); 149 } 150 151 152 /*}}}*/ 153 /*FUNCTION Icefront::~Icefront() {{{1*/ 156 154 Icefront::~Icefront(){ 157 155 return; -
issm/trunk/src/c/objects/Icefront.h
r3511 r3622 54 54 Icefront(char type[ICEFRONTSTRING],int fill,int sid, int mparid, int eid, int element_type, int node_ids[MAX_ICEFRONT_GRIDS],double h[MAX_ICEFRONT_GRIDS],double b[MAX_ICEFRONT_GRIDS]); 55 55 void Init(char type[ICEFRONTSTRING],int fill,int sid, int mparid, int eid, int element_type, int node_ids[MAX_ICEFRONT_GRIDS],double h[MAX_ICEFRONT_GRIDS],double b[MAX_ICEFRONT_GRIDS]); 56 Icefront(int i, IoModel* iomodel);56 Icefront(int sid, int i, IoModel* iomodel); 57 57 ~Icefront(); 58 58 /*}}}*/ -
issm/trunk/src/c/objects/Matice.cpp
r3612 r3622 18 18 19 19 /*Object constructors and destructor*/ 20 /*FUNCTION Matice:: default constructor{{{1*/20 /*FUNCTION Matice::Matice(){{{1*/ 21 21 Matice::Matice(){ 22 22 return; 23 23 } 24 24 /*}}}*/ 25 /*FUNCTION Matice:: constructor{{{1*/25 /*FUNCTION Matice::Matice(int in_mid,double in_B,double in_n){{{1*/ 26 26 Matice::Matice(int in_mid,double in_B,double in_n){ 27 27 this->Init(in_mid,in_B,in_n); 28 28 } 29 29 /*}}}*/ 30 /*FUNCTION Matice:: init {{{1*/30 /*FUNCTION Matice::Init {{{1*/ 31 31 void Matice::Init(int in_mid,double in_B,double in_n){ 32 32 this->mid=in_mid; … … 35 35 } 36 36 /*}}}*/ 37 /*FUNCTION Matice:: constructor from iomodel{{{1*/38 Matice::Matice(int i, IoModel* iomodel, int num_vertices){37 /*FUNCTION Matice::Matice(int id, int i, IoModel* iomodel, int num_vertices){{{1*/ 38 Matice::Matice(int matice_mid,int i, IoModel* iomodel, int num_vertices){ 39 39 40 40 int j; 41 41 42 42 /*needed for Init routine:*/ 43 int matice_mid;44 43 double matice_B; 45 44 double matice_n; … … 47 46 /*intermediary: */ 48 47 double B_avg; 49 50 /*id: */51 matice_mid=i+1; //same as element it is created for52 48 53 49 /*Compute B on the element if provided*/ … … 85 81 } 86 82 /*}}}*/ 87 /*FUNCTION Matice:: destructor{{{1*/83 /*FUNCTION Matice::~Matice(){{{1*/ 88 84 Matice::~Matice(){ 89 85 return; -
issm/trunk/src/c/objects/Matice.h
r3463 r3622 21 21 Matice(); 22 22 Matice(int mid,double B,double n); 23 Matice(int i, IoModel* iomodel, int num_vertices);23 Matice(int mid,int i, IoModel* iomodel, int num_vertices); 24 24 void Init(int mid,double B,double n); 25 25 ~Matice(); -
issm/trunk/src/c/objects/Matpar.cpp
r3567 r3622 19 19 20 20 /*Object constructors and destructor*/ 21 /*FUNCTION Matpar:: default constructor{{{1*/21 /*FUNCTION Matpar::Matpar() {{{1*/ 22 22 Matpar::Matpar(){ 23 23 return; 24 24 } 25 25 /*}}}1*/ 26 /*FUNCTION Matpar:: constructorr{{{1*/26 /*FUNCTION Matpar::Matpar(int matpar_mid, double matpar_rho_ice, double matpar_rho_water, double matpar_heatcapacity, ...){{{1*/ 27 27 Matpar::Matpar(int matpar_mid, double matpar_rho_ice, double matpar_rho_water, double matpar_heatcapacity, double matpar_thermalconductivity, double matpar_latentheat, double matpar_beta, double matpar_meltingpoint, double matpar_mixed_layer_capacity, double matpar_thermal_exchange_velocity, double matpar_g){ 28 28 … … 31 31 } 32 32 /*}}}1*/ 33 /*FUNCTION Matpar::constructor from iomodel{{{1*/ 34 Matpar::Matpar(IoModel* iomodel){ 35 36 int matpar_mid; 33 /*FUNCTION Matpar::Matpar(int matpar_mid,IoModel* iomodel){{{1*/ 34 Matpar::Matpar(int matpar_mid, IoModel* iomodel){ 35 37 36 double matpar_rho_ice; 38 37 double matpar_rho_water; … … 46 45 double matpar_g; 47 46 48 if (iomodel->analysis_type==DiagnosticAnalysisEnum && iomodel->sub_analysis_type==HutterAnalysisEnum){49 if (strcmp(iomodel->meshtype,"2d")==0){50 matpar_mid=iomodel->numberofvertices+1; //put it at the end of the materials51 }52 else{ matpar_mid=iomodel->numberofvertices2d*(iomodel->numlayers-1)+1;}53 }54 else{55 matpar_mid=iomodel->numberofelements+1; //put it at the end of the materials56 }57 47 matpar_g=iomodel->g; 58 48 matpar_rho_ice=iomodel->rho_ice; … … 88 78 } 89 79 /*}}}1*/ 90 /*FUNCTION Matpar:: destructor{{{1*/80 /*FUNCTION Matpar::~Matpar() {{{1*/ 91 81 Matpar::~Matpar(){ 92 82 return; -
issm/trunk/src/c/objects/Matpar.h
r3463 r3622 32 32 Matpar(int mid, double rho_ice, double rho_water, double heatcapacity, double thermalconductivity, double latentheat, double beta, double meltingpoint, double mixed_layer_capacity, double thermal_exchange_velocity, double g); 33 33 void Init(int mid, double rho_ice, double rho_water, double heatcapacity, double thermalconductivity, double latentheat, double beta, double meltingpoint, double mixed_layer_capacity, double thermal_exchange_velocity, double g); 34 Matpar( IoModel* iomodel);34 Matpar(int matpar_id, IoModel* iomodel); 35 35 ~Matpar(); 36 36 -
issm/trunk/src/c/objects/Node.cpp
r3612 r3622 52 52 } 53 53 /*}}}*/ 54 /*FUNCTION Node::Node(int i , IoModel* iomodel) -> Continuous Galerkin{{{2*/55 Node::Node(int i, IoModel* iomodel){ //i is the node index54 /*FUNCTION Node::Node(int id, int i, IoModel* iomodel) -> Continuous Galerkin{{{2*/ 55 Node::Node(int node_id, int i, IoModel* iomodel){ //i is the node index 56 56 57 57 int k; … … 62 62 63 63 /*id: */ 64 this->id= i+1; //matlab indexing64 this->id=node_id; //matlab indexing 65 65 66 66 /*indexing:*/ … … 161 161 } 162 162 /*}}}*/ 163 /*FUNCTION Node::Node(int i , int j, IoModel* iomodel) -> Discontinuous Galerkin{{{2*/164 Node::Node(int i,int j,IoModel* iomodel){163 /*FUNCTION Node::Node(int id, int i, int j, IoModel* iomodel) -> Discontinuous Galerkin{{{2*/ 164 Node::Node(int node_id,int i,int j,IoModel* iomodel){ 165 165 /* i -> index of the vertex in C indexing 166 166 * j -> index of the node in C indexing*/ … … 171 171 172 172 /*id: */ 173 this->id= j+1; //matlab indexing173 this->id=node_id; //matlab indexing 174 174 175 175 /*indexing:*/ -
issm/trunk/src/c/objects/Penta.cpp
r3621 r3622 21 21 22 22 /*Object constructors and destructor*/ 23 /*FUNCTION Penta default constructor{{{1*/23 /*FUNCTION Penta::Penta(){{{1*/ 24 24 Penta::Penta(){ 25 25 this->inputs=NULL; … … 27 27 } 28 28 /*}}}*/ 29 /*FUNCTION Penta constructor{{{1*/29 /*FUNCTION Penta::Penta(int penta_id,int* penta_node_ids, int penta_matice_id, int penta_matpar_id) {{{1*/ 30 30 Penta::Penta(int penta_id,int* penta_node_ids, int penta_matice_id, int penta_matpar_id): 31 31 hnodes(penta_node_ids,6), … … 60 60 } 61 61 /*}}}*/ 62 /*FUNCTION Penta other constructor{{{1*/63 Penta::Penta(int index, IoModel* iomodel){ //i is the element index62 /*FUNCTION Penta::Penta(int id, int index, IoModel* iomodel) {{{1*/ 63 Penta::Penta(int penta_id, int index, IoModel* iomodel){ //i is the element index 64 64 65 65 IssmInt i; … … 71 71 72 72 /*id: */ 73 this->id= index+1;73 this->id=penta_id; 74 74 75 75 /*hooks: */ … … 139 139 } 140 140 /*}}}*/ 141 /*FUNCTION Penta destructor{{{1*/141 /*FUNCTION Penta::~Penta(){{{1*/ 142 142 Penta::~Penta(){ 143 143 delete inputs; -
issm/trunk/src/c/objects/Penta.h
r3621 r3622 43 43 Penta(int penta_id,int* penta_node_ids, int penta_matice_id, int penta_matpar_id); 44 44 Penta(int penta_id,Hook* penta_hnodes, Hook* penta_hmatice, Hook* penta_hmatpar, Parameters* penta_parameters, Inputs* inputs); 45 Penta(int i, IoModel* iomodel);45 Penta(int penta_id,int i, IoModel* iomodel); 46 46 ~Penta(); 47 47 /*}}}*/ -
issm/trunk/src/c/objects/Riftfront.cpp
r3595 r3622 20 20 21 21 /*Object constructors and destructor*/ 22 /*FUNCTION Riftfront:: default constructor{{{1*/22 /*FUNCTION Riftfront::Riftfront(){{{1*/ 23 23 Riftfront::Riftfront(){ 24 24 /*in case :*/ … … 27 27 } 28 28 /*}}}1*/ 29 /*FUNCTION Riftfront:: constructor{{{1*/29 /*FUNCTION Riftfront::Riftfront(char riftfront_type[RIFTFRONTSTRING],int riftfront_id, int riftfront_node_ids[MAX_RIFTFRONT_GRIDS], ...){{{1*/ 30 30 Riftfront::Riftfront(char riftfront_type[RIFTFRONTSTRING],int riftfront_id, int riftfront_node_ids[MAX_RIFTFRONT_GRIDS], int riftfront_mparid, double riftfront_h[MAX_RIFTFRONT_GRIDS],double riftfront_b[MAX_RIFTFRONT_GRIDS],double riftfront_s[MAX_RIFTFRONT_GRIDS],double riftfront_normal[2],double riftfront_length,int riftfront_fill,double riftfront_friction, double riftfront_fraction,double riftfront_fractionincrement, double riftfront_penalty_offset, int riftfront_penalty_lock, bool riftfront_active,bool riftfront_frozen, int riftfront_counter,bool riftfront_prestable,bool riftfront_shelf){ 31 31 … … 34 34 } 35 35 /*}}}1*/ 36 /*FUNCTION Riftfront:: constructor from iomodel{{{1*/37 Riftfront::Riftfront(int i, IoModel* iomodel){36 /*FUNCTION Riftfront::Riftfront(int id, int i, IoModel* iomodel){{{1*/ 37 Riftfront::Riftfront(int riftfront_id,int i, IoModel* iomodel){ 38 38 39 39 /*rifts: */ 40 40 char riftfront_type[RIFTFRONTSTRING]; 41 int riftfront_id;42 41 int riftfront_node_ids[2]; 43 42 int riftfront_mparid; … … 84 83 85 84 strcpy(riftfront_type,"2d"); 86 riftfront_id=i+1; //matlab indexing87 85 riftfront_node_ids[0]=grid1; 88 86 riftfront_node_ids[1]=grid2; … … 120 118 } 121 119 /*}}}1*/ 122 /*FUNCTION Riftfront::Init , used by constructor{{{1*/120 /*FUNCTION Riftfront::Init {{{1*/ 123 121 void Riftfront::Init(char riftfront_type[RIFTFRONTSTRING],int riftfront_id, int riftfront_node_ids[MAX_RIFTFRONT_GRIDS], int riftfront_mparid, double riftfront_h[MAX_RIFTFRONT_GRIDS],double riftfront_b[MAX_RIFTFRONT_GRIDS],double riftfront_s[MAX_RIFTFRONT_GRIDS],double riftfront_normal[2],double riftfront_length,int riftfront_fill,double riftfront_friction, double riftfront_fraction,double riftfront_fractionincrement, double riftfront_penalty_offset, int riftfront_penalty_lock, bool riftfront_active,bool riftfront_frozen, int riftfront_counter,bool riftfront_prestable,bool riftfront_shelf){ 124 122 … … 165 163 } 166 164 /*}}}1*/ 167 /*FUNCTION Riftfront:: destructor{{{1*/165 /*FUNCTION Riftfront::~Riftfront(){{{1*/ 168 166 Riftfront::~Riftfront(){ 169 167 return; -
issm/trunk/src/c/objects/Riftfront.h
r3612 r3622 54 54 bool material_converged; 55 55 56 57 56 public: 58 57 … … 61 60 void Init(char type[RIFTFRONTSTRING],int id, int node_ids[MAX_RIFTFRONT_GRIDS], int mparid, double h[MAX_RIFTFRONT_GRIDS],double b[MAX_RIFTFRONT_GRIDS],double s[MAX_RIFTFRONT_GRIDS],double normal[2],double length,int fill,double friction, double fraction, double fractionincrement, double penalty_offset, int penalty_lock,bool active,bool frozen, int counter,bool prestable,bool shelf); 62 61 Riftfront(char type[RIFTFRONTSTRING],int id, int node_ids[MAX_RIFTFRONT_GRIDS], int mparid, double h[MAX_RIFTFRONT_GRIDS],double b[MAX_RIFTFRONT_GRIDS],double s[MAX_RIFTFRONT_GRIDS],double normal[2],double length,int fill,double friction, double fraction, double fractionincrement, double penalty_offset, int penalty_lock,bool active,bool frozen, int counter,bool prestable,bool shelf); 63 Riftfront(int i , IoModel* iomodel);62 Riftfront(int id, int i, IoModel* iomodel); 64 63 ~Riftfront(); 65 64 /*}}}*/ -
issm/trunk/src/c/objects/Sing.cpp
r3621 r3622 22 22 23 23 /*Object constructors and destructor*/ 24 /*FUNCTION Sing:: constructor{{{1*/24 /*FUNCTION Sing::Sing(){{{1*/ 25 25 Sing::Sing(){ 26 26 this->inputs=NULL; … … 29 29 } 30 30 /*}}}*/ 31 /*FUNCTION Sing constructor{{{1*/31 /*FUNCTION Sing::Sing(int sing_id,int* sing_node_ids, int sing_matice_id, int sing_matpar_id, int sing_numpar_id) {{{1*/ 32 32 Sing::Sing(int sing_id,int* sing_node_ids, int sing_matice_id, int sing_matpar_id): 33 33 hnodes(sing_node_ids,1), … … 44 44 } 45 45 /*}}}*/ 46 /*FUNCTION Sing other constructor{{{1*/46 /*FUNCTION Sing::Sing(int sing_id,Hook* sing_hnodes, Hook* sing_hmatice, Hook* sing_hmatpar, Hook* sing_hnumpar, Inputs* sing_inputs) {{{1*/ 47 47 Sing::Sing(int sing_id,Hook* sing_hnodes, Hook* sing_hmatice, Hook* sing_hmatpar, Parameters* sing_parameters,Inputs* sing_inputs): 48 48 hnodes(sing_hnodes), … … 63 63 } 64 64 /*}}}*/ 65 /*FUNCTION Sing iomodel constructor{{{1*/66 Sing::Sing(int i, IoModel* iomodel){65 /*FUNCTION Sing::Sing(int sing_id, int i, IoModel* iomodel) {{{1*/ 66 Sing::Sing(int sing_id, int i, IoModel* iomodel){ 67 67 68 68 int sing_matice_id; … … 73 73 double sing_k; 74 74 75 76 75 /*id: */ 77 this->id= i+1;76 this->id=sing_id; 78 77 79 78 /*hooks: */ 80 sing_matice_id=i+1; //refers to the corresponding material property card79 sing_matice_id=i+1; //refers to the corresponding material property card 81 80 sing_matpar_id=iomodel->numberofvertices+1;//refers to the corresponding matpar property card 82 81 sing_g=i+1; … … 97 96 } 98 97 /*}}}*/ 99 /*FUNCTION Sing:: destructor{{{1*/98 /*FUNCTION Sing::~Sing(){{{1*/ 100 99 Sing::~Sing(){ 101 100 delete inputs; -
issm/trunk/src/c/objects/Sing.h
r3621 r3622 36 36 Sing(int sing_id,int* sing_node_ids, int sing_matice_id, int sing_matpar_id); 37 37 Sing(int sing_id,Hook* sing_hnodes, Hook* sing_hmatice, Hook* sing_hmatpar, Parameters* sing_parameters,Inputs* sing_inputs); 38 Sing(int i, IoModel* iomodel);38 Sing(int sing_id, int i, IoModel* iomodel); 39 39 ~Sing(); 40 40 /*}}}*/ -
issm/trunk/src/c/objects/Tria.cpp
r3621 r3622 63 63 } 64 64 /*}}}*/ 65 /*FUNCTION Tria::Tria(int i , IoModel* iomodel){{{1*/66 Tria::Tria(int index, IoModel* iomodel){ //i is the element index65 /*FUNCTION Tria::Tria(int id, int i, IoModel* iomodel){{{1*/ 66 Tria::Tria(int tria_id, int index, IoModel* iomodel){ //i is the element index 67 67 68 68 int i,j; … … 73 73 74 74 /*id: */ 75 this->id= index+1;75 this->id=tria_id; 76 76 77 77 /*hooks: */ -
issm/trunk/src/c/objects/Tria.h
r3621 r3622 34 34 Tria(int tria_id,int* tria_node_ids, int tria_matice_id, int tria_matpar_id); 35 35 Tria(int tria_id,Hook* tria_hnodes, Hook* tria_hmatice, Hook* tria_hmatpar, Parameters* parameters, Inputs* tria_inputs); 36 Tria(int i, IoModel* iomodel);36 Tria(int tria_id,int i, IoModel* iomodel); 37 37 ~Tria(); 38 38 /*}}}*/ -
issm/trunk/src/c/objects/Vertex.cpp
r3612 r3622 21 21 22 22 /*Object constructors and destructor{{{1*/ 23 /*FUNCTION Vertex default constructor{{{2*/23 /*FUNCTION Vertex::Vertex() {{{2*/ 24 24 Vertex::Vertex(){ 25 25 return; 26 26 } 27 27 /*}}}*/ 28 /*FUNCTION Vertex constructor{{{2*/29 Vertex::Vertex(int tria_id, double tria_x, double tria_y, double tria_z, double tria_sigma){30 this->Init( tria_id, tria_x, tria_y, tria_z, tria_sigma);31 } 32 /*}}}*/ 33 /*FUNCTION Vertex init, used by constructor{{{2*/34 void Vertex::Init(int tria_id, double tria_x, double tria_y, double tria_z, double tria_sigma){28 /*FUNCTION Vertex::Vertex(int vertex_id, double vertex_x, double vertex_y, double vertex_z, double vertex_sigma){{{2*/ 29 Vertex::Vertex(int vertex_id, double vertex_x, double vertex_y, double vertex_z, double vertex_sigma){ 30 this->Init(vertex_id, vertex_x, vertex_y, vertex_z, vertex_sigma); 31 } 32 /*}}}*/ 33 /*FUNCTION Vertex::Init{{{2*/ 34 void Vertex::Init(int vertex_id, double vertex_x, double vertex_y, double vertex_z, double vertex_sigma){ 35 35 36 36 /*all the initialization has been done by the initializer, just fill in the id: */ 37 this->id= tria_id;38 this->x= tria_x;39 this->y= tria_y;40 this->z= tria_z;41 this->sigma= tria_sigma;37 this->id=vertex_id; 38 this->x=vertex_x; 39 this->y=vertex_y; 40 this->z=vertex_z; 41 this->sigma=vertex_sigma; 42 42 this->dof=UNDEF; 43 43 … … 45 45 } 46 46 /*}}}*/ 47 /*FUNCTION Vertex constructor from iomodel{{{2*/48 Vertex::Vertex(int i, IoModel* iomodel){49 50 this->Init( i+1, iomodel->x[i],iomodel->y[i],iomodel->z[i],(iomodel->z[i]-iomodel->bed[i])/(iomodel->thickness[i]));51 52 } 53 /*}}}*/ 54 /*FUNCTION Vertex destructor{{{2*/47 /*FUNCTION Vertex::Vertex(int vertex_id, int i, IoModel* iomodel) {{{2*/ 48 Vertex::Vertex(int vertex_id, int i, IoModel* iomodel){ 49 50 this->Init(vertex_id, iomodel->x[i],iomodel->y[i],iomodel->z[i],(iomodel->z[i]-iomodel->bed[i])/(iomodel->thickness[i])); 51 52 } 53 /*}}}*/ 54 /*FUNCTION Vertex::~Vertex() {{{2*/ 55 55 Vertex::~Vertex(){ 56 56 return; -
issm/trunk/src/c/objects/Vertex.h
r3612 r3622 31 31 Vertex(int id, double x, double y, double z, double sigma); 32 32 void Init(int id, double x, double y, double z, double sigma); 33 Vertex(int i , IoModel* iomodel);33 Vertex(int id, int i, IoModel* iomodel); 34 34 ~Vertex(); 35 35 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.