Changeset 18516


Ignore:
Timestamp:
09/12/14 15:48:14 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: some updates, still not working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/contrib/paraview/exportVTK.py

    r18515 r18516  
    2727#get the element related variables
    2828if model.mesh.shape[0]==2:
    29     points=[model.mesh.x model.mesh.y zeros(model.mesh.numberofvertices,1)];
     29    points=[model.mesh.x,model.mesh.y,zeros(model.mesh.numberofvertices,1)];
    3030else:
    31     points=[model.mesh.x model.mesh.y model.mesh.z]
     31    points=[model.mesh.x,model.mesh.y,model.mesh.z]
    3232
    3333[num_of_points,dim]=numpy.size(points)
     
    5252    #%building solutionstructure
    5353    for solution in num_of_sols:
    54         sol_struct{i}=res_struct.(solnames{i});
     54        sol_struct[i]=res_struct.(solnames[i]);
    5555        #looking for multiple time steps
    56         if(numpy.size(sol_struct{i},2)>num_of_timesteps):
    57             num_of_timesteps=numpy.size(sol_struct{i},2);
     56        if(numpy.size(sol_struct[i],2)>num_of_timesteps):
     57            num_of_timesteps=numpy.size(sol_struct[i],2);
    5858
    5959else:
Note: See TracChangeset for help on using the changeset viewer.