Changeset 22518


Ignore:
Timestamp:
03/10/18 21:16:59 (7 years ago)
Author:
Mathieu Morlighem
Message:

CHG: AXPY not needed

Location:
issm/trunk-jpl/src/c/classes/Inputs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Inputs/Inputs.cpp

    r21974 r22518  
    5454}
    5555/*}}}*/
    56 void  Inputs::AXPY(int inputy_enum, IssmDouble scalar, int inputx_enum){/*{{{*/
    57 
    58         /*Find x and y inputs: */
    59         Input* xinput=xDynamicCast<Input*>(this->GetInput(inputx_enum));
    60         Input* yinput=xDynamicCast<Input*>(this->GetInput(inputy_enum));
    61 
    62         /*some checks: */
    63         if(!xinput) _error_("input " << EnumToStringx(inputx_enum) << " could not be found!");
    64         if(!yinput) _error_("input " << EnumToStringx(inputy_enum) << " could not be found!");
    65 
    66         /*Apply AXPY: */
    67         yinput->AXPY(xinput,scalar);
    68 }
    69 /*}}}*/
    7056void  Inputs::ChangeEnum(int oldenumtype,int newenumtype){/*{{{*/
    7157
  • issm/trunk-jpl/src/c/classes/Inputs/Inputs.h

    r21974 r22518  
    2323                /*numerics*/
    2424                int         AddInput(Input* in_input);
    25                 void        AXPY(int inputy_enum, IssmDouble scalar, int inputx_enum);
    2625                void        ChangeEnum(int enumtype,int new_enumtype);
    2726                void        Configure(Parameters* parameters);
Note: See TracChangeset for help on using the changeset viewer.