Changeset 22361


Ignore:
Timestamp:
01/18/18 09:21:32 (7 years ago)
Author:
Mathieu Morlighem
Message:

CHG: sid is actually id

Location:
issm/trunk-jpl/src/c/classes/Constraints
Files:
6 edited

Legend:

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

    r20810 r22361  
    1818}
    1919/*}}}*/
    20 SpcDynamic::SpcDynamic(int spc_sid,int spc_nodeid, int spc_dof,int spc_analysis_type){/*{{{*/
     20SpcDynamic::SpcDynamic(int spc_id,int spc_nodeid, int spc_dof,int spc_analysis_type){/*{{{*/
    2121
    22         sid           = spc_sid;
     22        id           = spc_id;
    2323        nodeid        = spc_nodeid;
    2424        dof           = spc_dof;
     
    4141        SpcDynamic* spcdyn = new SpcDynamic(*this);
    4242
    43         spcdyn->sid=this->sid;
     43        spcdyn->id=this->id;
    4444        spcdyn->nodeid=this->nodeid;
    4545        spcdyn->dof=this->dof;
     
    6060
    6161        _printf_("SpcDynamic:\n");
    62         _printf_("   sid: " << sid << "\n");
     62        _printf_("   id: " << id << "\n");
    6363        _printf_("   nodeid: " << nodeid << "\n");
    6464        _printf_("   dof: " << dof << "\n");
     
    6969}
    7070/*}}}*/
    71 int     SpcDynamic::Id(void){ return sid; }/*{{{*/
     71int     SpcDynamic::Id(void){ return id; }/*{{{*/
    7272/*}}}*/
    7373void    SpcDynamic::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/
     
    7575        MARSHALLING_ENUM(SpcDynamicEnum);
    7676
    77         MARSHALLING(sid);
     77        MARSHALLING(id);
    7878        MARSHALLING(nodeid);
    7979        MARSHALLING(dof);
  • issm/trunk-jpl/src/c/classes/Constraints/SpcDynamic.h

    r22200 r22361  
    1414
    1515        private:
    16                 int        sid;             /*! id, to track it */
     16                int        id;              /*! id, to track it */
    1717                int        nodeid;          /*!node id          */
    1818                int        dof;             /*!component        */
     
    2626                /*SpcDynamic constructors, destructors*/
    2727                SpcDynamic();
    28                 SpcDynamic(int sid,int nodeid, int dof,int analysis_type);
     28                SpcDynamic(int id_in,int nodeid, int dof,int analysis_type);
    2929                ~SpcDynamic();
    3030
  • issm/trunk-jpl/src/c/classes/Constraints/SpcStatic.cpp

    r22202 r22361  
    1818}
    1919/*}}}*/
    20 SpcStatic::SpcStatic(int spc_sid,int spc_nodeid, int spc_dof,IssmDouble spc_value,int spc_analysis_type){/*{{{*/
     20SpcStatic::SpcStatic(int spc_id,int spc_nodeid, int spc_dof,IssmDouble spc_value,int spc_analysis_type){/*{{{*/
    2121
    22         sid           = spc_sid;
     22        id           = spc_id;
    2323        nodeid        = spc_nodeid;
    2424        dof           = spc_dof;
     
    4040        SpcStatic* spcstat = new SpcStatic(*this);
    4141
    42         spcstat->sid=this->sid;
     42        spcstat->id=this->id;
    4343        spcstat->nodeid=this->nodeid;
    4444        spcstat->dof=this->dof;
     
    5252
    5353        _printf_("SpcStatic:\n");
    54         _printf_("   sid: " << sid << "\n");
     54        _printf_("   id: " << id << "\n");
    5555        _printf_("   nodeid: " << nodeid << "\n");
    5656        _printf_("   dof: " << dof << "\n");
     
    6363
    6464        _printf_("SpcStatic:\n");
    65         _printf_("   sid: " << sid << "\n");
     65        _printf_("   id: " << id << "\n");
    6666        _printf_("   nodeid: " << nodeid << "\n");
    6767        _printf_("   dof: " << dof << "\n");
     
    7171}
    7272/*}}}*/
    73 int     SpcStatic::Id(void){ return sid; }/*{{{*/
     73int     SpcStatic::Id(void){ return id; }/*{{{*/
    7474/*}}}*/
    7575void    SpcStatic::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/
     
    7777        MARSHALLING_ENUM(SpcStaticEnum);
    7878
    79         MARSHALLING(sid);
     79        MARSHALLING(id);
    8080        MARSHALLING(nodeid);
    8181        MARSHALLING(dof);
  • issm/trunk-jpl/src/c/classes/Constraints/SpcStatic.h

    r22200 r22361  
    1414
    1515        private:
    16                 int        sid;             /*! id, to track it */
     16                int        id;             /*! id, to track it */
    1717                int        nodeid;          /*!node id          */
    1818                int        dof;             /*!component        */
     
    2525                /*SpcStatic constructors, destructors:{{{*/
    2626                SpcStatic();
    27                 SpcStatic(int sid,int nodeid, int dof,IssmDouble value,int analysis_type);
     27                SpcStatic(int id,int nodeid, int dof,IssmDouble value,int analysis_type);
    2828                ~SpcStatic();
    2929                /*}}}*/
  • issm/trunk-jpl/src/c/classes/Constraints/SpcTransient.cpp

    r20810 r22361  
    1616SpcTransient::SpcTransient(){/*{{{*/
    1717        penalty       = false;
    18         sid           = -1;
     18        id            = -1;
    1919        nodeid        = -1;
    2020        dof           = -1;
     
    2626}
    2727/*}}}*/
    28 SpcTransient::SpcTransient(int spc_sid,int spc_nodeid, int spc_dof,int spc_nsteps, IssmDouble* spc_times, IssmDouble* spc_values,int spc_analysis_type){/*{{{*/
     28SpcTransient::SpcTransient(int spc_id,int spc_nodeid, int spc_dof,int spc_nsteps, IssmDouble* spc_times, IssmDouble* spc_values,int spc_analysis_type){/*{{{*/
    2929
    3030        penalty = false;
    31         sid     = spc_sid;
     31        id     = spc_id;
    3232        nodeid  = spc_nodeid;
    3333        dof     = spc_dof;
     
    5252/*Object virtual functions definitions:*/
    5353Object* SpcTransient::copy() {/*{{{*/
    54         return new SpcTransient(sid,nodeid,dof,nsteps,times,values,analysis_type);
     54        return new SpcTransient(id,nodeid,dof,nsteps,times,values,analysis_type);
    5555}
    5656/*}}}*/
     
    6363        int i;
    6464        _printf_("SpcTransient:\n");
    65         _printf_("   sid: " << sid << "\n");
     65        _printf_("   id: " << id << "\n");
    6666        _printf_("   nodeid: " << nodeid << "\n");
    6767        _printf_("   dof: " << dof << "\n");
     
    7676/*}}}*/
    7777int     SpcTransient::Id(void){/*{{{*/
    78         return sid;
     78        return id;
    7979}
    8080/*}}}*/
     
    8383        MARSHALLING_ENUM(SpcTransientEnum);
    8484
    85         MARSHALLING(sid);
     85        MARSHALLING(id);
    8686        MARSHALLING(nodeid);
    8787        MARSHALLING(dof);
  • issm/trunk-jpl/src/c/classes/Constraints/SpcTransient.h

    r22200 r22361  
    1414
    1515        private:
    16                 int         sid;             /* id, to track it             */
     16                int         id;              /* id, to track it             */
    1717                int         nodeid;          /*node id                      */
    1818                int         dof;             /*component                    */
     
    2727                /*SpcTransient constructors, destructors:{{{*/
    2828                SpcTransient();
    29                 SpcTransient(int sid,int nodeid, int dof,int nsteps, IssmDouble* times, IssmDouble* values,int analysis_type);
     29                SpcTransient(int id_in,int nodeid, int dof,int nsteps, IssmDouble* times, IssmDouble* values,int analysis_type);
    3030                ~SpcTransient();
    3131                /*}}}*/
Note: See TracChangeset for help on using the changeset viewer.