Changeset 7569


Ignore:
Timestamp:
Nov 25, 2009, 4:26:43 PM (15 years ago)
Author:
sexton
Message:

changes to sww2dem to grab quantity values for a given time step (courtesy of Herve Damlamian, SOPAC). Unit test in development.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/data_manager.py

    r7562 r7569  
    24022402            new_res = num.zeros(res.shape[1], num.float)
    24032403            for k in xrange(res.shape[1]):
    2404                 new_res[k] = reduction(res[:,k])
     2404                if reduction == None:
     2405                    new_res[k] = res[timestep,k]
     2406                else:
     2407                    new_res[k] = reduction(res[:,k])
    24052408            res = new_res
    24062409
Note: See TracChangeset for help on using the changeset viewer.