Opened 17 years ago

Closed 15 years ago

#249 closed defect (fixed)

problem with domain.set_time()... NO writer?

Reported by: nick Owned by: ole
Priority: low Milestone:
Component: Functionality and features Version:
Severity: normal Keywords:
Cc:

Description

In the model to validate ANUGA to the circular island wavetank experiment. I have tried to start a model at 20 seconds using the following code. However I get an error about a 'writer'. I have checked in the code, look in anuga_validation circular_island, the 'domain.set_time(20.0)' line is commented out.

domain.set_boundary({'wave': Bts, 'wall': Br, 'buffer':Bd})
domain.set_time(20.0)
#-------------------------
# Evolve through time
#-------------------------
import time
t0 = time.time()

for t in domain.evolve(yieldstep = 1, finaltime = 30):
    domain.write_time()

Here is the error

File_function data obtained from: ts2cnew1_input.tms
  References:
    Start time:   0.000000
Traceback (most recent call last):
  File "run_circular.py", line 249, in ?
    for t in domain.evolve(yieldstep = 1, finaltime = 30):
  File "/d/cit/1/cit/unixhome/nbartzis/anuga/anuga_core/source/anuga/shallow_water/shallow_water_domain.py", line 432, in evolve
    self.store_timestep(self.quantities_to_be_stored)
  File "/d/cit/1/cit/unixhome/nbartzis/anuga/anuga_core/source/anuga/shallow_water/shallow_water_domain.py", line 461, in store_timestep
    self.writer.store_timestep(name)
AttributeError: Domain instance has no attribute 'writer'

Change History (1)

comment:1 Changed 15 years ago by nariman

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.