1- // Copyright 2005-2008 Mark A. Bradley and John L. Bowman
1+ // Copyright 2005-2008 Mark A. Bradley and John L. Bowman
22// Copyright 2011-2013 John Bowman, Mark Bradley, and RSG, Inc.
33// You may not possess or use this file without a License for its use.
44// Unless required by applicable law or agreed to in writing, software
@@ -280,9 +280,9 @@ public sealed class AggregateLogsumsCalculator_Actum : IAggregateLogsumsCalculat
280280 public AggregateLogsumsCalculator_Actum ( ) {
281281 FileInfo file = Global . AggregateLogsumsPath . ToFile ( ) ;
282282
283- if ( Global . Configuration . ShouldLoadAggregateLogsumsFromFile && file . Exists ) {
284- return ;
285- }
283+ // if (Global.Configuration.ShouldLoadAggregateLogsumsFromFile && file.Exists) {
284+ // return;
285+ // }
286286
287287 Framework . DomainModels . Persisters . IPersisterReader < IZone > zoneReader =
288288 Global
@@ -298,11 +298,11 @@ public AggregateLogsumsCalculator_Actum() {
298298 public void Calculate ( IRandomUtility randomUtility ) {
299299 FileInfo file = Global . AggregateLogsumsPath . ToFile ( ) ;
300300
301- if ( Global . Configuration . ShouldLoadAggregateLogsumsFromFile && file . Exists ) {
302- Global . AggregateLogsums = LoadAggregateLogsumsFromFile ( file ) ;
301+ // if (Global.Configuration.ShouldLoadAggregateLogsumsFromFile && file.Exists) {
302+ // Global.AggregateLogsums = LoadAggregateLogsumsFromFile(file);
303303
304- return ;
305- }
304+ // return;
305+ // }
306306
307307 Global . AggregateLogsums = new double [ _zoneCount ] [ ] [ ] [ ] [ ] ;
308308
@@ -329,22 +329,22 @@ public void Calculate(IRandomUtility randomUtility) {
329329 }
330330 }
331331
332- if ( Global . Configuration . ShouldLoadAggregateLogsumsFromFile && ! file . Exists ) {
333- SaveAggregateLogsumsToFile ( file ) ;
334- }
332+ // if (Global.Configuration.ShouldLoadAggregateLogsumsFromFile && !file.Exists) {
333+ // SaveAggregateLogsumsToFile(file);
334+ // }
335335 }
336336
337337 private void CalculateZone ( IRandomUtility randomUtility , int id ) {
338338 Global . AggregateLogsums [ id ] = ComputeZone ( randomUtility , id ) ;
339339 }
340340
341- private double [ ] [ ] [ ] [ ] [ ] LoadAggregateLogsumsFromFile ( FileInfo file ) {
342- using ( FileStream stream = file . Open ( FileMode . Open , FileAccess . Read , FileShare . Read ) ) {
343- BinaryFormatter formatter = new BinaryFormatter ( ) ;
341+ // private double[][][][][] LoadAggregateLogsumsFromFile(FileInfo file) {
342+ // using (FileStream stream = file.Open(FileMode.Open, FileAccess.Read, FileShare.Read)) {
343+ // BinaryFormatter formatter = new BinaryFormatter();
344344
345- return ( double [ ] [ ] [ ] [ ] [ ] ) formatter . Deserialize ( stream ) ;
346- }
347- }
345+ // return (double[][][][][])formatter.Deserialize(stream);
346+ // }
347+ // }
348348
349349 private void SaveAggregateLogsumsToFile ( FileInfo file ) {
350350 using ( FileStream stream = file . Open ( FileMode . Create , FileAccess . Write , FileShare . Read ) ) {
0 commit comments