Ignore:
Timestamp:
06/01/12 17:26:03 (13 years ago)
Author:
Mathieu Morlighem
Message:

merged trunk-jpl and trunk for revision 12326M

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Options/OptionDouble.cpp

    r9761 r12330  
    120120}
    121121/*}}}*/
     122/*FUNCTION OptionDouble::Get(int* pvalue) {{{1*/
     123void OptionDouble::Get(int* pvalue){
     124
     125        /*We should first check that the size is one*/
     126        if(this->NumEl()!=1){
     127                _error_("option \"%s\" has %i elements and cannot return a single int",this->name,this->NumEl());
     128        }
     129
     130        /*Assign output pointer*/
     131        *pvalue=(int)this->values[0];
     132}
     133/*}}}*/
    122134/*FUNCTION OptionDouble::Get(double* pvalue) {{{1*/
    123135void OptionDouble::Get(double* pvalue){
Note: See TracChangeset for help on using the changeset viewer.