Changeset 16186 for issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
- Timestamp:
- 09/19/13 14:23:51 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r16184 r16186 1466 1466 /*FUNCTION Tria::InputUpdateFromConstant(int value, int name);{{{*/ 1467 1467 void Tria::InputUpdateFromConstant(int constant, int name){ 1468 1468 1469 /*Check that name is an element input*/ 1469 if 1470 if(!IsInput(name)) return; 1470 1471 1471 1472 /*update input*/ … … 1475 1476 /*FUNCTION Tria::InputUpdateFromConstant(IssmDouble value, int name);{{{*/ 1476 1477 void Tria::InputUpdateFromConstant(IssmDouble constant, int name){ 1478 1477 1479 /*Check that name is an element input*/ 1478 if 1480 if(!IsInput(name)) return; 1479 1481 1480 1482 /*update input*/ … … 1484 1486 /*FUNCTION Tria::InputUpdateFromConstant(bool value, int name);{{{*/ 1485 1487 void Tria::InputUpdateFromConstant(bool constant, int name){ 1488 1486 1489 /*Check that name is an element input*/ 1487 if 1490 if(!IsInput(name)) return; 1488 1491 1489 1492 /*update input*/ … … 1762 1765 void Tria::InputUpdateFromVector(IssmDouble* vector, int name, int type){ 1763 1766 1764 1765 1767 /*Check that name is an element input*/ 1766 1768 if (!IsInput(name)) return; … … 1833 1835 xDelete<int>(doflist); 1834 1836 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)){ //boolean1845 this->inputs->AddInput(new BoolInput(name,reCast<bool>(scalar)));1846 }1847 else if ((code==6) || (code==2)){ //integer1848 this->inputs->AddInput(new IntInput(name,reCast<int>(scalar)));1849 }1850 else if ((code==7) || (code==3)){ //IssmDouble1851 this->inputs->AddInput(new DoubleInput(name,scalar));1852 }1853 else _error_("could not recognize nature of vector from code " << code);1854 1837 1855 1838 }
Note:
See TracChangeset
for help on using the changeset viewer.