Skip to content
Snippets Groups Projects
Select Git revision
  • 9ca500f78387ba9ff289b58d0c2683810ef2dae6
  • master default protected
  • dof-renumbering
  • gdemesy-master-patch-30528
  • eval-space-time
  • oscillating_multiharm
  • MH_movement
  • axisqu
  • write_vtu_and_ensight_formats
  • movingband
  • CP_1972_add_vtu_file_writing
  • mortar
  • fast_freq_sweep_Resolution
  • applyresolvent_again
  • marteaua-master-patch-54323
  • patch-1
  • binde-master-patch-08072
  • binde-master-patch-52461
  • BCGSL
  • resolvent
  • TreeElementsOf
  • getdp_3_5_0
  • getdp_3_4_0
  • getdp_3_3_0
  • getdp_3_2_0
  • getdp_3_1_0
  • getdp_3_0_4
  • getdp_3_0_3
  • getdp_3_0_2
  • getdp_3_0_1
  • getdp_3_0_0
  • onelab_mobile_2.1.0
  • getdp_2_11_3 protected
  • getdp_2_11_2 protected
  • getdp_2_11_1 protected
  • getdp_2_11_0 protected
  • getdp_2_10_0 protected
  • getdp_2_9_2 protected
  • getdp_2_9_1 protected
  • getdp_2_9_0 protected
  • getdp_2_8_0 protected
41 results

F_PeWe.cpp

Blame
  • get_data_perf.py 843 B
    import gmsh
    import sys
    
    gmsh.initialize(sys.argv)
    
    # create a simple cartesian grid (you can make it finer e.g. by passing
    # "-clscale 0.01" on the command line)
    gmsh.model.add("square")
    gmsh.model.occ.addRectangle(0, 0, 0, 1, 1, 100)
    gmsh.model.occ.synchronize()
    gmsh.model.mesh.setTransfiniteSurface(100)
    gmsh.model.mesh.generate(2)
    
    # create a post-processing dataset
    gmsh.plugin.setNumber("NewView", "Value", 1.234)
    gmsh.plugin.run("NewView")
    
    # retrieve the dataset as a vector of vectors (one for each tag)
    print("before get")
    type, tags, data, time, numComp = gmsh.view.getModelData(0, 0)
    print("after get")
    
    # retrieve the dataset as a single vector (muuuuch faster for Python)
    print("before getHomogeneous")
    type2, tags2, data2, time2, numComp2 = gmsh.view.getHomogeneousModelData(0, 0)
    print("after getHomogeneous")
    
    gmsh.finalize()