Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#91 closed defect (worksforme)

User manual Sydney example crashes

Reported by: duncan Owned by: Ole
Priority: normal Milestone:
Component: Other Version: 1.0
Severity: normal Keywords:


When trying to run the Sydney example I got a crash. Does this work for anyone else? Is there a known reason why it doesn't work?

The crash;

Using attribute elevation from file m:\inundation\sydney_tsunami_examp
Available attributes: ['elevation']
Caching: looking for cached files c:\.python_cache\fit_to_mesh[-132031
| Tue Aug 29 10:38:42 2006. Evaluating function fit_to_mesh
| Arguments:    (Array: (14961, 2), Array: (29311, 3), Array: (989056,
 2), Array: (989056,))
| Keyword Args: {'alpha': None, 'mesh_origin': (-1, 316000.0, 6238000.
0), 'verbose': True, 'data_origin': (56, 332090, 6246250)}
| Reason:       No cached result
Traceback (most recent call last):
  File "I:\documentation\user_manual\examples\", line 119,
 in ?
    verbose = True)
  File "i:\anuga_core\source\anuga\pyvolution\", line 301, in
    self.quantities[name].set_values(*args, **kwargs)
  File "i:\anuga_core\source\anuga\pyvolution\", line 352,
in set_values
    use_cache = use_cache)
  File "i:\anuga_core\source\anuga\pyvolution\", line 745,
in set_values_from_file
    use_cache = use_cache)
  File "i:\anuga_core\source\anuga\pyvolution\", line 606,
in set_values_from_geospatial_data
    use_cache = use_cache)
  File "i:\anuga_core\source\anuga\pyvolution\", line 672,
in set_values_from_points
  File "I:\anuga_core\source\anuga\caching\", line 349, in c
    T = apply(func,args,kwargs)
  File "I:\anuga_core\source\anuga\fit_interpolate\", line 438,
in fit_to_mesh
  File "I:\anuga_core\source\anuga\fit_interpolate\", line 93, i
n __init__
  File "i:\anuga_core\source\anuga\fit_interpolate\general_fit_interpo", line 83, in __init__
  File "I:\anuga_core\source\anuga\pyvolution\", line
 601, in check_integrity
    a0 = anglediff(v1, v0)
  File "i:\anuga_core\source\anuga\utilities\", line
 73, in anglediff
    a1 = angle(v1)
  File "i:\anuga_core\source\anuga\utilities\", line
 49, in angle
    theta = acos(p)
ValueError: math domain error

Change History (4)

comment:1 Changed 16 years ago by ole

Doesn't work for me either - but in my case a file can't be found:

X:\inundation\sandpits\onielsen\anuga_core\documentation\user_manual\examples>python refzone 56 Traceback (most recent call last):

File "", line 28, in ?

import project # Define file names and polygons

File "X:\inundation\sandpits\onielsen\anuga_core\documentation\user_manual\examples\", line 59, in ?

northern_polygon = read_polygon(polygonptsfile0 + '.csv')

File "X:\inundation\sandpits\onielsen\anuga_core\source\anuga\utilities\", line 624, in read_polygon

fid = open(filename)

IOError: [Errno 2] No such file or directory: 'X:

comment:2 Changed 16 years ago by ole

  • Resolution set to worksforme
  • Status changed from new to closed

With INUNDATIONHOME set, it worked fine for me.

comment:3 Changed 16 years ago by Duncan <duncan.gray@…>

works for me as well now. Change set #6388 would'v fixed this.

comment:4 Changed 16 years ago by duncan

Oops. dyslexic error Changeset [3688] by ole Fixed get_boundary polygon based on information from new unit test. It now works for all examples of meshes provided.

Note: See TracTickets for help on using tickets.