Changeset 19199


Ignore:
Timestamp:
03/16/15 16:37:24 (10 years ago)
Author:
Eric.Larour
Message:

CHG: implemented marshalling of Vertex, Node and DofIndexing.

Location:
issm/trunk-jpl/src/c/classes
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/c/classes/DofIndexing.cpp

    r18237 r19199  
    1515#include "../shared/Numerics/constants.h"
    1616#include "../shared/io/Print/Print.h"
     17#include "../shared/io/Marshalling/Marshalling.h"
    1718#include "../shared/Exceptions/exceptions.h"
    1819#include "../shared/MemOps/MemOps.h"
     
    294295}
    295296/*}}}*/
     297void DofIndexing::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/
     298
     299        MARSHALLING(gsize);
     300        MARSHALLING(fsize);
     301        MARSHALLING(ssize);
     302        MARSHALLING(clone);
     303        MARSHALLING(active);
     304        MARSHALLING_DYNAMIC(f_set,bool,fsize);
     305        MARSHALLING_DYNAMIC(s_set,bool,ssize);
     306        MARSHALLING_DYNAMIC(svalues,IssmDouble,gsize);
     307        MARSHALLING_DYNAMIC(doftype,int,gsize);
     308        MARSHALLING_DYNAMIC(gdoflist,int,gsize);
     309        MARSHALLING_DYNAMIC(fdoflist,int,fsize);
     310        MARSHALLING_DYNAMIC(sdoflist,int,ssize);
     311
     312}
     313/*}}}*/
  • TabularUnified issm/trunk-jpl/src/c/classes/DofIndexing.h

    r18237 r19199  
    4747                void  DeepEcho(void);
    4848                void  copy(const DofIndexing& in);
     49                void    Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction);
    4950                /*}}}*/
    5051                /*DofIndexing management: {{{*/
  • TabularUnified issm/trunk-jpl/src/c/classes/Node.cpp

    r18470 r19199  
    151151}
    152152/*}}}*/
     153void Node::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/
     154
     155        MARSHALLING_ENUM(NodeEnum);
     156        MARSHALLING(id);
     157        MARSHALLING(sid);
     158        MARSHALLING(lid);
     159        MARSHALLING(indexingupdate);
     160        indexing.Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction);
     161        MARSHALLING(analysis_enum);
     162        MARSHALLING_ARRAY(coord_system,IssmDouble,9);
     163
     164}
     165/*}}}*/
    153166
    154167/*Object virtual functions definitions:*/
  • TabularUnified issm/trunk-jpl/src/c/classes/Node.h

    r19198 r19199  
    5050                int     ObjectEnum();
    5151                Object *copy();
    52                 void    Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); };
     52                void    Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction);
    5353
    5454                /*Node numerical routines*/
  • TabularUnified issm/trunk-jpl/src/c/classes/Vertex.cpp

    r18492 r19199  
    8888
    8989        return new Vertex(*this);
     90
     91}
     92/*}}}*/
     93void Vertex::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/
     94
     95        MARSHALLING_ENUM(VertexEnum);
     96        MARSHALLING(clone);
     97        MARSHALLING(domaintype);
     98        MARSHALLING(id);
     99        MARSHALLING(sid);
     100        MARSHALLING(pid);
     101        MARSHALLING(x);
     102        MARSHALLING(y);
     103        MARSHALLING(z);
     104        MARSHALLING(sigma);
     105        MARSHALLING(connectivity);
    90106
    91107}
  • TabularUnified issm/trunk-jpl/src/c/classes/Vertex.h

    r19198 r19199  
    4242                int   ObjectEnum();
    4343                Object* copy();
    44                 void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); };
     44                void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction);
    4545
    4646                /*}}}*/
Note: See TracChangeset for help on using the changeset viewer.