Skip to content
Snippets Groups Projects
Select Git revision
  • master default
  • cgnsUnstructured
  • partitioning
  • poppler
  • HighOrderBLCurving
  • gmsh_3_0_4
  • gmsh_3_0_3
  • gmsh_3_0_2
  • gmsh_3_0_1
  • gmsh_3_0_0
  • gmsh_2_16_0
  • gmsh_2_15_0
  • gmsh_2_14_1
  • gmsh_2_14_0
  • gmsh_2_13_2
  • gmsh_2_13_1
  • gmsh_2_12_0
  • gmsh_2_11_0
  • gmsh_2_10_1
  • gmsh_2_10_0
  • gmsh_2_9_3
  • gmsh_2_9_2
  • gmsh_2_9_1
  • gmsh_2_9_0
  • gmsh_2_8_6
25 results

List.cpp

Forked from gmsh / gmsh
Source project has a limited visibility.
  • Christophe Geuzaine's avatar
    a131e83b
    · a131e83b
    Christophe Geuzaine authored
    Changed the initial allocation from
        liste->nmax = ((n - 1) / liste->incr + 1) * liste->incr,
    which does not allow us to allocate lists smaller than iste->incr, to
        liste->nmax = n;
    
    With this change, when we do "List_Create(1, N, sizeof(blah))", we
    initially only allocate sizeof(blah) instead of N*sizeof(blah).
    a131e83b
    History
    Christophe Geuzaine authored
    Changed the initial allocation from
        liste->nmax = ((n - 1) / liste->incr + 1) * liste->incr,
    which does not allow us to allocate lists smaller than iste->incr, to
        liste->nmax = n;
    
    With this change, when we do "List_Create(1, N, sizeof(blah))", we
    initially only allocate sizeof(blah) instead of N*sizeof(blah).