Changeset 12482


Ignore:
Timestamp:
06/20/12 14:51:05 (13 years ago)
Author:
utke
Message:

casting to bool and int implies non-differentiability

Location:
issm/trunk-jpl/src/c/objects/Params
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/objects/Params/BoolParam.h

    r12474 r12482  
    5858                void  SetValue(bool boolean){this->value=boolean;}
    5959                void  SetValue(int integer){this->value=(bool)integer;}
    60                 void  SetValue(IssmDouble scalar){this->value=(bool)scalar;}
     60                void  SetValue(IssmPDouble scalar){this->value=(bool)scalar;}
    6161                void  SetValue(char* string){_error_("Bool param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));}
    6262                void  SetValue(char** stringarray,int M){_error_("Bool param of enum %i (%s) cannot hold a string array",enum_type,EnumToStringx(enum_type));}
  • issm/trunk-jpl/src/c/objects/Params/IntParam.h

    r12474 r12482  
    6161                void  SetValue(int* intarray,int M){_error_("Int param of enum %i (%s) cannot hold an int array",enum_type,EnumToStringx(enum_type));}
    6262                void  SetValue(int* intarray,int M,int N){_error_("Int param of enum %i (%s) cannot hold an int array",enum_type,EnumToStringx(enum_type));}
    63                 void  SetValue(IssmDouble scalar){this->value=(int)scalar;}
     63                void  SetValue(IssmPDouble scalar){this->value=(int)scalar;}
    6464                void  SetValue(char* string){_error_("Int param of enum %i (%s) cannot hold a string",enum_type,EnumToStringx(enum_type));}
    6565                void  SetValue(char** stringarray,int M){_error_("Int param of enum %i (%s) cannot hold a string array",enum_type,EnumToStringx(enum_type));}
Note: See TracChangeset for help on using the changeset viewer.