Changeset 24378 for issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
- Timestamp:
- 11/21/19 14:36:02 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r24376 r24378 42 42 /*this->parameters: we still can't point to it, it may not even exist. Configure will handle this.*/ 43 43 this->parameters = NULL; 44 45 /*intialize inputs: */46 this->inputs = new Inputs();47 44 48 45 /*initialize pointers:*/ … … 126 123 tria->sid = this->sid; 127 124 tria->lid = this->lid; 128 if(this->inputs) tria->inputs = (Inputs*)(this->inputs->Copy());129 else tria->inputs=new Inputs();130 125 tria->isonbase = this->isonbase; 131 126 tria->isonsurface = this->isonsurface; … … 1098 1093 this->parameters=parametersin; 1099 1094 this->inputs2=inputs2in; 1100 1101 /*get inputs configured too: */1102 this->inputs->Configure(this->parameters);1103 1104 1095 }/*}}}*/ 1105 1096 void Tria::ControlInputSetGradient(IssmDouble* gradient,int enum_type,int control_index,int offset,int N, int M){/*{{{*/ … … 3115 3106 /*Add new input to current element*/ 3116 3107 _error_("not implemented"); 3117 this->inputs->AddInput((Input*)newinput);3118 3108 } 3119 3109 /*}}}*/ … … 4116 4106 seg->sid=this->sid; 4117 4107 seg->lid=this->lid; 4118 seg->inputs=NULL;//(Inputs*)this->inputs->SpawnSegInputs(index1,index2);4119 4108 seg->inputs2=this->inputs2; 4120 4109 seg->parameters=this->parameters;
Note:
See TracChangeset
for help on using the changeset viewer.