]> git.donarmstrong.com Git - mothur.git/blobdiff - globaldata.cpp
added split.abund comand
[mothur.git] / globaldata.cpp
index 8f8d1ad5da1addc5dac09f68c6dec5a5b99c1568..69dccb5226638a3af2a2bb9936b774f6dc90169e 100644 (file)
@@ -47,6 +47,7 @@ void GlobalData::setFormat(string Format)             {       format = Format;                }
 
 /******************************************************/
 GlobalData::GlobalData() {
+       m = MothurOut::getInstance();
        //option definitions should go here...
        clear();
        gListVector = NULL;             
@@ -79,6 +80,7 @@ void GlobalData::clear() {
 //     fastafile               =   ""; //do we need this?
        treefile                =       "";
        sharedfile              =       "";
+       format = "";
 }
 
 
@@ -126,7 +128,7 @@ void GlobalData::newRead() {
                        names.clear();
        }
        catch(exception& e) {
-               errorOut(e, "GlobalData", "newRead");
+               m->errorOut(e, "GlobalData", "newRead");
                exit(1);
        }
 }
@@ -152,7 +154,7 @@ GlobalData::~GlobalData() {
                if (nameMap != NULL) { delete nameMap; nameMap = NULL; }
        }
        catch(exception& e) {
-               errorOut(e, "GlobalData", "~GlobalData");
+               m->errorOut(e, "GlobalData", "~GlobalData");
                exit(1);
        }
 }