id summary reporter owner description type status priority milestone component version severity resolution keywords cc 176 export_grid in data_manager sometimes has memory allocation error anonymous duncan "When using export_grid to export multiple quantities from one sww file, often a memory allocation error is thrown. This seems more common with big sww files. {{{ Traceback (most recent call last): File ""run_broome_urs.py"", line 268, in ? File ""run_broome_urs.py"", line 252, in run_model buildings_filename_out = project_urs.buildings_filename_out File ""/d/cit/1/cit/unixhome/nbartzis/anuga/anuga_core/source/anuga/shallow_water/data_manager.py"", line 1687, in export_grid format) File ""/d/cit/1/cit/unixhome/nbartzis/anuga/anuga_core/source/anuga/shallow_water/data_manager.py"", line 1859, in sww2dem quantity_dict[name] = fid.variables[name][:] MemoryError: can't allocate memory for array }}} Looking at the code the memory should not be increasing each time it outputs a different quantities' grid but thats what seems to happen. As the error always occurs after at least one grid has been written. J:\inundation\data\western_australia\broome_tsunami_scenario_2006\anuga\outputs\20070615_063022_run_final_4.9_exmouth_nbartzis So we need to look in to where the memory is being allocated and minimise it. " defect closed high Functionality and features minor fixed