X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=cluster.cpp;h=d0a83cfd0f4a7ccd5c73c8ea8966a8e3d49fc03c;hb=14bf280629e8e52ff1ea3c9da6f7aae1e28f9acb;hp=40537fe7b51eb759cf7be438bdd61978835a192c;hpb=06cf8fa0ded0e427361e9ecd27917c7a8a52b89f;p=mothur.git diff --git a/cluster.cpp b/cluster.cpp index 40537fe..d0a83cf 100644 --- a/cluster.cpp +++ b/cluster.cpp @@ -17,6 +17,7 @@ Cluster::Cluster(RAbundVector* rav, ListVector* lv, SparseMatrix* dm, float c, string f) : rabund(rav), list(lv), dMatrix(dm), method(f) { + try { /* cout << "sizeof(MatData): " << sizeof(MatData) << endl; cout << "sizeof(PCell*): " << sizeof(PCell*) << endl; @@ -66,6 +67,12 @@ rabund(rav), list(lv), dMatrix(dm), method(f) //save so you can modify as it changes in average neighbor cutoff = c; m = MothurOut::getInstance(); + + } + catch(exception& e) { + m->errorOut(e, "Cluster", "Cluster"); + exit(1); + } } /***********************************************************************/