Changeset 3523


Ignore:
Timestamp:
04/13/10 11:38:28 (15 years ago)
Author:
seroussi
Message:

fixed problem in SpawnTria: matice, numpar and matpar are always the first ones

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Penta.cpp

    r3490 r3523  
    235235        Tria* tria=NULL;
    236236        int indices[3];
     237        int zero=0;
    237238        Hook* tria_hnodes=NULL;
    238239        Hook* tria_hmatice=NULL;
     
    246247
    247248        tria_hnodes =this->hnodes.Spawn(indices,3);
    248         tria_hmatice=this->hmatice.Spawn(indices,1);
    249         tria_hmatpar=this->hmatpar.Spawn(indices,1);
    250         tria_hnumpar=this->hnumpar.Spawn(indices,1);
     249        tria_hmatice=this->hmatice.Spawn(&zero,1);
     250        tria_hmatpar=this->hmatpar.Spawn(&zero,1);
     251        tria_hnumpar=this->hnumpar.Spawn(&zero,1);
    251252        tria_properties=(ElementProperties*)this->properties.Spawn(indices,3);
    252253
Note: See TracChangeset for help on using the changeset viewer.