Changeset 4048 for issm/trunk/src/c/objects/Inputs/IntInput.cpp
- Timestamp:
- 06/16/10 18:20:52 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/objects/Inputs/IntInput.cpp
r4047 r4048 226 226 } 227 227 /*}}}*/ 228 /*FUNCTION IntInput::AXPY(Input* xinput,int scalar);{{{1*/ 229 void IntInput::AXPY(Input* xinput,int scalar){ 230 231 IntInput* xintinput=NULL; 232 233 /*xinput is of the same type, so cast it: */ 234 xintinput=(IntInput)xinput; 235 236 /*Carry out the AXPY operation:*/ 237 this->value=this->value+scalar*xintinput->value; 238 239 } 240 /*}}}*/ 241 /*FUNCTION IntInput::Constrain(double cm_min, double cm_max){{{1*/ 242 void IntInput::Constrain(double cm_min, double cm_max){ 243 244 if(!isnan(cm_min)) if (this->value<cm_min)this->value=cm_min; 245 if(!isnan(cm_max)) if (this->value>cm_max)this->value=cm_max; 246 247 } 248 /*}}}*/ 249 /*FUNCTION IntInput::GetVectorFromInputs(Vec vector,int* doflist){{{1*/ 250 void IntInput::GetVectorFromInputs(Vec vector,int* doflist){ 251 252 ISSMERROR(" not supporte yet!"); 253 254 } 255 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.