Changeset 23573
- Timestamp:
- 12/27/18 19:16:27 (6 years ago)
- Location:
- issm/trunk-jpl/src/c/classes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Nodes.cpp
r23499 r23573 21 21 Nodes::Nodes(){/*{{{*/ 22 22 enum_type=NodesEnum; 23 this->common_recv = NULL; 24 this->common_recv_ids = NULL; 25 this->common_send = NULL; 26 this->common_send_ids = NULL; 23 27 return; 24 28 } 25 29 /*}}}*/ 26 30 Nodes::~Nodes(){/*{{{*/ 31 int num_proc=IssmComm::GetSize(); 32 33 if(this->common_recv) xDelete<int>(common_recv); 34 if(this->common_send) xDelete<int>(common_send); 35 if(this->common_recv_ids){ 36 for(int i=0;i<num_proc;i++) if(common_recv_ids[i]) xDelete<int>(common_recv_ids[i]); 37 xDelete<int*>(common_recv_ids); 38 } 39 if(this->common_send_ids){ 40 for(int i=0;i<num_proc;i++) if(common_send_ids[i]) xDelete<int>(common_send_ids[i]); 41 xDelete<int*>(common_send_ids); 42 } 27 43 return; 28 44 } -
issm/trunk-jpl/src/c/classes/Nodes.h
r20810 r23573 19 19 20 20 public: 21 int* common_recv; 22 int** common_recv_ids; 23 int* common_send; 24 int** common_send_ids; 21 25 22 26 /*constructors, destructors*/
Note:
See TracChangeset
for help on using the changeset viewer.