Changeset 4528


Ignore:
Timestamp:
07/12/10 11:37:30 (15 years ago)
Author:
seroussi
Message:

added DoubleInput in Inputs

Location:
issm/trunk/src/c/objects
Files:
2 edited

Legend:

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

    r4248 r4528  
    194194/*FUNCTION DoubleInput::GetParameterValue(int* pvalue){{{1*/
    195195void DoubleInput::GetParameterValue(int* pvalue){
    196 
    197         ISSMERROR("cannot return an integer");
     196#ifdef _SERIAL_
     197        *pvalue=(int)value;
     198#else
     199        ISSMERROR("Double input of enum %i (%s) cannot return an integer",enum_type,EnumAsString(enum_type));
     200#endif
    198201
    199202}
  • issm/trunk/src/c/objects/Params/DoubleParam.cpp

    r4248 r4528  
    132132void DoubleParam::GetParameterValue(int* pinteger){
    133133#ifdef _SERIAL_
    134 
    135134        *pinteger=(int)value;
    136135#else
Note: See TracChangeset for help on using the changeset viewer.