Changeset 23573


Ignore:
Timestamp:
12/27/18 19:16:27 (6 years ago)
Author:
Mathieu Morlighem
Message:

CHG: new fields for nodes (comm)

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

Legend:

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

    r23499 r23573  
    2121Nodes::Nodes(){/*{{{*/
    2222        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;
    2327        return;
    2428}
    2529/*}}}*/
    2630Nodes::~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        }
    2743        return;
    2844}
  • issm/trunk-jpl/src/c/classes/Nodes.h

    r20810 r23573  
    1919
    2020        public:
     21                int*  common_recv;
     22                int** common_recv_ids;
     23                int*  common_send;
     24                int** common_send_ids;
    2125
    2226                /*constructors, destructors*/
Note: See TracChangeset for help on using the changeset viewer.