Ignore:
Timestamp:
Mar 8, 2006, 1:39:11 PM (19 years ago)
Author:
ole
Message:

Changed domain.get_quantity() to return a quantity object rather than the values.
Updated tests accordingly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • development/analytical solutions/Analytical_solution_Yoon_import_mesh.py

    r2229 r2491  
    128128    interp = Interpolation(tri_array,t_array,[points])
    129129
    130     stage = domain.get_quantity('stage')[n_point]
    131     xmomentum = domain.get_quantity('xmomentum')[n_point]
    132     ymomentum = domain.get_quantity('ymomentum')[n_point]
     130    stage = domain.get_quantity('stage').get_values()[n_point]
     131    xmomentum = domain.get_quantity('xmomentum').get_values()[n_point]
     132    ymomentum = domain.get_quantity('ymomentum').get_values()[n_point]
    133133
    134134    interp_stage = interp.interpolate([[stage[0]],[stage[1]],[stage[2]]])
Note: See TracChangeset for help on using the changeset viewer.