Changeset 18516
- Timestamp:
- 09/12/14 15:48:14 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/contrib/paraview/exportVTK.py
r18515 r18516 27 27 #get the element related variables 28 28 if model.mesh.shape[0]==2: 29 points=[model.mesh.x model.mesh.yzeros(model.mesh.numberofvertices,1)];29 points=[model.mesh.x,model.mesh.y,zeros(model.mesh.numberofvertices,1)]; 30 30 else: 31 points=[model.mesh.x model.mesh.ymodel.mesh.z]31 points=[model.mesh.x,model.mesh.y,model.mesh.z] 32 32 33 33 [num_of_points,dim]=numpy.size(points) … … 52 52 #%building solutionstructure 53 53 for solution in num_of_sols: 54 sol_struct {i}=res_struct.(solnames{i});54 sol_struct[i]=res_struct.(solnames[i]); 55 55 #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); 58 58 59 59 else:
Note:
See TracChangeset
for help on using the changeset viewer.