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/Loads/Pengrid.cpp

    r25497 r25506  
    144144}
    145145/*}}}*/
     146void    Pengrid::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/
     147
     148        _assert_(this);
     149
     150        /*ok, marshall operations: */
     151        int object_enum = PengridEnum;
     152        marshallhandle->call(object_enum);
     153        marshallhandle->call(this->id);
     154
     155        if(marshallhandle->OperationNumber()==MARSHALLING_LOAD){
     156                this->hnode    = new Hook();
     157                this->helement = new Hook();
     158        }
     159
     160        this->hnode->Marshall2(marshallhandle);
     161        this->helement->Marshall2(marshallhandle);
     162
     163        /*corresponding fields*/
     164        node   =(Node*)this->hnode->delivers();
     165        element=(Element*)this->helement->delivers();
     166
     167        marshallhandle->call(this->active);
     168        marshallhandle->call(this->zigzag_counter);
     169}/*}}}*/
    146170int     Pengrid::ObjectEnum(void){/*{{{*/
    147171
Note: See TracChangeset for help on using the changeset viewer.