Ignore:
Timestamp:
05/18/10 16:51:19 (15 years ago)
Author:
Eric.Larour
Message:

New TriaRef framework in place, just have to fill it up

File:
1 edited

Legend:

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

    r3821 r3828  
    4848        /*id: */
    4949        this->id=tria_id;
     50
     51        /*interpolation type: */
     52        this->InitInterpolationType(P1Enum);
    5053       
    5154        /*hooks: */
     
    186189        /*copy fields: */
    187190        tria->id=this->id;
     191        tria->interpolation_type=this->interpolation_type;
    188192        if(this->inputs){
    189193                tria->inputs=(Inputs*)this->inputs->Copy();
     
    240244         *object data (thanks to DataSet::Demarshall):*/
    241245        memcpy(&id,marshalled_dataset,sizeof(id));marshalled_dataset+=sizeof(id);
     246        memcpy(&interpolation_type,marshalled_dataset,sizeof(interpolation_type));marshalled_dataset+=sizeof(interpolation_type);
    242247
    243248        /*demarshall hooks: */
     
    306311        /*marshall Tria data: */
    307312        memcpy(marshalled_dataset,&id,sizeof(id));marshalled_dataset+=sizeof(id);
     313        memcpy(marshalled_dataset,&interpolation_type,sizeof(interpolation_type));marshalled_dataset+=sizeof(interpolation_type);
    308314
    309315        /*Marshall hooks: */
     
    330336       
    331337        return sizeof(id)
     338                +sizeof(interpolation_type)
    332339                +hnodes.MarshallSize()
    333340                +hmatice.MarshallSize()
Note: See TracChangeset for help on using the changeset viewer.