- (*pos)->update(shared1, shared2, NumSeqs, NumGroupComb);
+
+ if ((*pos)->calcNeedsAll() == true) {
+ (*pos)->update(shared, NumSeqs, NumGroupComb);
+ }else{
+
+ if ( ((*pos)->isCalcMultiple() == true) && ((*pos)->getAll() == true) && (!pairs) ) {
+ (*pos)->update(shared, NumSeqs, NumGroupComb);
+ }else {
+ vector<SharedRAbundVector*> temp; temp.push_back(shared[0]); temp.push_back(shared[1]);
+ shared = temp;
+
+ (*pos)->update(shared, NumSeqs, NumGroupComb);
+ }
+ }