Changeset 17229 for issm/trunk-jpl/src/c/classes/Inputs/TriaInput.cpp
- Timestamp:
- 02/07/14 09:39:17 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Inputs/TriaInput.cpp
r17102 r17229 100 100 /*output*/ 101 101 SegInput* outinput=NULL; 102 IssmDouble newvalues[2]; //Assume P1 interpolation only for now 103 104 /*Create arrow of indices depending on location (0=base 1=surface)*/ 105 106 newvalues[0]=this->values[index1]; 107 newvalues[1]=this->values[index2]; 108 109 /*Create new Seg input*/ 110 outinput=new SegInput(this->enum_type,&newvalues[0],P1Enum); 102 103 if(this->element_type==P0Enum){ 104 outinput=new SegInput(this->enum_type,&this->values[0],P0Enum); 105 } 106 else{ 107 /*Assume P1 interpolation only for now*/ 108 IssmDouble newvalues[2]; 109 110 /*Create array of indices depending on location (0=base 1=surface)*/ 111 newvalues[0]=this->values[index1]; 112 newvalues[1]=this->values[index2]; 113 114 /*Create new Seg input*/ 115 outinput=new SegInput(this->enum_type,&newvalues[0],P1Enum); 116 } 111 117 112 118 /*Assign output*/
Note:
See TracChangeset
for help on using the changeset viewer.