Ignore:
Timestamp:
09/01/20 13:22:48 (5 years ago)
Author:
Mathieu Morlighem
Message:

NEW: new way of Marshalling femmodel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Materials/Matlitho.cpp

    r23524 r25506  
    175175}
    176176/*}}}*/
     177void Matlitho::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/
     178
     179        int object_enum = MatlithoEnum;
     180        marshallhandle->call(object_enum);
     181
     182        marshallhandle->call(this->numlayers);
     183        if(numlayers) {
     184                marshallhandle->call(this->radius,numlayers+1);
     185                marshallhandle->call(this->viscosity,numlayers);
     186                marshallhandle->call(this->lame_lambda,numlayers);
     187                marshallhandle->call(this->lame_mu,numlayers);
     188                marshallhandle->call(this->burgers_viscosity,numlayers);
     189                marshallhandle->call(this->burgers_mu,numlayers);
     190                marshallhandle->call(this->density,numlayers);
     191                marshallhandle->call(this->isburgers,numlayers);
     192                marshallhandle->call(this->issolid,numlayers);
     193        }
     194        else{
     195                radius            = NULL;
     196                viscosity         = NULL;
     197                lame_lambda       = NULL;
     198                lame_mu           = NULL;
     199                burgers_viscosity = NULL;
     200                burgers_mu        = NULL;
     201                density           = NULL;
     202                isburgers         = NULL;
     203                issolid           = NULL;
     204        }
     205
     206}
     207/*}}}*/
    177208int  Matlitho::ObjectEnum(void){/*{{{*/
    178209
Note: See TracChangeset for help on using the changeset viewer.