Ignore:
Timestamp:
06/16/10 18:20:52 (15 years ago)
Author:
Eric.Larour
Message:

Serious cleanup of the control solutoin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Inputs/BoolInput.cpp

    r4047 r4048  
    228228}
    229229/*}}}*/
     230/*FUNCTION BoolInput::AXPY(Input* xinput,double scalar);{{{1*/
     231void BoolInput::AXPY(Input* xinput,double scalar){
     232
     233        BoolInput*  xboolinput=NULL;
     234
     235        /*xinput is of the same type, so cast it: */
     236        xboolinput=(BoolInput)xinput;
     237
     238        /*Carry out the AXPY operation:*/
     239        this->value=this->value+scalar*xboolinput->value;
     240
     241}
     242/*}}}*/
     243/*FUNCTION BoolInput::Constrain(double cm_min, double cm_max){{{1*/
     244void BoolInput::Constrain(double cm_min, double cm_max){
     245
     246        if(!isnan(cm_min)) if (this->value<cm_min)this->value=cm_min;
     247        if(!isnan(cm_max)) if (this->value>cm_max)this->value=cm_max;
     248
     249}
     250/*}}}*/
     251/*FUNCTION BoolInput::GetVectorFromInputs(Vec vector,int* doflist){{{1*/
     252void BoolInput::GetVectorFromInputs(Vec vector,int* doflist){
     253
     254        ISSMERROR(" not supporte yet!");
     255
     256}
     257/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.