if(rank>0) of.open( (fulldir + "/rank" + cRank + ".tmp").c_str() );
else of.open( (fulldir + "/" + signature + ".dat").c_str() );
logf.open( (fulldir + "/rank" + cRank + ".log").c_str() );
if(rank>0) of.open( (fulldir + "/rank" + cRank + ".tmp").c_str() );
else of.open( (fulldir + "/" + signature + ".dat").c_str() );
logf.open( (fulldir + "/rank" + cRank + ".log").c_str() );