/home/kcamus/qaas_runs/169-443-9681/intel/AMG/build/AMG/AMG/test/amg.c: 798 - 1367
--------------------------------------------------------------------------------

798:          for (ix = ix_start; ix < ix_end; ix++)
799:          {
800:             cnt++;
801:             o_cnt++;
802:             diag_i[cnt]++;
803:             if (iz > nz*pz) 
804:             {
805:                diag_i[cnt]++;
806:                if (iy > ny*py) 
807:                {
808:                   diag_i[cnt]++;
809:       	          if (ix > nx*px)
810:       	          {
811:       	             diag_i[cnt]++;
812:       	          }
813:       	          else
814:       	          {
815:       	             if (ix) 
816:       		        offd_i[o_cnt]++;
817:       	          }
818:       	          if (ix < nx*(px+1)-1)
819:       	          {
820:       	             diag_i[cnt]++;
821:       	          }
822:       	          else
823:       	          {
824:       	             if (ix+1 < nx_global) 
825:       		        offd_i[o_cnt]++;
[...]
851:                if (ix > nx*px) 
852:                   diag_i[cnt]++;
853:                else
854:                {
855:                   if (ix) 
856:                   {
857:                      offd_i[o_cnt]++;
858:                   }
859:                }
860:                if (ix+1 < nx*(px+1)) 
861:                   diag_i[cnt]++;
862:                else
863:                {
864:                   if (ix+1 < nx_global) 
865:                   {
866:                      offd_i[o_cnt]++; 
867:                   }
868:                }
869:                if (iy+1 < ny*(py+1)) 
870:                {
871:                   diag_i[cnt]++;
872:       	          if (ix > nx*px)
873:       	          {
874:       	             diag_i[cnt]++;
875:       	          }
876:       	          else
877:       	          {
878:       	             if (ix) 
879:       		        offd_i[o_cnt]++;
880:       	          }
881:       	          if (ix < nx*(px+1)-1)
882:       	          {
883:       	             diag_i[cnt]++;
884:       	          }
885:       	          else
886:       	          {
887:       	             if (ix+1 < nx_global) 
888:       		        offd_i[o_cnt]++;
889:       	          }
890:                }
891:                else
892:                {
893:                   if (iy+1 < ny_global) 
894:                   {
895:                      offd_i[o_cnt]++;
896:       	             if (ix > nx*px)
897:       	             {
898:       	                offd_i[o_cnt]++;
899:       	             }
900:       	             else if (ix)
901:       	             {
902:       	                offd_i[o_cnt]++;
903:       	             }
904:       	             if (ix < nx*(px+1)-1)
905:       	             {
906:       	                offd_i[o_cnt]++;
907:       	             }
908:       	             else if (ix < nx_global-1)
909:       	             {
910:       	                offd_i[o_cnt]++;
[...]
917:                if (iz)
918: 	       {
919: 		  offd_i[o_cnt]++;
920:                   if (iy > ny*py) 
921:                   {
922:                      offd_i[o_cnt]++;
923:       	             if (ix > nx*px)
924:       	             {
925:       	                offd_i[o_cnt]++;
926:       	             }
927:       	             else
928:       	             {
929:       	                if (ix) 
930:       	   	        offd_i[o_cnt]++;
931:       	             }
932:       	             if (ix < nx*(px+1)-1)
933:       	             {
934:       	                offd_i[o_cnt]++;
935:       	             }
936:       	             else
937:       	             {
938:       	                if (ix+1 < nx_global) 
[...]
965:                   if (ix > nx*px) 
966:                      offd_i[o_cnt]++;
967:                   else
968:                   {
969:                      if (ix) 
970:                      {
971:                         offd_i[o_cnt]++; 
972:                      }
973:                   }
974:                   if (ix+1 < nx*(px+1)) 
975:                      offd_i[o_cnt]++;
976:                   else
977:                   {
978:                      if (ix+1 < nx_global) 
979:                      {
980:                         offd_i[o_cnt]++; 
981:                      }
982:                   }
983:                   if (iy+1 < ny*(py+1)) 
984:                   {
985:                      offd_i[o_cnt]++;
986:       	             if (ix > nx*px)
987:       	             {
988:       	                offd_i[o_cnt]++;
989:       	             }
990:       	             else
991:       	             {
992:       	                if (ix) 
993:       	   	           offd_i[o_cnt]++;
994:       	             }
995:       	             if (ix < nx*(px+1)-1)
996:       	             {
997:       	                offd_i[o_cnt]++;
998:       	             }
999:       	             else
1000:       	             {
1001:       	                if (ix+1 < nx_global) 
1002:       	   	           offd_i[o_cnt]++;
1003:       	             }
1004:                   }
1005:                   else
1006:                   {
1007:                      if (iy+1 < ny_global) 
1008:                      {
1009:                         offd_i[o_cnt]++;
1010:       	                if (ix > nx*px)
1011:       	                {
1012:       	                   offd_i[o_cnt]++;
1013:       	                }
1014:       	                else if (ix)
1015:       	                {
1016:       	                   offd_i[o_cnt]++;
1017:       	                }
1018:       	                if (ix < nx*(px+1)-1)
[...]
1032:                diag_i[cnt]++;
1033:    	       if (ix > nx*px)
1034:    	       {
1035:    	          diag_i[cnt]++;
1036:    	       }
1037:    	       else
1038:    	       {
1039:    	          if (ix) 
1040:    		     offd_i[o_cnt]++;
1041:    	       }
1042:    	       if (ix < nx*(px+1)-1)
1043:    	       {
1044:    	          diag_i[cnt]++;
1045:    	       }
1046:    	       else
1047:    	       {
1048:    	          if (ix+1 < nx_global) 
1049:    		     offd_i[o_cnt]++;
[...]
1075:             if (ix > nx*px) 
1076:                diag_i[cnt]++;
1077:             else
1078:             {
1079:                if (ix) 
1080:                {
1081:                   offd_i[o_cnt]++; 
1082:                }
1083:             }
1084:             if (ix+1 < nx*(px+1)) 
1085:                diag_i[cnt]++;
1086:             else
1087:             {
1088:                if (ix+1 < nx_global) 
1089:                {
1090:                   offd_i[o_cnt]++; 
1091:                }
1092:             }
1093:             if (iy+1 < ny*(py+1)) 
1094:             {
1095:                diag_i[cnt]++;
1096:    	       if (ix > nx*px)
1097:    	       {
1098:    	          diag_i[cnt]++;
1099:    	       }
1100:    	       else
1101:    	       {
1102:    	          if (ix) 
1103:    		     offd_i[o_cnt]++;
1104:    	       }
1105:    	       if (ix < nx*(px+1)-1)
1106:    	       {
1107:    	          diag_i[cnt]++;
1108:    	       }
1109:    	       else
1110:    	       {
1111:    	          if (ix+1 < nx_global) 
1112:    		     offd_i[o_cnt]++;
1113:    	       }
1114:             }
1115:             else
1116:             {
1117:                if (iy+1 < ny_global) 
1118:                {
1119:                   offd_i[o_cnt]++;
1120:    	          if (ix > nx*px)
1121:    	          {
1122:    	             offd_i[o_cnt]++;
1123:    	          }
1124:    	          else if (ix)
1125:    	          {
1126:    	             offd_i[o_cnt]++;
1127:    	          }
1128:    	          if (ix < nx*(px+1)-1)
1129:    	          {
1130:    	             offd_i[o_cnt]++;
1131:    	          }
1132:    	          else if (ix < nx_global-1)
1133:    	          {
1134:    	             offd_i[o_cnt]++;
1135:    	          }
1136:                }
1137:             }
1138:             if (iz+1 < nz*(pz+1)) 
1139:             {
1140:                diag_i[cnt]++;
1141:                if (iy > ny*py) 
1142:                {
1143:                   diag_i[cnt]++;
1144:       	          if (ix > nx*px)
1145:       	          {
1146:       	             diag_i[cnt]++;
1147:       	          }
1148:       	          else
1149:       	          {
1150:       	             if (ix) 
1151:       		        offd_i[o_cnt]++;
1152:       	          }
1153:       	          if (ix < nx*(px+1)-1)
1154:       	          {
1155:       	             diag_i[cnt]++;
1156:       	          }
1157:       	          else
1158:       	          {
1159:       	             if (ix+1 < nx_global) 
1160:       		        offd_i[o_cnt]++;
[...]
1186:                if (ix > nx*px) 
1187:                   diag_i[cnt]++;
1188:                else
1189:                {
1190:                   if (ix) 
1191:                   {
1192:                      offd_i[o_cnt]++; 
1193:                   }
1194:                }
1195:                if (ix+1 < nx*(px+1)) 
1196:                   diag_i[cnt]++;
1197:                else
1198:                {
1199:                   if (ix+1 < nx_global) 
1200:                   {
1201:                      offd_i[o_cnt]++; 
1202:                   }
1203:                }
1204:                if (iy+1 < ny*(py+1)) 
1205:                {
1206:                   diag_i[cnt]++;
1207:       	          if (ix > nx*px)
1208:       	          {
1209:       	             diag_i[cnt]++;
1210:       	          }
1211:       	          else
1212:       	          {
1213:       	             if (ix) 
1214:       		        offd_i[o_cnt]++;
1215:       	          }
1216:       	          if (ix < nx*(px+1)-1)
1217:       	          {
1218:       	             diag_i[cnt]++;
1219:       	          }
1220:       	          else
1221:       	          {
1222:       	             if (ix+1 < nx_global) 
1223:       		        offd_i[o_cnt]++;
1224:       	          }
1225:                }
1226:                else
1227:                {
1228:                   if (iy+1 < ny_global) 
1229:                   {
1230:                      offd_i[o_cnt]++;
1231:       	             if (ix > nx*px)
1232:       	             {
1233:       	                offd_i[o_cnt]++;
1234:       	             }
1235:       	             else if (ix)
1236:       	             {
1237:       	                offd_i[o_cnt]++;
1238:       	             }
1239:       	             if (ix < nx*(px+1)-1)
1240:       	             {
1241:       	                offd_i[o_cnt]++;
1242:       	             }
1243:       	             else if (ix < nx_global-1)
[...]
1252:                if (iz+1 < nz_global)
1253: 	       {
1254: 		  offd_i[o_cnt]++;
1255:                   if (iy > ny*py) 
1256:                   {
1257:                      offd_i[o_cnt]++;
1258:       	             if (ix > nx*px)
1259:       	             {
1260:       	                offd_i[o_cnt]++;
1261:       	             }
1262:       	             else
1263:       	             {
1264:       	                if (ix) 
1265:       	   	        offd_i[o_cnt]++;
1266:       	             }
1267:       	             if (ix < nx*(px+1)-1)
1268:       	             {
1269:       	                offd_i[o_cnt]++;
1270:       	             }
1271:       	             else
1272:       	             {
1273:       	                if (ix+1 < nx_global) 
1274:       	   	        offd_i[o_cnt]++;
[...]
1300:                   if (ix > nx*px) 
1301:                      offd_i[o_cnt]++;
1302:                   else
1303:                   {
1304:                      if (ix) 
1305:                      {
1306:                         offd_i[o_cnt]++; 
1307:                      }
1308:                   }
1309:                   if (ix+1 < nx*(px+1)) 
1310:                      offd_i[o_cnt]++;
1311:                   else
1312:                   {
1313:                      if (ix+1 < nx_global) 
1314:                      {
1315:                         offd_i[o_cnt]++; 
1316:                      }
1317:                   }
1318:                   if (iy+1 < ny*(py+1)) 
1319:                   {
1320:                      offd_i[o_cnt]++;
1321:       	             if (ix > nx*px)
1322:       	             {
1323:       	                offd_i[o_cnt]++;
1324:       	             }
1325:       	             else
1326:       	             {
1327:       	                if (ix) 
1328:       	   	           offd_i[o_cnt]++;
1329:       	             }
1330:       	             if (ix < nx*(px+1)-1)
1331:       	             {
1332:       	                offd_i[o_cnt]++;
[...]
1342:                      if (iy+1 < ny_global) 
1343:                      {
1344:                         offd_i[o_cnt]++;
1345:       	                if (ix > nx*px)
1346:       	                {
1347:       	                   offd_i[o_cnt]++;
1348:       	                }
1349:       	                else if (ix)
1350:       	                {
1351:       	                   offd_i[o_cnt]++;
1352:       	                }
1353:       	                if (ix < nx*(px+1)-1)
[...]
1365:             nnz[my_thread] += diag_i[cnt]+offd_i[o_cnt];
1366:             row_nums[cnt] = row_index+cnt;
1367:             num_cols[cnt] = diag_i[cnt]+offd_i[o_cnt];
