Changeset 25230
- Timestamp:
- 07/08/20 00:54:09 (5 years ago)
- Location:
- issm/trunk-jpl/src/c/classes/Inputs2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Inputs2/DatasetInput2.cpp
r25206 r25230 220 220 } 221 221 /*}}}*/ 222 IssmDouble DatasetInput2::GetInputMin(void){ /*{{{*/ 223 224 IssmDouble minvalue,newminvalue; 225 for(int i=0;i<this->numids;i++){ 226 227 Input2* input = this->inputs[i]; 228 229 if(this->inputs[i]->ObjectEnum()==TransientInput2Enum){ 230 input = xDynamicCast<TransientInput2*>(this->inputs[i])->current_input; 231 } 232 newminvalue=input->GetInputMin(); 233 if(i==0)minvalue=newminvalue; 234 else minvalue=min(minvalue,newminvalue); 235 } 236 return minvalue; 237 238 } 239 /*}}}*/ 222 240 TransientInput2* DatasetInput2::GetTransientInputByOffset(int offset){/*{{{*/ 223 241 … … 233 251 } 234 252 }/*}}}*/ 253 TriaInput2* DatasetInput2::GetTriaInput(void){/*{{{*/ 254 255 return this->GetTriaInputByOffset(0); 256 257 }/*}}}*/ 235 258 TriaInput2* DatasetInput2::GetTriaInputByOffset(int offset){/*{{{*/ 236 259 -
issm/trunk-jpl/src/c/classes/Inputs2/DatasetInput2.h
r25207 r25230 38 38 void SetTriaInput(int interp_in,int numinds,int* rows,IssmDouble* values_in); 39 39 /*}}}*/ 40 IssmDouble GetInputMin(); 40 41 void SetTriaInput(int id,int interp_in,int numinds,int* rows,IssmDouble* values_in); 41 42 void SetPentaInput(int id,int interp_in,int numinds,int* rows,IssmDouble* values_in); 42 43 TransientInput2* SetTransientInput(int id,IssmDouble* times,int numtimes); 43 44 PentaInput2* GetPentaInputByOffset(int i); 45 TriaInput2* GetTriaInput(void); 44 46 TriaInput2* GetTriaInputByOffset(int i); 45 47 TransientInput2* GetTransientInputByOffset(int offset);
Note:
See TracChangeset
for help on using the changeset viewer.