Changeset 12554
- Timestamp:
- 06/26/12 11:01:16 (13 years ago)
- Location:
- issm/trunk-jpl/src/c/objects/Inputs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/objects/Inputs/BoolInput.cpp
r12550 r12554 157 157 158 158 case BoolInputEnum: 159 this->value= (bool)(this->value+scalar*xboolinput->value);159 this->value=reCast<bool,IssmDouble>(this->value+scalar*xboolinput->value); 160 160 return; 161 161 … … 163 163 _error2_("not implemented yet"); 164 164 } 165 166 }167 /*}}}*/168 /*FUNCTION BoolInput::Constrain{{{*/169 void BoolInput::Constrain(IssmDouble cm_min, IssmDouble cm_max){170 171 if(!xIsNan<IssmDouble>(cm_min)) if (this->value<cm_min)this->value=cm_min;172 if(!xIsNan<IssmDouble>(cm_max)) if (this->value>cm_max)this->value=cm_max;173 165 174 166 } -
issm/trunk-jpl/src/c/objects/Inputs/BoolInput.h
r12550 r12554 74 74 void ArtificialNoise(IssmDouble min,IssmDouble max){_error2_("not implemented yet");}; 75 75 void AXPY(Input* xinput,IssmDouble scalar); 76 void Constrain(IssmDouble cm_min, IssmDouble cm_max) ;76 void Constrain(IssmDouble cm_min, IssmDouble cm_max){_error2_("Constrain not implemented for booleans");}; 77 77 void Extrude(void); 78 78 void VerticallyIntegrate(Input* thickness_input){_error2_("not supported yet");};
Note:
See TracChangeset
for help on using the changeset viewer.