Ignore:
Timestamp:
09/19/13 14:23:51 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: removed InputCreate which was doing the same thing as InputUpdateFromConstant

File:
1 edited

Legend:

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

    r16184 r16186  
    14661466/*FUNCTION Tria::InputUpdateFromConstant(int value, int name);{{{*/
    14671467void  Tria::InputUpdateFromConstant(int constant, int name){
     1468
    14681469        /*Check that name is an element input*/
    1469         if (!IsInput(name)) return;
     1470        if(!IsInput(name)) return;
    14701471
    14711472        /*update input*/
     
    14751476/*FUNCTION Tria::InputUpdateFromConstant(IssmDouble value, int name);{{{*/
    14761477void  Tria::InputUpdateFromConstant(IssmDouble constant, int name){
     1478
    14771479        /*Check that name is an element input*/
    1478         if (!IsInput(name)) return;
     1480        if(!IsInput(name)) return;
    14791481
    14801482        /*update input*/
     
    14841486/*FUNCTION Tria::InputUpdateFromConstant(bool value, int name);{{{*/
    14851487void  Tria::InputUpdateFromConstant(bool constant, int name){
     1488
    14861489        /*Check that name is an element input*/
    1487         if (!IsInput(name)) return;
     1490        if(!IsInput(name)) return;
    14881491
    14891492        /*update input*/
     
    17621765void  Tria::InputUpdateFromVector(IssmDouble* vector, int name, int type){
    17631766
    1764 
    17651767        /*Check that name is an element input*/
    17661768        if (!IsInput(name)) return;
     
    18331835        xDelete<int>(doflist);
    18341836        xDelete<IssmDouble>(values);
    1835 
    1836 }
    1837 /*}}}*/
    1838 /*FUNCTION Tria::InputCreate(IssmDouble scalar,int enum,int code);{{{*/
    1839 void Tria::InputCreate(IssmDouble scalar,int name,int code){
    1840 
    1841         /*Check that name is an element input*/
    1842         if (!IsInput(name)) return;
    1843 
    1844         if ((code==5) || (code==1)){ //boolean
    1845                 this->inputs->AddInput(new BoolInput(name,reCast<bool>(scalar)));
    1846         }
    1847         else if ((code==6) || (code==2)){ //integer
    1848                 this->inputs->AddInput(new IntInput(name,reCast<int>(scalar)));
    1849         }
    1850         else if ((code==7) || (code==3)){ //IssmDouble
    1851                 this->inputs->AddInput(new DoubleInput(name,scalar));
    1852         }
    1853         else _error_("could not recognize nature of vector from code " << code);
    18541837
    18551838}
Note: See TracChangeset for help on using the changeset viewer.