Changeset 12534


Ignore:
Timestamp:
06/25/12 14:51:15 (13 years ago)
Author:
utke
Message:

make consistently active

Location:
issm/trunk-jpl/src/c/objects/Options
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/objects/Options/Option.h

    r12494 r12534  
    4343                virtual int*  Size()=0;
    4444                virtual void  Get(int* pvalue)=0;
    45                 virtual void  Get(IssmPDouble* pvalue)=0;
     45                virtual void  Get(IssmDouble* pvalue)=0;
    4646                virtual void  Get(bool* pvalue)=0;
    4747                virtual void  Get(char** pvalue)=0;
    4848                virtual void  Get(char*** ppvalue,int *pnumel)=0;
    49                 virtual void  Get(IssmPDouble** pvalue,int *pnumel)=0;
     49                virtual void  Get(IssmDouble** pvalue,int *pnumel)=0;
    5050                virtual void  Get(Options** pvalue)=0;
    5151                virtual void  Get(Options*** ppvalue,int *pnumel)=0;
  • issm/trunk-jpl/src/c/objects/Options/OptionCell.h

    r12494 r12534  
    4040                int*  Size();
    4141                void  Get(int* pvalue){_error2_("An OptionCell object cannot return a int");};
    42                 void  Get(IssmPDouble* pvalue){_error2_("An OptionCell object cannot return a IssmPDouble");};
     42                void  Get(IssmDouble* pvalue){_error2_("An OptionCell object cannot return a IssmDouble");};
    4343                void  Get(bool* pvalue){  _error2_("An OptionCell object cannot return a bool");};
    4444                void  Get(char** pvalue){ _error2_("An OptionCell object cannot return a string");};
    4545                void  Get(char*** ppvalue,int *pnumel){ _error2_("An OptionCell object cannot return a string vec");};
    46                 void  Get(IssmPDouble** pvalue,int *pnumel){ _error2_("An OptionCell object cannot return a IssmPDouble vec");};
     46                void  Get(IssmDouble** pvalue,int *pnumel){ _error2_("An OptionCell object cannot return a IssmDouble vec");};
    4747                void  Get(Options** pvalue);
    4848                void  Get(Options*** ppvalue,int *pnumel){ _error2_("An OptionCell object cannot return an Options DataSet vec");};
  • issm/trunk-jpl/src/c/objects/Options/OptionChar.h

    r12494 r12534  
    4040                int*  Size();
    4141                void  Get(int* pvalue){_error2_("An OptionChar object cannot return a int");};
    42                 void  Get(IssmPDouble* pvalue){_error2_("An OptionChar object cannot return a IssmPDouble");};
     42                void  Get(IssmDouble* pvalue){_error2_("An OptionChar object cannot return a IssmDouble");};
    4343                void  Get(bool* pvalue){  _error2_("An OptionChar object cannot return a bool");};
    4444                void  Get(char** pvalue);
    4545                void  Get(char*** ppvalue,int *pnumel);
    46                 void  Get(IssmPDouble** pvalue,int *pnumel){ _error2_("An OptionChar object cannot return a IssmPDouble vec");};
     46                void  Get(IssmDouble** pvalue,int *pnumel){ _error2_("An OptionChar object cannot return a IssmDouble vec");};
    4747                void  Get(Options** pvalue){ _error2_("An OptionChar object cannot return an Options DataSet");};
    4848                void  Get(Options*** ppvalue,int *pnumel){ _error2_("An OptionChar object cannot return an Options DataSet vec");};
  • issm/trunk-jpl/src/c/objects/Options/OptionDouble.cpp

    r12520 r12534  
    11/*!\file OptionDouble.cpp
    2  * \brief: implementation of the optionsIssmPDouble object
     2 * \brief: implementation of the optionsIssmDouble object
    33 */
    44
     
    3131OptionDouble::~OptionDouble(){
    3232
    33         if (values) xDelete<IssmPDouble>(values);
     33        if (values) xDelete<IssmDouble>(values);
    3434
    3535}
     
    5050                else {
    5151                        StringFromSize(cstr,size,ndims);
    52                         if(flag) _pprintLine_("        values: " << cstr << " " << "IssmPDouble");
     52                        if(flag) _pprintLine_("        values: " << cstr << " " << "IssmDouble");
    5353                }
    5454        }
     
    132132}
    133133/*}}}*/
    134 /*FUNCTION OptionDouble::Get(IssmPDouble* pvalue) {{{*/
    135 void OptionDouble::Get(IssmPDouble* pvalue){
     134/*FUNCTION OptionDouble::Get(IssmDouble* pvalue) {{{*/
     135void OptionDouble::Get(IssmDouble* pvalue){
    136136
    137137        /*We should first check that the size is one*/
    138138        if(this->NumEl()!=1){
    139                 _error2_("option \"" << this->name << "\" has " << this->NumEl() << " elements and cannot return a single IssmPDouble");
     139                _error2_("option \"" << this->name << "\" has " << this->NumEl() << " elements and cannot return a single IssmDouble");
    140140        }
    141141
     
    144144}
    145145/*}}}*/
    146 /*FUNCTION OptionDouble::Get(IssmPDouble** pvalue,int* numel) {{{*/
    147 void OptionDouble::Get(IssmPDouble** pvalue,int* numel){
     146/*FUNCTION OptionDouble::Get(IssmDouble** pvalue,int* numel) {{{*/
     147void OptionDouble::Get(IssmDouble** pvalue,int* numel){
    148148
    149149        /*We should first check that the size is at least one*/
    150150        if(this->NumEl()<=0){
    151                 _error2_("option \"" << this->name << "\" is empty and cannot return a IssmPDouble vector");
     151                _error2_("option \"" << this->name << "\" is empty and cannot return a IssmDouble vector");
    152152        }
    153153
    154154        /*Copy vector*/
    155         IssmPDouble* outvalue=xNew<IssmPDouble>(this->NumEl());
     155        IssmDouble* outvalue=xNew<IssmDouble>(this->NumEl());
    156156        for(int i=0;i<this->NumEl();i++) outvalue[i]=this->values[i];
    157157
  • issm/trunk-jpl/src/c/objects/Options/OptionDouble.h

    r12494 r12534  
    11/*! \file OptionDouble.h
    2  *  \brief: header file for optionIssmPDouble object
     2 *  \brief: header file for optionIssmDouble object
    33 */
    44
     
    1818        public:
    1919
    20                 IssmPDouble* values;
     20                IssmDouble* values;
    2121
    2222                /*OptionDouble constructors, destructors {{{*/
     
    4040                int*  Size();
    4141                void  Get(int* pvalue);
    42                 void  Get(IssmPDouble* pvalue);
     42                void  Get(IssmDouble* pvalue);
    4343                void  Get(bool* pvalue){  _error2_("An OptionDouble object cannot return a bool");};
    4444                void  Get(char** pvalue){ _error2_("An OptionDouble object cannot return a string");};
    4545                void  Get(char*** ppvalue,int *pnumel){ _error2_("An OptionDouble object cannot return a string vec");};
    46                 void  Get(IssmPDouble** pvalue,int* pnumel);
     46                void  Get(IssmDouble** pvalue,int* pnumel);
    4747                void  Get(Options** pvalue){ _error2_("An OptionDouble object cannot return an Options DataSet");};
    4848                void  Get(Options*** ppvalue,int *pnumel){ _error2_("An OptionDouble object cannot return an Options DataSet vec");};
  • issm/trunk-jpl/src/c/objects/Options/OptionLogical.h

    r12494 r12534  
    4040                int*  Size();
    4141                void  Get(int* pvalue){_error2_("An OptionLogical object cannot return a int");};
    42                 void  Get(IssmPDouble* pvalue){_error2_("An OptionLogical object cannot return a IssmPDouble");};
     42                void  Get(IssmDouble* pvalue){_error2_("An OptionLogical object cannot return a IssmDouble");};
    4343                void  Get(bool* pvalue);
    4444                void  Get(char** pvalue){ _error2_("An OptionLogical object cannot return a string");};
    4545                void  Get(char*** ppvalue,int *pnumel){ _error2_("An OptionLogical object cannot return a string vec");};
    46                 void  Get(IssmPDouble** pvalue,int *pnumel){ _error2_("An OptionLogical object cannot return a IssmPDouble vec");};
     46                void  Get(IssmDouble** pvalue,int *pnumel){ _error2_("An OptionLogical object cannot return a IssmDouble vec");};
    4747                void  Get(Options** pvalue){ _error2_("An OptionLogical object cannot return an Options DataSet");};
    4848                void  Get(Options*** ppvalue,int *pnumel){ _error2_("An OptionLogical object cannot return an Options DataSet vec");};
  • issm/trunk-jpl/src/c/objects/Options/OptionStruct.h

    r12494 r12534  
    4040                int*  Size();
    4141                void  Get(int* pvalue){_error2_("An OptionStruct object cannot return a int");};
    42                 void  Get(IssmPDouble* pvalue){_error2_("An OptionStruct object cannot return a IssmPDouble");};
     42                void  Get(IssmDouble* pvalue){_error2_("An OptionStruct object cannot return a IssmDouble");};
    4343                void  Get(bool* pvalue){  _error2_("An OptionStruct object cannot return a bool");};
    4444                void  Get(char** pvalue){ _error2_("An OptionStruct object cannot return a string");};
    4545                void  Get(char*** ppvalue,int *pnumel){ _error2_("An OptionStruct object cannot return a string vec");};
    46                 void  Get(IssmPDouble** pvalue,int *pnumel){ _error2_("An OptionStruct object cannot return a IssmPDouble vec");};
     46                void  Get(IssmDouble** pvalue,int *pnumel){ _error2_("An OptionStruct object cannot return a IssmDouble vec");};
    4747                void  Get(Options** pvalue);
    4848                void  Get(Options*** ppvalue,int *pnumel);
  • issm/trunk-jpl/src/c/objects/Options/OptionUtilities.cpp

    r12493 r12534  
    3131        /*calculate the dimensions (being careful of integer division)  */
    3232        for (i=ndims-1; i>=0; i--) {
    33                 aprod=(int)(((IssmPDouble)aprod+0.5)/(IssmPDouble)size[i]);
    34                 dims[i]=(int)floor(((IssmPDouble)index+0.5)/(IssmPDouble)aprod);
     33                aprod=(int)(((IssmDouble)aprod+0.5)/(IssmDouble)size[i]);
     34                dims[i]=(int)floor(((IssmDouble)index+0.5)/(IssmDouble)aprod);
    3535                index-=dims[i]*aprod;
    3636        }
     
    6969        /*calculate the dimensions (being careful of integer division)  */
    7070        for (i=0; i<ndims; i++) {
    71                 aprod=(int)(((IssmPDouble)aprod+0.5)/(IssmPDouble)size[i]);
    72                 dims[i]=(int)floor(((IssmPDouble)index+0.5)/(IssmPDouble)aprod);
     71                aprod=(int)(((IssmDouble)aprod+0.5)/(IssmDouble)size[i]);
     72                dims[i]=(int)floor(((IssmDouble)index+0.5)/(IssmDouble)aprod);
    7373                index-=dims[i]*aprod;
    7474        }
Note: See TracChangeset for help on using the changeset viewer.