60 if (verbose) cout <<
"\n\nXXXXX Testing Post-construction modification of a multivector"
69 int testVecIndex = NumVectors/2;
73 int FirstEntryOfGID = 0;
75 if (Map.
MyGID(testGID)) {
76 LIDOfGID = Map.
LID(testGID);
89 if (Map.
MyGID(testGID)) {
90 if (X[testVecIndex][FirstEntryOfGID]!=newGIDValue) err++;
91 if (verbose) cout <<
"X["<<testVecIndex<<
"]["<<FirstEntryOfGID<<
"] = "
92 << X[testVecIndex][FirstEntryOfGID]
93 <<
" should = " << newGIDValue << endl;
104 if (Map.
MyGID(testGID)) {
105 if (X[testVecIndex][FirstEntryOfGID+GIDSize-1]!=newGIDValue) err++;
106 if (verbose) cout <<
"X["<<testVecIndex<<
"]["<<FirstEntryOfGID+GIDSize-1<<
"] = "
107 << X[testVecIndex][FirstEntryOfGID+GIDSize-1]
108 <<
" should = " << newGIDValue << endl;
111 if (locerr!=0) err++;
120 if (Map.
MyGID(testGID)) {
121 if (X[testVecIndex][FirstEntryOfGID]!=(newGIDValue+newGIDValue)) err++;
122 if (verbose) cout <<
"X["<<testVecIndex<<
"]["<<FirstEntryOfGID<<
"] = "
123 << X[testVecIndex][FirstEntryOfGID]
124 <<
" should = " << newGIDValue+newGIDValue << endl;
127 if (locerr!=0) err++;
137 if (Map.
MyGID(testGID)) {
138 if (X[testVecIndex][FirstEntryOfGID+GIDSize-1]!=(newGIDValue+newGIDValue)) err++;
139 if (verbose) cout <<
"X["<<testVecIndex<<
"]["<<FirstEntryOfGID+GIDSize-1<<
"] = "
140 << X[testVecIndex][FirstEntryOfGID+GIDSize-1]
141 <<
" should = " << newGIDValue+newGIDValue << endl;
144 if (locerr!=0) err++;
160 if (X[testVecIndex][FirstEntryOfLID]!=newLIDValue) err++;
161 if (verbose) cout <<
"X["<<testVecIndex<<
"]["<<FirstEntryOfLID<<
"] = "
162 << X[testVecIndex][FirstEntryOfLID]
163 <<
" should = " << newLIDValue << endl;
166 locerr = X.
ReplaceMyValue(testLID, LIDSize-1, testVecIndex, newLIDValue);
167 if (X[testVecIndex][FirstEntryOfLID+LIDSize-1]!=newLIDValue) err++;
168 if (verbose) cout <<
"X["<<testVecIndex<<
"]["<<FirstEntryOfLID+LIDSize-1<<
"] = "
169 << X[testVecIndex][FirstEntryOfLID+LIDSize-1]
170 <<
" should = " << newLIDValue << endl;
174 if (X[testVecIndex][FirstEntryOfLID]!=(newLIDValue+newLIDValue)) err++;
175 if (verbose) cout <<
"X["<<testVecIndex<<
"]["<<FirstEntryOfLID<<
"] = "
176 << X[testVecIndex][FirstEntryOfLID]
177 <<
" should = " << newLIDValue+newLIDValue << endl;
179 locerr = X.
ReplaceMyValue(testLID, LIDSize-1, testVecIndex, newLIDValue);
180 locerr = X.
SumIntoMyValue(testLID, LIDSize-1, testVecIndex, newLIDValue);
181 if (X[testVecIndex][FirstEntryOfLID+LIDSize-1]!=(newLIDValue+newLIDValue)) err++;
182 if (verbose) cout <<
"X["<<testVecIndex<<
"]["<<FirstEntryOfLID+LIDSize-1<<
"] = "
183 << X[testVecIndex][FirstEntryOfLID+LIDSize-1]
184 <<
" should = " << newLIDValue+newLIDValue << endl;