Changeset 22361
- Timestamp:
- 01/18/18 09:21:32 (7 years ago)
- 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 18 18 } 19 19 /*}}}*/ 20 SpcDynamic::SpcDynamic(int spc_ sid,int spc_nodeid, int spc_dof,int spc_analysis_type){/*{{{*/20 SpcDynamic::SpcDynamic(int spc_id,int spc_nodeid, int spc_dof,int spc_analysis_type){/*{{{*/ 21 21 22 sid = spc_sid;22 id = spc_id; 23 23 nodeid = spc_nodeid; 24 24 dof = spc_dof; … … 41 41 SpcDynamic* spcdyn = new SpcDynamic(*this); 42 42 43 spcdyn-> sid=this->sid;43 spcdyn->id=this->id; 44 44 spcdyn->nodeid=this->nodeid; 45 45 spcdyn->dof=this->dof; … … 60 60 61 61 _printf_("SpcDynamic:\n"); 62 _printf_(" sid: " << sid << "\n");62 _printf_(" id: " << id << "\n"); 63 63 _printf_(" nodeid: " << nodeid << "\n"); 64 64 _printf_(" dof: " << dof << "\n"); … … 69 69 } 70 70 /*}}}*/ 71 int SpcDynamic::Id(void){ return sid; }/*{{{*/71 int SpcDynamic::Id(void){ return id; }/*{{{*/ 72 72 /*}}}*/ 73 73 void SpcDynamic::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ … … 75 75 MARSHALLING_ENUM(SpcDynamicEnum); 76 76 77 MARSHALLING( sid);77 MARSHALLING(id); 78 78 MARSHALLING(nodeid); 79 79 MARSHALLING(dof); -
issm/trunk-jpl/src/c/classes/Constraints/SpcDynamic.h
r22200 r22361 14 14 15 15 private: 16 int sid;/*! id, to track it */16 int id; /*! id, to track it */ 17 17 int nodeid; /*!node id */ 18 18 int dof; /*!component */ … … 26 26 /*SpcDynamic constructors, destructors*/ 27 27 SpcDynamic(); 28 SpcDynamic(int sid,int nodeid, int dof,int analysis_type);28 SpcDynamic(int id_in,int nodeid, int dof,int analysis_type); 29 29 ~SpcDynamic(); 30 30 -
issm/trunk-jpl/src/c/classes/Constraints/SpcStatic.cpp
r22202 r22361 18 18 } 19 19 /*}}}*/ 20 SpcStatic::SpcStatic(int spc_ sid,int spc_nodeid, int spc_dof,IssmDouble spc_value,int spc_analysis_type){/*{{{*/20 SpcStatic::SpcStatic(int spc_id,int spc_nodeid, int spc_dof,IssmDouble spc_value,int spc_analysis_type){/*{{{*/ 21 21 22 sid = spc_sid;22 id = spc_id; 23 23 nodeid = spc_nodeid; 24 24 dof = spc_dof; … … 40 40 SpcStatic* spcstat = new SpcStatic(*this); 41 41 42 spcstat-> sid=this->sid;42 spcstat->id=this->id; 43 43 spcstat->nodeid=this->nodeid; 44 44 spcstat->dof=this->dof; … … 52 52 53 53 _printf_("SpcStatic:\n"); 54 _printf_(" sid: " << sid << "\n");54 _printf_(" id: " << id << "\n"); 55 55 _printf_(" nodeid: " << nodeid << "\n"); 56 56 _printf_(" dof: " << dof << "\n"); … … 63 63 64 64 _printf_("SpcStatic:\n"); 65 _printf_(" sid: " << sid << "\n");65 _printf_(" id: " << id << "\n"); 66 66 _printf_(" nodeid: " << nodeid << "\n"); 67 67 _printf_(" dof: " << dof << "\n"); … … 71 71 } 72 72 /*}}}*/ 73 int SpcStatic::Id(void){ return sid; }/*{{{*/73 int SpcStatic::Id(void){ return id; }/*{{{*/ 74 74 /*}}}*/ 75 75 void SpcStatic::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ … … 77 77 MARSHALLING_ENUM(SpcStaticEnum); 78 78 79 MARSHALLING( sid);79 MARSHALLING(id); 80 80 MARSHALLING(nodeid); 81 81 MARSHALLING(dof); -
issm/trunk-jpl/src/c/classes/Constraints/SpcStatic.h
r22200 r22361 14 14 15 15 private: 16 int sid; /*! id, to track it */16 int id; /*! id, to track it */ 17 17 int nodeid; /*!node id */ 18 18 int dof; /*!component */ … … 25 25 /*SpcStatic constructors, destructors:{{{*/ 26 26 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); 28 28 ~SpcStatic(); 29 29 /*}}}*/ -
issm/trunk-jpl/src/c/classes/Constraints/SpcTransient.cpp
r20810 r22361 16 16 SpcTransient::SpcTransient(){/*{{{*/ 17 17 penalty = false; 18 sid= -1;18 id = -1; 19 19 nodeid = -1; 20 20 dof = -1; … … 26 26 } 27 27 /*}}}*/ 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){/*{{{*/28 SpcTransient::SpcTransient(int spc_id,int spc_nodeid, int spc_dof,int spc_nsteps, IssmDouble* spc_times, IssmDouble* spc_values,int spc_analysis_type){/*{{{*/ 29 29 30 30 penalty = false; 31 sid = spc_sid;31 id = spc_id; 32 32 nodeid = spc_nodeid; 33 33 dof = spc_dof; … … 52 52 /*Object virtual functions definitions:*/ 53 53 Object* 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); 55 55 } 56 56 /*}}}*/ … … 63 63 int i; 64 64 _printf_("SpcTransient:\n"); 65 _printf_(" sid: " << sid << "\n");65 _printf_(" id: " << id << "\n"); 66 66 _printf_(" nodeid: " << nodeid << "\n"); 67 67 _printf_(" dof: " << dof << "\n"); … … 76 76 /*}}}*/ 77 77 int SpcTransient::Id(void){/*{{{*/ 78 return sid;78 return id; 79 79 } 80 80 /*}}}*/ … … 83 83 MARSHALLING_ENUM(SpcTransientEnum); 84 84 85 MARSHALLING( sid);85 MARSHALLING(id); 86 86 MARSHALLING(nodeid); 87 87 MARSHALLING(dof); -
issm/trunk-jpl/src/c/classes/Constraints/SpcTransient.h
r22200 r22361 14 14 15 15 private: 16 int sid;/* id, to track it */16 int id; /* id, to track it */ 17 17 int nodeid; /*node id */ 18 18 int dof; /*component */ … … 27 27 /*SpcTransient constructors, destructors:{{{*/ 28 28 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); 30 30 ~SpcTransient(); 31 31 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.