Changeset 19725 for issm/trunk-jpl/src/c/classes/Inputs/TriaInput.cpp
- Timestamp:
- 11/16/15 16:29:17 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Inputs/TriaInput.cpp
r19554 r19725 192 192 } 193 193 /*}}}*/ 194 void TriaInput::GetInputDerivativeAverageValue(IssmDouble* derivativevalues, IssmDouble* xyz_list){/*{{{*/ 195 196 int numnodes = this->NumberofNodes(this->interpolation_type); 197 IssmDouble numnodesd = reCast<int,IssmDouble>(numnodes); 198 IssmDouble dvalue[3]; 199 200 derivativevalues[0] = 0.; 201 derivativevalues[1] = 0.; 202 203 GaussTria* gauss=new GaussTria(); 204 for(int iv=0;iv<numnodes;iv++){ 205 gauss->GaussNode(this->interpolation_type,iv); 206 this->GetInputDerivativeValue(&dvalue[0],xyz_list,gauss); 207 208 derivativevalues[0] += dvalue[0]/numnodesd; 209 derivativevalues[1] += dvalue[1]/numnodesd; 210 } 211 delete gauss; 212 } 213 /*}}}*/ 194 214 void TriaInput::GetInputAllTimeAverages(IssmDouble** pvalues,IssmDouble** ptimes, int* pnumtimes){/*{{{*/ 195 215
Note:
See TracChangeset
for help on using the changeset viewer.