Ignore:
Timestamp:
06/23/10 14:49:50 (15 years ago)
Author:
Mathieu Morlighem
Message:

moved AXPY type switch into inputs and fixed compilation

File:
1 edited

Legend:

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

    r4057 r4174  
    247247        xdoubleinput=(DoubleInput*)xinput;
    248248
    249         /*Carry out the AXPY operation:*/
    250         this->value=this->value+scalar*xdoubleinput->value;
     249        /*Carry out the AXPY operation depending on type:*/
     250        switch(xinput->Enum()){
     251
     252                case DoubleInputEnum:
     253                        this->value=this->value+scalar*xdoubleinput->value;
     254                        return;
     255
     256                default:
     257                        ISSMERROR("not implemented yet");
     258        }
    251259
    252260}
Note: See TracChangeset for help on using the changeset viewer.