Displaying differences for changeset
 
display as  

src/java/cfa/guiRegionalFDC_Model.java

@@ -167,7 +167,11 @@
         for(int i=0; i<currentFDC.length; i++){
             if(currentFDC[i] != -1){
                 modifiedFDC.add(currentFDC[i]);
-                modifiedFlows.add(currentFlows[i] / normalizingMetric);
+                if(normalizingMetric > 0){
+                    modifiedFlows.add(currentFlows[i] / normalizingMetric);
+                }else{
+                    modifiedFlows.add(0.);
+                }
             }
         }