if (abort == false) {
//get matrix, list and rabund for execute
- if(globaldata->gSparseMatrix != NULL) { matrix = new SparseMatrix(*globaldata->gSparseMatrix); }
+ if(globaldata->gSparseMatrix != NULL) { matrix = globaldata->gSparseMatrix; }
if(globaldata->gListVector != NULL){
- list = new ListVector(*globaldata->gListVector);
+ list = globaldata->gListVector;
rabund = new RAbundVector(list->getRAbundVector());
}
ClusterCommand::~ClusterCommand(){
delete cluster;
- delete matrix;
- delete list;
delete rabund;
}