X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedsobscollectsummary.cpp;h=e2e169c58788dfcd7e9aa313b7105a446bef7867;hb=264c8a3c759d9a999c485236e98dac98d4f0db5f;hp=6815d875fa6d0bf5f1ad88f0fa7e26aeda20568b;hpb=50ed3b6104d5821d6184f882e1e1423d47dcbf10;p=mothur.git diff --git a/sharedsobscollectsummary.cpp b/sharedsobscollectsummary.cpp index 6815d87..e2e169c 100644 --- a/sharedsobscollectsummary.cpp +++ b/sharedsobscollectsummary.cpp @@ -16,7 +16,7 @@ EstOutput SharedSobsCS::getValues(vector shared){ try { data.resize(1,0); - int observed = 0; + double observed = 0; int numGroups = shared.size(); for (int i = 0; i < shared[0]->size(); i++) { @@ -34,13 +34,9 @@ EstOutput SharedSobsCS::getValues(vector shared){ return data; } catch(exception& e) { - cout << "Standard Error: " << e.what() << " has occurred in the SharedSobsCS class Function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; + m->errorOut(e, "SharedSobsCS", "getValues"); exit(1); } - catch(...) { - cout << "An unknown error has occurred in the SharedSobsCS class function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; - exit(1); - } } -/***********************************************************************/ \ No newline at end of file +/***********************************************************************/