X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedsobs.cpp;h=36cacd6935727ba1763b436e25f334ab2c1862bc;hb=af27acb766f6947c45e1eb65438d878c7ea48ef3;hp=388356ea927c02cee168918026115c010c6d705f;hpb=50ed3b6104d5821d6184f882e1e1423d47dcbf10;p=mothur.git diff --git a/sharedsobs.cpp b/sharedsobs.cpp index 388356e..36cacd6 100644 --- a/sharedsobs.cpp +++ b/sharedsobs.cpp @@ -16,7 +16,7 @@ EstOutput SharedSobs::getValues(vector shared){ try { data.resize(1,0); - int observed = 0; + double observed = 0; //loop through the species in each group for (int k = 0; k < shared[0]->size(); k++) { @@ -29,13 +29,9 @@ EstOutput SharedSobs::getValues(vector shared){ return data; } catch(exception& e) { - cout << "Standard Error: " << e.what() << " has occurred in the SharedSobs class Function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; + m->errorOut(e, "SharedSobs", "getValues"); exit(1); } - catch(...) { - cout << "An unknown error has occurred in the SharedSobs class function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; - exit(1); - } } /***********************************************************************/