Index: ../trunk-jpl/src/c/classes/Segment.h =================================================================== --- ../trunk-jpl/src/c/classes/Segment.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Segment.h (revision 25507) @@ -64,10 +64,6 @@ /*}}}*/ int Id(void){ return eid; }/*{{{*/ /*}}}*/ - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ - _error_("not implemented yet!"); - } - /*}}}*/ void Marshall2(MarshallHandle* marshallhandle){/*{{{*/ _error_("not implemented yet!"); } Index: ../trunk-jpl/src/c/classes/Nodes.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Nodes.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Nodes.cpp (revision 25507) @@ -102,40 +102,6 @@ return output; } /*}}}*/ -void Nodes::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - int num_procs=IssmComm::GetSize(); - int test = num_procs; - MARSHALLING_ENUM(NodesEnum); - MARSHALLING(numberofnodes); - MARSHALLING(numberofnodes_local); - MARSHALLING(numberofmasters_local); - - MARSHALLING(test); - if(test!=num_procs) _error_("number of cores is not the same as before"); - - DataSet::Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - - if(marshall_direction == MARSHALLING_LOAD){ - this->common_recv_ids = xNew(num_procs); - this->common_send_ids = xNew(num_procs); - for(int i=0;icommon_recv_ids[i] = NULL; - this->common_send_ids[i] = NULL; - } - } - - /*Stop here if no nodes*/ - if(this->Size()==0) return; - - MARSHALLING_DYNAMIC(this->common_recv,int,num_procs); - MARSHALLING_DYNAMIC(this->common_send,int,num_procs); - for(int i=0;icommon_recv[i]) MARSHALLING_DYNAMIC(this->common_recv_ids[i],int,this->common_recv[i]); - if(this->common_send[i]) MARSHALLING_DYNAMIC(this->common_send_ids[i],int,this->common_send[i]); - } -} -/*}}}*/ void Nodes::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = NodesEnum; Index: ../trunk-jpl/src/c/classes/Cfdragcoeffabsgrad.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Cfdragcoeffabsgrad.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Cfdragcoeffabsgrad.cpp (revision 25507) @@ -72,10 +72,6 @@ return -1; } /*}}}*/ -void Cfdragcoeffabsgrad::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ - _error_("not implemented yet!"); -} -/*}}}*/ void Cfdragcoeffabsgrad::Marshall2(MarshallHandle* marshallhandle){/*{{{*/ _error_("not implemented yet!"); } Index: ../trunk-jpl/src/c/classes/Vertex.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Vertex.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Vertex.cpp (revision 25507) @@ -113,23 +113,6 @@ /*}}}*/ int Vertex::Id(void){ return id; }/*{{{*/ /*}}}*/ -void Vertex::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(VertexEnum); - MARSHALLING(clone); - MARSHALLING(domaintype); - MARSHALLING(id); - MARSHALLING(sid); - MARSHALLING(pid); - MARSHALLING(lid); - MARSHALLING(x); - MARSHALLING(y); - MARSHALLING(z); - MARSHALLING(sigma); - MARSHALLING(connectivity); - -} -/*}}}*/ void Vertex::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = VertexEnum; Index: ../trunk-jpl/src/c/classes/Cfsurfacelogvel.h =================================================================== --- ../trunk-jpl/src/c/classes/Cfsurfacelogvel.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Cfsurfacelogvel.h (revision 25507) @@ -33,7 +33,6 @@ void DeepEcho(void); void Echo(void); int Id(void); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(void); Index: ../trunk-jpl/src/c/classes/Profiler.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Profiler.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Profiler.cpp (revision 25507) @@ -63,22 +63,6 @@ return -1; } /*}}}*/ -void Profiler::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - IssmPDouble* pointer = NULL; - bool* bpointer = NULL; - - MARSHALLING_ENUM(ProfilerEnum); - pointer = &this->time[0]; - MARSHALLING_DYNAMIC(pointer,IssmPDouble,MAXPROFSIZE); - pointer = &this->flops[0]; - MARSHALLING_DYNAMIC(pointer,IssmPDouble,MAXPROFSIZE); - pointer = &this->memory[0]; - MARSHALLING_DYNAMIC(pointer,IssmPDouble,MAXPROFSIZE); - bpointer = &this->running[0]; - MARSHALLING_DYNAMIC(bpointer,bool,MAXPROFSIZE); - -} /*}}}*/ void Profiler::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ IssmPDouble* pointer = NULL; Index: ../trunk-jpl/src/c/classes/Constraints/SpcDynamic.h =================================================================== --- ../trunk-jpl/src/c/classes/Constraints/SpcDynamic.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Constraints/SpcDynamic.h (revision 25507) @@ -33,7 +33,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); Index: ../trunk-jpl/src/c/classes/Constraints/SpcStatic.h =================================================================== --- ../trunk-jpl/src/c/classes/Constraints/SpcStatic.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Constraints/SpcStatic.h (revision 25507) @@ -32,7 +32,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Constraints/SpcTransient.h =================================================================== --- ../trunk-jpl/src/c/classes/Constraints/SpcTransient.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Constraints/SpcTransient.h (revision 25507) @@ -34,7 +34,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Constraints/SpcDynamic.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Constraints/SpcDynamic.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Constraints/SpcDynamic.cpp (revision 25507) @@ -70,20 +70,6 @@ /*}}}*/ int SpcDynamic::Id(void){ return id; }/*{{{*/ /*}}}*/ -void SpcDynamic::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(SpcDynamicEnum); - - MARSHALLING(id); - MARSHALLING(nodeid); - MARSHALLING(dof); - MARSHALLING(value); - MARSHALLING(analysis_type); - MARSHALLING(isset); - MARSHALLING(penalty); - -} -/*}}}*/ void SpcDynamic::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = SpcDynamicEnum; Index: ../trunk-jpl/src/c/classes/Constraints/SpcStatic.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Constraints/SpcStatic.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Constraints/SpcStatic.cpp (revision 25507) @@ -72,19 +72,6 @@ /*}}}*/ int SpcStatic::Id(void){ return id; }/*{{{*/ /*}}}*/ -void SpcStatic::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(SpcStaticEnum); - - MARSHALLING(id); - MARSHALLING(nodeid); - MARSHALLING(dof); - MARSHALLING(value); - MARSHALLING(analysis_type); - MARSHALLING(penalty); - -} -/*}}}*/ void SpcStatic::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = SpcStaticEnum; Index: ../trunk-jpl/src/c/classes/Constraints/SpcTransient.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Constraints/SpcTransient.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Constraints/SpcTransient.cpp (revision 25507) @@ -78,27 +78,6 @@ return id; } /*}}}*/ -void SpcTransient::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(SpcTransientEnum); - - MARSHALLING(id); - MARSHALLING(nodeid); - MARSHALLING(dof); - MARSHALLING(analysis_type); - MARSHALLING(penalty); - MARSHALLING(nsteps); - if(nsteps){ - MARSHALLING_DYNAMIC(values,IssmDouble,nsteps); - MARSHALLING_DYNAMIC(times,IssmDouble,nsteps); - } - else{ - values=NULL; - times=NULL; - } - -} -/*}}}*/ void SpcTransient::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = SpcTransientEnum; Index: ../trunk-jpl/src/c/classes/Regionaloutput.h =================================================================== --- ../trunk-jpl/src/c/classes/Regionaloutput.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Regionaloutput.h (revision 25507) @@ -32,7 +32,6 @@ void DeepEcho(void); void Echo(void); int Id(void); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(void); Index: ../trunk-jpl/src/c/classes/Cfsurfacesquare.h =================================================================== --- ../trunk-jpl/src/c/classes/Cfsurfacesquare.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Cfsurfacesquare.h (revision 25507) @@ -38,7 +38,6 @@ void DeepEcho(void); void Echo(void); int Id(void); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(void); Index: ../trunk-jpl/src/c/classes/FemModel.cpp =================================================================== --- ../trunk-jpl/src/c/classes/FemModel.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/FemModel.cpp (revision 25507) @@ -259,7 +259,6 @@ femmodel_buffer_ini=femmodel_buffer; /*Marshall:*/ - //this->Marshall(&femmodel_buffer,NULL,MARSHALLING_WRITE); WriteCheckpointFunctor* marshallhandle = new WriteCheckpointFunctor(&femmodel_buffer); this->Marshall2(marshallhandle); delete marshallhandle; @@ -484,91 +483,6 @@ /*Clean up*/ delete iomodel; }/*}}}*/ -void FemModel::Marshall(char** pmarshalled_data, int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - int i; - int analysis_type; - - if(marshall_direction==MARSHALLING_LOAD){ - delete this->materials; - delete this->parameters; - delete this->inputs; - if(this->constraints_list && this->nummodels){ - for(i=0;inummodels;i++) delete this->constraints_list[i]; - xDelete(constraints_list); - } - if(this->loads_list && this->nummodels){ - for(i=0;inummodels;i++) delete this->loads_list[i]; - xDelete(loads_list); - } - if(this->nodes_list && this->nummodels){ - for(i=0;inummodels;i++) delete this->nodes_list[i]; - xDelete(nodes_list); - } - delete this->results; - delete this->vertices; - delete this->elements; - xDelete(this->analysis_type_list); - - this->materials = new Materials(); - this->parameters = new Parameters(); - this->inputs = new Inputs(); - this->results = new Results(); - this->nodes = new Nodes(); - this->vertices = new Vertices(); - this->elements = new Elements(); - } - - MARSHALLING_ENUM(FemModelEnum); - - MARSHALLING(solution_type); - MARSHALLING(analysis_counter); - MARSHALLING(nummodels); - MARSHALLING_DYNAMIC(analysis_type_list,int,nummodels); - - this->materials->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->parameters->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->inputs->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->results->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->vertices->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->elements->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - - if(marshall_direction==MARSHALLING_LOAD){ - this->constraints_list = xNew(this->nummodels); - for(i=0;iconstraints_list[i] = new Constraints(); - this->loads_list = xNew(this->nummodels); - for(i=0;iloads_list[i] = new Loads(); - this->nodes_list = xNew(this->nummodels); - for(i=0;inodes_list[i] = new Nodes(); - } - - for(i=0;iconstraints_list[i]->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->loads_list[i]->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->nodes_list[i]->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - } - - if(marshall_direction==MARSHALLING_LOAD){ - /*reset hooks for elements, loads and nodes:*/ - this->elements->ResetHooks(); - this->materials->ResetHooks(); - - /*do the post-processing of the datasets to get an FemModel that can actually run analyses:*/ - for(i=0;iloads_list[i]->ResetHooks(); - analysis_type=this->analysis_type_list[i]; - SetCurrentConfiguration(analysis_type); - SpcNodesx(this->nodes_list[i],this->constraints_list[i],this->parameters); - NodesDofx(this->nodes_list[i],this->parameters); - ConfigureObjectsx(this->elements,this->loads_list[i],this->nodes_list[i],this->vertices,this->materials,this->parameters,this->inputs); - } - - //Reset current configuration: - analysis_type=this->analysis_type_list[analysis_counter]; - SetCurrentConfiguration(analysis_type); - } -} -/*}}}*/ void FemModel::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ /*Allocate new fields if necessary*/ @@ -692,7 +606,6 @@ femmodel_buffer_ini=femmodel_buffer; //keep track of the initial position, so as to free later. /*Create new FemModel by demarshalling the buffer: */ - //this->Marshall(&femmodel_buffer,NULL,MARSHALLING_LOAD); LoadCheckpointFunctor* marshallhandle = new LoadCheckpointFunctor(&femmodel_buffer); this->Marshall2(marshallhandle); delete marshallhandle; Index: ../trunk-jpl/src/c/classes/Vertices.h =================================================================== --- ../trunk-jpl/src/c/classes/Vertices.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Vertices.h (revision 25507) @@ -30,7 +30,6 @@ /*Objects virtual functions*/ Vertices* Copy(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); /*numerics:*/ Index: ../trunk-jpl/src/c/classes/Node.h =================================================================== --- ../trunk-jpl/src/c/classes/Node.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Node.h (revision 25507) @@ -75,7 +75,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); Index: ../trunk-jpl/src/c/classes/Elements/Penta.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Elements/Penta.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Elements/Penta.cpp (revision 25507) @@ -140,23 +140,6 @@ } /*}}}*/ -void Penta::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(PentaEnum); - MARSHALLING(this->isonsurface); - MARSHALLING(this->isonbase); - - /*Call parent classes: */ - ElementHook::Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - Element::MarshallElement(pmarshalled_data,pmarshalled_data_size,marshall_direction,this->numanalyses); - PentaRef::Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - - vertices = (Vertex**)this->hvertices->deliverp(); - material = (Material*)this->hmaterial->delivers(); - verticalneighbors = (Penta**)this->hneighbors->deliverp(); - -} -/*}}}*/ void Penta::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = PentaEnum; Index: ../trunk-jpl/src/c/classes/Elements/PentaRef.h =================================================================== --- ../trunk-jpl/src/c/classes/Elements/PentaRef.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Elements/PentaRef.h (revision 25507) @@ -28,7 +28,6 @@ void GetSegmentJacobianDeterminant(IssmDouble* Jdet, IssmDouble* xyz_list,Gauss* gauss); void GetTriaJacobianDeterminant(IssmDouble* Jdet, IssmDouble* xyz_list,Gauss* gauss); void VerticalSegmentIndicesBase(int** pindices,int* pnumseg,int finiteelement); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*do nothing */}; void Marshall2(MarshallHandle* marshallhandle){ /*do nothing */}; int NumberofNodes(int finiteelement); int PressureInterpolation(int fe_stokes); Index: ../trunk-jpl/src/c/classes/Elements/ElementHook.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Elements/ElementHook.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Elements/ElementHook.cpp (revision 25507) @@ -64,65 +64,6 @@ } /*}}}*/ -void ElementHook::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - int i; - bool* hnodesi_null=NULL; /*intermediary needed*/ - bool hnodes_null=true; /*this could be NULL on empty constructor*/ - bool hneighbors_null=true; /*don't deal with hneighbors, unless explicitely asked to*/ - - _assert_(this); - - /*preliminary, before marshall starts: */ - if(marshall_direction==MARSHALLING_WRITE || marshall_direction==MARSHALLING_SIZE){ - if(this->hneighbors)hneighbors_null=false; - if(this->hnodes){ - hnodes_null=false; - hnodesi_null=xNew(numanalyses); - for(i=0;ihnodes[i])hnodesi_null[i]=false; - else hnodesi_null[i]=true; - } - } - } - - /*ok, marshall operations: */ - MARSHALLING_ENUM(ElementHookEnum); - MARSHALLING(numanalyses); - MARSHALLING(hneighbors_null); - MARSHALLING(hnodes_null); - MARSHALLING_DYNAMIC(hnodesi_null,bool,numanalyses); - - if(marshall_direction==MARSHALLING_LOAD){ - - if (!hnodes_null)this->hnodes = new Hook*[numanalyses]; - else this->hnodes=NULL; - this->hvertices = new Hook(); - this->hmaterial = new Hook(); - if(!hneighbors_null)this->hneighbors = new Hook(); - else this->hneighbors=NULL; - - /*Initialize hnodes: */ - if (this->hnodes){ - for(int i=0;inumanalyses;i++){ - if(!hnodesi_null[i])this->hnodes[i]=new Hook(); - else this->hnodes[i]=NULL; - } - } - } - - if (this->hnodes){ - for (i=0;ihnodes[i])this->hnodes[i]->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - } - this->hvertices->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->hmaterial->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - if(this->hneighbors)this->hneighbors->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - - /*Free ressources: */ - if(hnodesi_null) xDelete(hnodesi_null); - -} -/*}}}*/ void ElementHook::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int i; Index: ../trunk-jpl/src/c/classes/Elements/Penta.h =================================================================== --- ../trunk-jpl/src/c/classes/Elements/Penta.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Elements/Penta.h (revision 25507) @@ -39,7 +39,6 @@ /*}}}*/ /*Object virtual functions definitions: {{{*/ Object *copy(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Elements/Seg.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Elements/Seg.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Elements/Seg.cpp (revision 25507) @@ -119,25 +119,6 @@ } /*}}}*/ -void Seg::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(SegEnum); - MARSHALLING(this->iscollapsed); - MARSHALLING(this->isonsurface); - MARSHALLING(this->isonbase); - MARSHALLING(this->collapsed_ids[0]); - MARSHALLING(this->collapsed_ids[1]); - - /*Call parent classes: */ - ElementHook::Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - Element::MarshallElement(pmarshalled_data,pmarshalled_data_size,marshall_direction,this->numanalyses); - SegRef::Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - - vertices = (Vertex**)this->hvertices->deliverp(); - material = (Material*)this->hmaterial->delivers(); - -} -/*}}}*/ void Seg::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = SegEnum; Index: ../trunk-jpl/src/c/classes/Elements/ElementHook.h =================================================================== --- ../trunk-jpl/src/c/classes/Elements/ElementHook.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Elements/ElementHook.h (revision 25507) @@ -21,7 +21,6 @@ ElementHook(); ElementHook(int in_numanalyses,int material_id,int numvertices,IoModel* iomodel); ~ElementHook(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); void DeepEcho(); Index: ../trunk-jpl/src/c/classes/Elements/Tetra.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Elements/Tetra.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Elements/Tetra.cpp (revision 25507) @@ -117,22 +117,6 @@ return tetra; } /*}}}*/ -void Tetra::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(TetraEnum); - MARSHALLING(this->isonsurface); - MARSHALLING(this->isonbase); - - /*Call parent classes: */ - ElementHook::Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - Element::MarshallElement(pmarshalled_data,pmarshalled_data_size,marshall_direction,this->numanalyses); - TetraRef::Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - - vertices = (Vertex**)this->hvertices->deliverp(); - material = (Material*)this->hmaterial->delivers(); - -} -/*}}}*/ void Tetra::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = TetraEnum; Index: ../trunk-jpl/src/c/classes/Elements/SegRef.h =================================================================== --- ../trunk-jpl/src/c/classes/Elements/SegRef.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Elements/SegRef.h (revision 25507) @@ -23,7 +23,6 @@ void GetNodalFunctions(IssmDouble* basis,GaussSeg* gauss,int finiteelement); void GetNodalFunctionsDerivatives(IssmDouble* dbasis,IssmDouble* xyz_list, GaussSeg* gauss,int finiteelement); void GetNodalFunctionsDerivativesReference(IssmDouble* dbasis,GaussSeg* gauss,int finiteelement); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*do nothing */}; void Marshall2(MarshallHandle* marshallhandle){ /*do nothing */}; int NumberofNodes(int finiteelement); }; Index: ../trunk-jpl/src/c/classes/Elements/TetraRef.h =================================================================== --- ../trunk-jpl/src/c/classes/Elements/TetraRef.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Elements/TetraRef.h (revision 25507) @@ -24,7 +24,6 @@ void GetNodalFunctions(IssmDouble* basis,Gauss* gauss_in,int finiteelement); void GetNodalFunctionsDerivatives(IssmDouble* dbasis,IssmDouble* xyz_list, GaussTetra* gauss,int finiteelement); void GetNodalFunctionsDerivativesReference(IssmDouble* dbasis,GaussTetra* gauss,int finiteelement); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*do nothing */}; void Marshall2(MarshallHandle* marshallhandle){ /*do nothing */}; int NumberofNodes(int finiteelement); int PressureInterpolation(int fe_stokes); Index: ../trunk-jpl/src/c/classes/Elements/Seg.h =================================================================== --- ../trunk-jpl/src/c/classes/Elements/Seg.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Elements/Seg.h (revision 25507) @@ -37,7 +37,6 @@ /*}}}*/ /*Object virtual functions definitions:{{{ */ Object *copy(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Elements/Tetra.h =================================================================== --- ../trunk-jpl/src/c/classes/Elements/Tetra.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Elements/Tetra.h (revision 25507) @@ -35,7 +35,6 @@ /*}}}*/ /*Object virtual functions definitions:{{{ */ Object *copy(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Elements/Element.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Elements/Element.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Elements/Element.cpp (revision 25507) @@ -2239,22 +2239,6 @@ xDelete(values); }/*}}}*/ -void Element::MarshallElement(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction,int numanalyses){/*{{{*/ - - _assert_(this); - if(marshall_direction==MARSHALLING_LOAD){ - nodes = NULL; - } - - MARSHALLING_ENUM(ElementEnum); - - MARSHALLING(id); - MARSHALLING(sid); - MARSHALLING(lid); - MARSHALLING(element_type); - MARSHALLING_DYNAMIC(element_type_list,int,numanalyses); -} -/*}}}*/ void Element::MarshallElement2(MarshallHandle* marshallhandle,int numanalyses){/*{{{*/ _assert_(this); Index: ../trunk-jpl/src/c/classes/Elements/Element.h =================================================================== --- ../trunk-jpl/src/c/classes/Elements/Element.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Elements/Element.h (revision 25507) @@ -146,7 +146,6 @@ void LinearFloatingiceMeltingRate(); void SpatialLinearFloatingiceMeltingRate(); void MantlePlumeGeothermalFlux(); - void MarshallElement(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction,int numanalyses); void MarshallElement2(MarshallHandle* marshallhandle,int numanalyses); void MigrateGroundingLine(IssmDouble* sheet_ungrounding); void MismipFloatingiceMeltingRate(); @@ -290,7 +289,6 @@ virtual void JacobianDeterminantLine(IssmDouble* Jdet, IssmDouble* xyz_list,Gauss* gauss)=0; virtual void JacobianDeterminantSurface(IssmDouble* Jdet, IssmDouble* xyz_list,Gauss* gauss)=0; virtual void JacobianDeterminantTop(IssmDouble* Jdet,IssmDouble* xyz_list_base,Gauss* gauss)=0; - virtual void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction)=0; virtual void Marshall2(MarshallHandle* marshallhandle)=0; virtual IssmDouble Masscon(IssmDouble* levelset)=0; virtual IssmDouble MassFlux(IssmDouble* segment)=0; Index: ../trunk-jpl/src/c/classes/Elements/Tria.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Elements/Tria.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Elements/Tria.cpp (revision 25507) @@ -143,23 +143,6 @@ return tria; } /*}}}*/ -void Tria::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(TriaEnum); - MARSHALLING(this->iscollapsed); - MARSHALLING(this->isonsurface); - MARSHALLING(this->isonbase); - - /*Call parent classes: */ - ElementHook::Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - Element::MarshallElement(pmarshalled_data,pmarshalled_data_size,marshall_direction,this->numanalyses); - TriaRef::Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - - vertices = (Vertex**)this->hvertices->deliverp(); - material = (Material*)this->hmaterial->delivers(); - -} -/*}}}*/ void Tria::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = TriaEnum; Index: ../trunk-jpl/src/c/classes/Elements/TriaRef.h =================================================================== --- ../trunk-jpl/src/c/classes/Elements/TriaRef.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Elements/TriaRef.h (revision 25507) @@ -27,7 +27,6 @@ void GetSegmentJacobianDeterminant(IssmDouble* Jdet, IssmDouble* xyz_list,Gauss* gauss); void GetSegmentNodalFunctions(IssmDouble* basis,Gauss* gauss, int index1,int index2,int finiteelement); void GetSegmentNodalFunctionsDerivatives(IssmDouble* dbasis,IssmDouble* xyz_list_tria,Gauss* gauss, int index1,int index2,int finiteelement); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*do nothing */}; void Marshall2(MarshallHandle* marshallhandle){ /*do nothing */}; void NodeOnEdgeIndices(int* pnumindices,int** pindices,int index,int finiteelement); int NumberofNodes(int finiteelement); Index: ../trunk-jpl/src/c/classes/Elements/Tria.h =================================================================== --- ../trunk-jpl/src/c/classes/Elements/Tria.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Elements/Tria.h (revision 25507) @@ -38,7 +38,6 @@ /*}}}*/ /*Object virtual functions definitions:{{{ */ Object *copy(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Radar.h =================================================================== --- ../trunk-jpl/src/c/classes/Radar.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Radar.h (revision 25507) @@ -28,7 +28,6 @@ void DeepEcho(void); void Echo(void); int Id(void); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(void); Index: ../trunk-jpl/src/c/classes/Contour.h =================================================================== --- ../trunk-jpl/src/c/classes/Contour.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Contour.h (revision 25507) @@ -78,10 +78,6 @@ return id; } /*}}}*/ - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ - _error_("not implemented yet!"); - } - /*}}}*/ void Marshall2(MarshallHandle* marshallhandle){/*{{{*/ _error_("not implemented yet!"); } Index: ../trunk-jpl/src/c/classes/Nodalvalue.h =================================================================== --- ../trunk-jpl/src/c/classes/Nodalvalue.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Nodalvalue.h (revision 25507) @@ -33,7 +33,6 @@ void DeepEcho(void); void Echo(void); int Id(void); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(void); Index: ../trunk-jpl/src/c/classes/Materials/Matestar.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Materials/Matestar.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Materials/Matestar.cpp (revision 25507) @@ -100,17 +100,6 @@ /*}}}*/ int Matestar::Id(void){ return mid; }/*{{{*/ /*}}}*/ -void Matestar::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - if(marshall_direction==MARSHALLING_LOAD)helement=new Hook(); - - MARSHALLING_ENUM(MatestarEnum); - MARSHALLING(mid); - this->helement->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->element=(Element*)this->helement->delivers(); - -} -/*}}}*/ void Matestar::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ if(marshallhandle->OperationNumber()==MARSHALLING_LOAD)helement=new Hook(); Index: ../trunk-jpl/src/c/classes/Materials/Matlitho.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Materials/Matlitho.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Materials/Matlitho.cpp (revision 25507) @@ -144,36 +144,6 @@ /*}}}*/ int Matlitho::Id(void){ return mid; }/*{{{*/ /*}}}*/ -void Matlitho::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(MatlithoEnum); - - MARSHALLING(numlayers); - if(numlayers) { - MARSHALLING_DYNAMIC(radius,IssmDouble,numlayers+1); - MARSHALLING_DYNAMIC(viscosity,IssmDouble,numlayers); - MARSHALLING_DYNAMIC(lame_lambda,IssmDouble,numlayers); - MARSHALLING_DYNAMIC(lame_mu,IssmDouble,numlayers); - MARSHALLING_DYNAMIC(burgers_viscosity,IssmDouble,numlayers); - MARSHALLING_DYNAMIC(burgers_mu,IssmDouble,numlayers); - MARSHALLING_DYNAMIC(density,IssmDouble,numlayers); - MARSHALLING_DYNAMIC(isburgers,IssmDouble,numlayers); - MARSHALLING_DYNAMIC(issolid,IssmDouble,numlayers); - } - else{ - radius=NULL; - viscosity=NULL; - lame_lambda=NULL; - lame_mu=NULL; - burgers_viscosity=NULL; - burgers_mu=NULL; - density=NULL; - isburgers=NULL; - issolid=NULL; - } - -} -/*}}}*/ void Matlitho::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = MatlithoEnum; Index: ../trunk-jpl/src/c/classes/Materials/Matice.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Materials/Matice.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Materials/Matice.cpp (revision 25507) @@ -158,19 +158,6 @@ /*}}}*/ int Matice::Id(void){ return mid; }/*{{{*/ /*}}}*/ -void Matice::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - if(marshall_direction==MARSHALLING_LOAD)helement=new Hook(); - - MARSHALLING_ENUM(MaticeEnum); - MARSHALLING(mid); - MARSHALLING(isdamaged); - MARSHALLING(isenhanced); - this->helement->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->element=(Element*)this->helement->delivers(); - -} -/*}}}*/ void Matice::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ if(marshallhandle->OperationNumber()==MARSHALLING_LOAD)helement=new Hook(); Index: ../trunk-jpl/src/c/classes/Materials/Matestar.h =================================================================== --- ../trunk-jpl/src/c/classes/Materials/Matestar.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Materials/Matestar.h (revision 25507) @@ -40,7 +40,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Materials/Matlitho.h =================================================================== --- ../trunk-jpl/src/c/classes/Materials/Matlitho.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Materials/Matlitho.h (revision 25507) @@ -36,7 +36,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Materials/Matice.h =================================================================== --- ../trunk-jpl/src/c/classes/Materials/Matice.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Materials/Matice.h (revision 25507) @@ -44,7 +44,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Hook.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Hook.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Hook.cpp (revision 25507) @@ -119,27 +119,6 @@ } } /*}}}*/ -void Hook::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - if(marshall_direction==MARSHALLING_LOAD) reset(); - - MARSHALLING_ENUM(HookEnum); - MARSHALLING(num); - if (num<=0){ - /*Empty hook*/ - this->ids = NULL; - this->objects = NULL; - this->offsets = NULL; - this->num = 0; - } - else{ - MARSHALLING_DYNAMIC(ids,int,num); - MARSHALLING_DYNAMIC(offsets,int,num); - MARSHALLING_DYNAMIC(objects,Object*,num); - } - -} -/*}}}*/ void Hook::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ if(marshallhandle->OperationNumber()==MARSHALLING_LOAD) reset(); Index: ../trunk-jpl/src/c/classes/Misfit.h =================================================================== --- ../trunk-jpl/src/c/classes/Misfit.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Misfit.h (revision 25507) @@ -37,7 +37,6 @@ void DeepEcho(void); void Echo(void); int Id(void); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(void); Index: ../trunk-jpl/src/c/classes/Inputs/DatasetInput.h =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/DatasetInput.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/DatasetInput.h (revision 25507) @@ -33,7 +33,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); void SetTriaInput(int interp_in,int numinds,int* rows,IssmDouble* values_in); Index: ../trunk-jpl/src/c/classes/Inputs/IntInput.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/IntInput.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/IntInput.cpp (revision 25507) @@ -53,18 +53,6 @@ /*}}}*/ int IntInput::Id(void){ return -1; }/*{{{*/ /*}}}*/ -void IntInput::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(IntInputEnum); - - MARSHALLING(this->size); - if(this->size > 0){ - MARSHALLING_DYNAMIC(this->values,int,this->size) - } - else this->values = NULL; - -} -/*}}}*/ void IntInput::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = IntInputEnum; Index: ../trunk-jpl/src/c/classes/Inputs/BoolInput.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/BoolInput.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/BoolInput.cpp (revision 25507) @@ -54,17 +54,6 @@ /*}}}*/ int BoolInput::Id(void){ return -1; }/*{{{*/ /*}}}*/ -void BoolInput::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(BoolInputEnum); - MARSHALLING(this->size); - if(this->size > 0){ - MARSHALLING_DYNAMIC(this->values,bool,this->size) - } - else this->values = NULL; - -} -/*}}}*/ void BoolInput::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = BoolInputEnum; Index: ../trunk-jpl/src/c/classes/Inputs/ElementInput.h =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/ElementInput.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/ElementInput.h (revision 25507) @@ -28,7 +28,6 @@ virtual void DeepEcho()=0; virtual void Echo()=0; virtual int Id()=0; - virtual void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction)=0; virtual void Marshall2(MarshallHandle* marshallhandle)=0; virtual int ObjectEnum()=0; /*Other*/ Index: ../trunk-jpl/src/c/classes/Inputs/TriaInput.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/TriaInput.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/TriaInput.cpp (revision 25507) @@ -111,27 +111,6 @@ int TriaInput::Id(void){/*{{{*/ return -1; }/*}}}*/ -void TriaInput::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(TriaInputEnum); - MARSHALLING(this->numberofelements_local); - MARSHALLING(this->numberofvertices_local); - MARSHALLING(this->interpolation); - MARSHALLING(this->M); - MARSHALLING(this->N); - this->isserved = false; - this->isserved_collapsed = 0; - if(this->M*this->N){ - MARSHALLING_DYNAMIC(this->values,IssmDouble,this->M*this->N); - } - else this->values = NULL; - - if(marshall_direction == MARSHALLING_LOAD){ - this->element_values = xNewZeroInit(TriaRef::NumberofNodes(this->interpolation)); - } - -} -/*}}}*/ void TriaInput::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = TriaInputEnum; Index: ../trunk-jpl/src/c/classes/Inputs/IntInput.h =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/IntInput.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/IntInput.h (revision 25507) @@ -21,7 +21,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Inputs/BoolInput.h =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/BoolInput.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/BoolInput.h (revision 25507) @@ -21,7 +21,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Inputs/Inputs.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/Inputs.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/Inputs.cpp (revision 25507) @@ -78,71 +78,6 @@ return; } /*}}}*/ -void Inputs::Marshall(char** pmarshalled_data, int* pmarshalled_data_size, int marshall_direction){/*{{{*/ - - int obj_enum=-1; - int num_inputs=0; - int index; - - MARSHALLING_ENUM(InputsEnum); - - if(marshall_direction==MARSHALLING_WRITE || marshall_direction==MARSHALLING_SIZE){ - - /*Marshall num_inputs first*/ - for(int i=0;iinputs[i]) num_inputs++; - } - MARSHALLING(num_inputs); - - /*Marshall Parameters one by one now*/ - for(int i=0;iinputs[i]){ - obj_enum = this->inputs[i]->ObjectEnum(); - MARSHALLING(i); - MARSHALLING(obj_enum); - this->inputs[i]->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - } - } - } - else{ - - /*Get number of inputs marshalled*/ - MARSHALLING(num_inputs); - - /*Recover input2eters one by one*/ - for(int i=0;iMarshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->inputs[index]=boolinput2; - } - else if(obj_enum==IntInputEnum){ - IntInput* intinput2=new IntInput(); - intinput2->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->inputs[index]=intinput2; - } - else if(obj_enum==TriaInputEnum){ - TriaInput* triainput2=new TriaInput(); - triainput2->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->inputs[index]=triainput2; - } - else if(obj_enum==PentaInputEnum){ - PentaInput* pentainput2=new PentaInput(); - pentainput2->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->inputs[index]=pentainput2; - } - else{ - _error_("input "<timesteps,IssmDouble,numtimesteps); - //inputs->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - _error_("not implemented"); -} -/*}}}*/ void TransientInput::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ if (marshallhandle->OperationNumber() == MARSHALLING_LOAD){ Index: ../trunk-jpl/src/c/classes/Inputs/PentaInput.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/PentaInput.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/PentaInput.cpp (revision 25507) @@ -125,26 +125,6 @@ int PentaInput::Id(void){/*{{{*/ return -1; }/*}}}*/ -void PentaInput::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(PentaInputEnum); - MARSHALLING(this->numberofelements_local); - MARSHALLING(this->numberofvertices_local); - MARSHALLING(this->interpolation); - MARSHALLING(this->M); - MARSHALLING(this->N); - this->isserved = false; - this->isserved_collapsed = 0; - if(this->M*this->N){ - MARSHALLING_DYNAMIC(this->values,IssmDouble,this->M*this->N); - } - else this->values = NULL; - - if(marshall_direction == MARSHALLING_LOAD){ - this->element_values = xNewZeroInit(PentaRef::NumberofNodes(this->interpolation)); - } -} -/*}}}*/ void PentaInput::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = PentaInputEnum; Index: ../trunk-jpl/src/c/classes/Inputs/Inputs.h =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/Inputs.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/Inputs.h (revision 25507) @@ -62,7 +62,6 @@ ElementInput* GetControlInputData(int enum_type,const char* data); DatasetInput* GetDatasetInput(int enum_type); ControlInput* GetControlInput(int enum_type); - void Marshall(char** pmarshalled_data, int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int GetInputObjectEnum(int enum_type); void GetInputValue(bool* pvalue,int enum_in,int index); Index: ../trunk-jpl/src/c/classes/Inputs/DoubleInput.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/DoubleInput.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/DoubleInput.cpp (revision 25507) @@ -53,18 +53,6 @@ /*}}}*/ int DoubleInput::Id(void){ return -1; }/*{{{*/ /*}}}*/ -void DoubleInput::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(DoubleInputEnum); - - MARSHALLING(this->size); - if(this->size > 0){ - MARSHALLING_DYNAMIC(this->values,IssmDouble,this->size) - } - else this->values = NULL; - -} -/*}}}*/ void DoubleInput::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = DoubleInputEnum; Index: ../trunk-jpl/src/c/classes/Inputs/TransientInput.h =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/TransientInput.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/TransientInput.h (revision 25507) @@ -42,7 +42,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Inputs/PentaInput.h =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/PentaInput.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/PentaInput.h (revision 25507) @@ -20,7 +20,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Inputs/ArrayInput.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/ArrayInput.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/ArrayInput.cpp (revision 25507) @@ -75,25 +75,6 @@ int ArrayInput::Id(void){/*{{{*/ return -1; }/*}}}*/ -void ArrayInput::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(ArrayInputEnum); - MARSHALLING(this->numberofelements_local); - if(this->numberofelements_local){ - MARSHALLING_DYNAMIC(this->N,int,this->numberofelements_local); - for(int i=0;inumberofelements_local;i++){ - if(this->values[i]){ - MARSHALLING_DYNAMIC(this->values[i],IssmDouble,this->N[i]); - } - } - } - else{ - this->N = NULL; - this->values = NULL; - } - -} -/*}}}*/ void ArrayInput::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = ArrayInputEnum; Index: ../trunk-jpl/src/c/classes/Inputs/SegInput.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/SegInput.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/SegInput.cpp (revision 25507) @@ -107,26 +107,6 @@ int SegInput::Id(void){/*{{{*/ return -1; }/*}}}*/ -void SegInput::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(SegInputEnum); - MARSHALLING(this->numberofelements_local); - MARSHALLING(this->numberofvertices_local); - MARSHALLING(this->interpolation); - MARSHALLING(this->M); - MARSHALLING(this->N); - this->isserved = false; - if(this->M*this->N){ - MARSHALLING_DYNAMIC(this->values,IssmDouble,this->M*this->N); - } - else this->values = NULL; - - if(marshall_direction == MARSHALLING_LOAD){ - this->element_values = xNewZeroInit(SegRef::NumberofNodes(this->interpolation)); - } - -} -/*}}}*/ void SegInput::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = SegInputEnum; Index: ../trunk-jpl/src/c/classes/Inputs/DoubleInput.h =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/DoubleInput.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/DoubleInput.h (revision 25507) @@ -21,7 +21,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Inputs/ControlInput.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/ControlInput.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/ControlInput.cpp (revision 25507) @@ -117,12 +117,6 @@ /*}}}*/ int ControlInput::Id(void){ return -1; }/*{{{*/ /*}}}*/ -void ControlInput::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(ControlInputEnum); - _error_("Not implemented"); -} -/*}}}*/ void ControlInput::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = ControlInputEnum; Index: ../trunk-jpl/src/c/classes/Inputs/ArrayInput.h =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/ArrayInput.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/ArrayInput.h (revision 25507) @@ -22,7 +22,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Inputs/SegInput.h =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/SegInput.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/SegInput.h (revision 25507) @@ -18,7 +18,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Inputs/Input.h =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/Input.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/Input.h (revision 25507) @@ -2,8 +2,8 @@ * \brief abstract class for Input object */ -#ifndef _INPUT2_H_ -#define _INPUT2_H_ +#ifndef _INPUT_H_ +#define _INPUT_H_ /*Headers:*/ #include "../../shared/shared.h" Index: ../trunk-jpl/src/c/classes/Inputs/DatasetInput.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/DatasetInput.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/DatasetInput.cpp (revision 25507) @@ -80,20 +80,6 @@ /*}}}*/ int DatasetInput::Id(void){ return -1; }/*{{{*/ /*}}}*/ -void DatasetInput::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(DatasetInputEnum); - - MARSHALLING(numids); - MARSHALLING(this->numberofelements_local); - MARSHALLING(this->numberofvertices_local); - MARSHALLING_DYNAMIC(ids,int,numids); - //if (marshall_direction == MARSHALLING_LOAD) inputs = new Inputs(); - //inputs->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - _error_("not implemented"); - -} -/*}}}*/ void DatasetInput::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = DatasetInputEnum; Index: ../trunk-jpl/src/c/classes/Inputs/ControlInput.h =================================================================== --- ../trunk-jpl/src/c/classes/Inputs/ControlInput.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Inputs/ControlInput.h (revision 25507) @@ -35,7 +35,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/DependentObject.h =================================================================== --- ../trunk-jpl/src/c/classes/DependentObject.h (revision 25506) +++ ../trunk-jpl/src/c/classes/DependentObject.h (revision 25507) @@ -33,7 +33,6 @@ void Echo(); int Id(); int ObjectEnum(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){_error_("not implemented yet!"); }; void Marshall2(MarshallHandle* marshallhandle){_error_("not implemented yet!"); }; /*DependentObject methods: */ Index: ../trunk-jpl/src/c/classes/Numberedcostfunction.h =================================================================== --- ../trunk-jpl/src/c/classes/Numberedcostfunction.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Numberedcostfunction.h (revision 25507) @@ -31,7 +31,6 @@ void DeepEcho(void); void Echo(void); int Id(void); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(void); Index: ../trunk-jpl/src/c/classes/Masscon.h =================================================================== --- ../trunk-jpl/src/c/classes/Masscon.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Masscon.h (revision 25507) @@ -72,10 +72,6 @@ return -1; } /*}}}*/ - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ - _error_("not implemented yet!"); - } - /*}}}*/ void Marshall2(MarshallHandle* marshallhandle){/*{{{*/ _error_("not implemented yet!"); } Index: ../trunk-jpl/src/c/classes/kriging/PowerVariogram.h =================================================================== --- ../trunk-jpl/src/c/classes/kriging/PowerVariogram.h (revision 25506) +++ ../trunk-jpl/src/c/classes/kriging/PowerVariogram.h (revision 25507) @@ -25,7 +25,6 @@ void DeepEcho(){_error_("Not implemented yet");}; void Echo(); int Id(){_error_("Not implemented yet");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!"); }; int ObjectEnum(){_error_("Not implemented yet");}; Index: ../trunk-jpl/src/c/classes/kriging/Quadtree.h =================================================================== --- ../trunk-jpl/src/c/classes/kriging/Quadtree.h (revision 25506) +++ ../trunk-jpl/src/c/classes/kriging/Quadtree.h (revision 25507) @@ -29,7 +29,6 @@ void DeepEcho() {_error_("not implemented yet"); }; void Echo(); int Id() {_error_("not implemented yet"); }; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; int ObjectEnum(){_error_("not implemented yet"); }; Index: ../trunk-jpl/src/c/classes/kriging/GaussianVariogram.h =================================================================== --- ../trunk-jpl/src/c/classes/kriging/GaussianVariogram.h (revision 25506) +++ ../trunk-jpl/src/c/classes/kriging/GaussianVariogram.h (revision 25507) @@ -26,7 +26,6 @@ void DeepEcho(){_error_("Not implemented yet");}; void Echo(); int Id(){_error_("Not implemented yet");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!"); }; int ObjectEnum(){_error_("Not implemented yet");}; Index: ../trunk-jpl/src/c/classes/kriging/SphericalVariogram.h =================================================================== --- ../trunk-jpl/src/c/classes/kriging/SphericalVariogram.h (revision 25506) +++ ../trunk-jpl/src/c/classes/kriging/SphericalVariogram.h (revision 25507) @@ -25,7 +25,6 @@ void DeepEcho(){_error_("Not implemented yet");}; void Echo(); int Id(){_error_("Not implemented yet");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!"); }; int ObjectEnum(){_error_("Not implemented yet");}; Index: ../trunk-jpl/src/c/classes/kriging/Observation.h =================================================================== --- ../trunk-jpl/src/c/classes/kriging/Observation.h (revision 25506) +++ ../trunk-jpl/src/c/classes/kriging/Observation.h (revision 25507) @@ -30,7 +30,6 @@ void Echo(); int Id() {_error_("Not implemented yet"); }; void print() const; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; int ObjectEnum(){_error_("Not implemented yet"); }; Index: ../trunk-jpl/src/c/classes/kriging/ExponentialVariogram.h =================================================================== --- ../trunk-jpl/src/c/classes/kriging/ExponentialVariogram.h (revision 25506) +++ ../trunk-jpl/src/c/classes/kriging/ExponentialVariogram.h (revision 25507) @@ -25,7 +25,6 @@ void DeepEcho(){_error_("Not implemented yet");}; void Echo(); int Id(){_error_("Not implemented yet");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!"); }; int ObjectEnum(){_error_("Not implemented yet");}; Index: ../trunk-jpl/src/c/classes/Options/Option.h =================================================================== --- ../trunk-jpl/src/c/classes/Options/Option.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Options/Option.h (revision 25507) @@ -24,7 +24,6 @@ virtual void DeepEcho(char *indent)=0; virtual void Echo()= 0; int Id(){_error_("Not implemented yet"); }; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!"); }; int ObjectEnum(){return OptionEnum;}; Index: ../trunk-jpl/src/c/classes/Cfsurfacelogvel.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Cfsurfacelogvel.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Cfsurfacelogvel.cpp (revision 25507) @@ -73,10 +73,6 @@ return -1; } /*}}}*/ -void Cfsurfacelogvel::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ - _error_("not implemented yet!"); -} -/*}}}*/ void Cfsurfacelogvel::Marshall2(MarshallHandle* marshallhandle){/*{{{*/ _error_("not implemented yet!"); } Index: ../trunk-jpl/src/c/classes/Massconaxpby.h =================================================================== --- ../trunk-jpl/src/c/classes/Massconaxpby.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Massconaxpby.h (revision 25507) @@ -83,10 +83,6 @@ return -1; } /*}}}*/ - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ - _error_("not implemented yet!"); - } - /*}}}*/ void Marshall2(MarshallHandle* marshallhandle){/*{{{*/ _error_("not implemented yet!"); } Index: ../trunk-jpl/src/c/classes/Nodes.h =================================================================== --- ../trunk-jpl/src/c/classes/Nodes.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Nodes.h (revision 25507) @@ -35,7 +35,6 @@ /*Objects virtual functions*/ Nodes* Copy(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); /*numerics*/ Index: ../trunk-jpl/src/c/classes/Regionaloutput.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Regionaloutput.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Regionaloutput.cpp (revision 25507) @@ -62,10 +62,6 @@ return -1; } /*}}}*/ -void Regionaloutput::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ - _error_("not implemented yet!"); -} -/*}}}*/ void Regionaloutput::Marshall2(MarshallHandle* marshallhandle){/*{{{*/ _error_("not implemented yet!"); } Index: ../trunk-jpl/src/c/classes/Loads/Riftfront.h =================================================================== --- ../trunk-jpl/src/c/classes/Loads/Riftfront.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Loads/Riftfront.h (revision 25507) @@ -59,7 +59,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Loads/Numericalflux.h =================================================================== --- ../trunk-jpl/src/c/classes/Loads/Numericalflux.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Loads/Numericalflux.h (revision 25507) @@ -43,7 +43,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Loads/Pengrid.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Loads/Pengrid.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Loads/Pengrid.cpp (revision 25507) @@ -118,31 +118,6 @@ /*}}}*/ int Pengrid::Id(void){ return id; }/*{{{*/ /*}}}*/ -void Pengrid::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - _assert_(this); - - /*ok, marshall operations: */ - MARSHALLING_ENUM(PengridEnum); - MARSHALLING(id); - - if(marshall_direction==MARSHALLING_LOAD){ - this->hnode = new Hook(); - this->helement = new Hook(); - } - - this->hnode->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->helement->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - - /*corresponding fields*/ - node =(Node*)this->hnode->delivers(); - element=(Element*)this->helement->delivers(); - - MARSHALLING(active); - MARSHALLING(zigzag_counter); - -} -/*}}}*/ void Pengrid::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ _assert_(this); Index: ../trunk-jpl/src/c/classes/Loads/Pengrid.h =================================================================== --- ../trunk-jpl/src/c/classes/Loads/Pengrid.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Loads/Pengrid.h (revision 25507) @@ -50,7 +50,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Loads/Penpair.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Loads/Penpair.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Loads/Penpair.cpp (revision 25507) @@ -83,24 +83,6 @@ /*}}}*/ int Penpair::Id(void){ return id; }/*{{{*/ /*}}}*/ -void Penpair::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - _assert_(this); - - /*ok, marshall operations: */ - MARSHALLING_ENUM(PenpairEnum); - MARSHALLING(id); - - if(marshall_direction==MARSHALLING_LOAD){ - this->hnodes = new Hook(); - } - this->hnodes->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - - /*corresponding fields*/ - nodes = (Node**)this->hnodes->deliverp(); - -} -/*}}}*/ void Penpair::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ _assert_(this); Index: ../trunk-jpl/src/c/classes/Loads/Neumannflux.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Loads/Neumannflux.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Loads/Neumannflux.cpp (revision 25507) @@ -124,31 +124,6 @@ return id; } /*}}}*/ -void Neumannflux::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - _assert_(this); - - /*ok, marshall operations: */ - MARSHALLING_ENUM(NeumannfluxEnum); - MARSHALLING(id); - - if(marshall_direction==MARSHALLING_LOAD){ - this->hnodes = new Hook(); - this->hvertices = new Hook(); - this->helement = new Hook(); - } - - this->hnodes->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->helement->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->hvertices->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - - /*corresponding fields*/ - nodes =(Node**)this->hnodes->deliverp(); - vertices =(Vertex**)this->hvertices->deliverp(); - element =(Element*)this->helement->delivers(); - -} -/*}}}*/ void Neumannflux::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ _assert_(this); Index: ../trunk-jpl/src/c/classes/Loads/Loads.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Loads/Loads.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Loads/Loads.cpp (revision 25507) @@ -72,17 +72,6 @@ return output; } /*}}}*/ -void Loads::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - int num_procs=IssmComm::GetSize(); - int test = num_procs; - MARSHALLING_ENUM(LoadsEnum); - MARSHALLING(numrifts); - MARSHALLING(numpenalties); - - DataSet::Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); -} -/*}}}*/ void Loads::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = LoadsEnum; Index: ../trunk-jpl/src/c/classes/Loads/Moulin.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Loads/Moulin.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Loads/Moulin.cpp (revision 25507) @@ -108,30 +108,6 @@ /*}}}*/ int Moulin::Id(void){ return id; }/*{{{*/ /*}}}*/ -void Moulin::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - _assert_(this); - - /*ok, marshall operations: */ - MARSHALLING_ENUM(MoulinEnum); - MARSHALLING(id); - - if(marshall_direction==MARSHALLING_LOAD){ - this->hnode = new Hook(); - this->hvertex = new Hook(); - this->helement = new Hook(); - } - - this->hnode->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->hvertex->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->helement->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - - /*corresponding fields*/ - node =(Node*)this->hnode->delivers(); - vertex =(Vertex*)this->hvertex->delivers(); - element=(Element*)this->helement->delivers(); -} -/*}}}*/ void Moulin::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ _assert_(this); Index: ../trunk-jpl/src/c/classes/Loads/Penpair.h =================================================================== --- ../trunk-jpl/src/c/classes/Loads/Penpair.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Loads/Penpair.h (revision 25507) @@ -33,7 +33,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Loads/Neumannflux.h =================================================================== --- ../trunk-jpl/src/c/classes/Loads/Neumannflux.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Loads/Neumannflux.h (revision 25507) @@ -41,7 +41,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Loads/Loads.h =================================================================== --- ../trunk-jpl/src/c/classes/Loads/Loads.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Loads/Loads.h (revision 25507) @@ -26,7 +26,6 @@ /*Objects virtual functions*/ Loads* Copy(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); /*numerics*/ Index: ../trunk-jpl/src/c/classes/Loads/Channel.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Loads/Channel.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Loads/Channel.cpp (revision 25507) @@ -145,32 +145,6 @@ return id; } /*}}}*/ -void Channel::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - _assert_(this); - - /*ok, marshall operations: */ - MARSHALLING_ENUM(ChannelEnum); - MARSHALLING(id); - MARSHALLING(S); - - if(marshall_direction==MARSHALLING_LOAD){ - this->hnodes = new Hook(); - this->hvertices = new Hook(); - this->helement = new Hook(); - } - - this->hnodes->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->helement->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->hvertices->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - - /*corresponding fields*/ - nodes =(Node**)this->hnodes->deliverp(); - vertices =(Vertex**)this->hvertices->deliverp(); - element =(Element*)this->helement->delivers(); - -} -/*}}}*/ void Channel::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ _assert_(this); Index: ../trunk-jpl/src/c/classes/Loads/Moulin.h =================================================================== --- ../trunk-jpl/src/c/classes/Loads/Moulin.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Loads/Moulin.h (revision 25507) @@ -48,7 +48,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Loads/Riftfront.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Loads/Riftfront.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Loads/Riftfront.cpp (revision 25507) @@ -186,48 +186,6 @@ /*}}}*/ int Riftfront::Id(void){ return id; }/*{{{*/ /*}}}*/ -void Riftfront::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - _assert_(this); - - /*ok, marshall operations: */ - MARSHALLING_ENUM(RiftfrontEnum); - MARSHALLING(id); - MARSHALLING(type); - MARSHALLING(fill); - MARSHALLING(friction); - MARSHALLING(fractionincrement); - MARSHALLING(shelf); - - if(marshall_direction==MARSHALLING_LOAD){ - this->hnodes = new Hook(); - this->hvertices = new Hook(); - this->helements = new Hook(); - } - - this->hnodes->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->hvertices->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->helements->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - - /*corresponding fields*/ - nodes =(Node**)this->hnodes->deliverp(); - vertices =(Vertex**)this->hvertices->deliverp(); - elements =(Element**)this->helements->deliverp(); - - MARSHALLING(penalty_lock); - MARSHALLING(active); - MARSHALLING(frozen); - MARSHALLING(state); - MARSHALLING(counter); - MARSHALLING(prestable); - MARSHALLING(material_converged); - MARSHALLING(normal[0]); - MARSHALLING(normal[1]); - MARSHALLING(length); - MARSHALLING(fraction); - -} -/*}}}*/ void Riftfront::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ _assert_(this); Index: ../trunk-jpl/src/c/classes/Loads/Channel.h =================================================================== --- ../trunk-jpl/src/c/classes/Loads/Channel.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Loads/Channel.h (revision 25507) @@ -48,7 +48,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Loads/Numericalflux.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Loads/Numericalflux.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Loads/Numericalflux.cpp (revision 25507) @@ -200,33 +200,6 @@ return id; } /*}}}*/ -void Numericalflux::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - _assert_(this); - - /*ok, marshall operations: */ - MARSHALLING_ENUM(NumericalfluxEnum); - MARSHALLING(id); - MARSHALLING(flux_type); - MARSHALLING(flux_degree); - - if(marshall_direction==MARSHALLING_LOAD){ - this->hnodes = new Hook(); - this->hvertices = new Hook(); - this->helement = new Hook(); - } - - this->hnodes->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->helement->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->hvertices->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - - /*corresponding fields*/ - nodes =(Node**)this->hnodes->deliverp(); - vertices =(Vertex**)this->hvertices->deliverp(); - element =(Element*)this->helement->delivers(); - -} -/*}}}*/ void Numericalflux::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ _assert_(this); Index: ../trunk-jpl/src/c/classes/Cfdragcoeffabsgrad.h =================================================================== --- ../trunk-jpl/src/c/classes/Cfdragcoeffabsgrad.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Cfdragcoeffabsgrad.h (revision 25507) @@ -33,7 +33,6 @@ void DeepEcho(void); void Echo(void); int Id(void); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(void); Index: ../trunk-jpl/src/c/classes/Vertex.h =================================================================== --- ../trunk-jpl/src/c/classes/Vertex.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Vertex.h (revision 25507) @@ -45,7 +45,6 @@ int Id(); int ObjectEnum(); Object* copy(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Cfsurfacesquare.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Cfsurfacesquare.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Cfsurfacesquare.cpp (revision 25507) @@ -81,10 +81,6 @@ return -1; } /*}}}*/ -void Cfsurfacesquare::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ - _error_("not implemented yet!"); -} -/*}}}*/ void Cfsurfacesquare::Marshall2(MarshallHandle* marshallhandle){/*{{{*/ _error_("not implemented yet!"); } Index: ../trunk-jpl/src/c/classes/ExternalResults/GenericExternalResult.h =================================================================== --- ../trunk-jpl/src/c/classes/ExternalResults/GenericExternalResult.h (revision 25506) +++ ../trunk-jpl/src/c/classes/ExternalResults/GenericExternalResult.h (revision 25507) @@ -52,27 +52,30 @@ fwrite(&passiveDouble,sizeof(IssmPDouble),1,fid); fwrite(&step,sizeof(int),1,fid); } /*}}}*/ - void GenericMarshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ + void GenericMarshall(MarshallHandle* marshallhandle){/*{{{*/ - MARSHALLING_ENUM(this->ObjectEnum()); - MARSHALLING(id); - MARSHALLING(step); - MARSHALLING(time); + int object_enum = this->ObjectEnum(); + marshallhandle->call(object_enum); + marshallhandle->call(this->id); + marshallhandle->call(this->step); + marshallhandle->call(this->time); /*Marshal result name*/ int size = 0; - if(marshall_direction==MARSHALLING_WRITE || marshall_direction == MARSHALLING_SIZE) size=strlen(result_name)+1; - MARSHALLING(size); - MARSHALLING_DYNAMIC(result_name,char,size); + if(marshallhandle->OperationNumber()==MARSHALLING_WRITE || marshallhandle->OperationNumber() == MARSHALLING_SIZE) size=strlen(result_name)+1; + marshallhandle->call(size); + marshallhandle->call(this->result_name,size); /*Marshall value*/ this->value=0; bool isnull=true; - if(marshall_direction==MARSHALLING_WRITE || marshall_direction == MARSHALLING_SIZE){ + if(marshallhandle->OperationNumber()==MARSHALLING_WRITE || marshallhandle->OperationNumber() == MARSHALLING_SIZE){ if(value) isnull=false; } - MARSHALLING(isnull); - if(!isnull){MARSHALLING(value);} + marshallhandle->call(isnull); + if(!isnull){ + marshallhandle->call(this->value); + } } /*}}}*/ /*GenericExternalResult constructors and destructors*/ @@ -166,10 +169,6 @@ int ObjectEnum(void){ /*{{{*/ _error_("template ObjectEnum not implemented for this ResultType\n"); } /*}}}*/ - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ - _error_("not implemented yet!"); - } - /*}}}*/ void Marshall2(MarshallHandle* marshallhandle){/*{{{*/ _error_("not implemented yet!"); } @@ -238,9 +237,9 @@ template <> inline int GenericExternalResult::ObjectEnum(void){ /*{{{*/ return BoolExternalResultEnum; } /*}}}*/ -template <> inline void GenericExternalResult::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ +template <> inline void GenericExternalResult::Marshall2(MarshallHandle* marshallhandle){/*{{{*/ - this->GenericMarshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); + this->GenericMarshall(marshallhandle); } /*}}}*/ @@ -255,10 +254,8 @@ template <> inline int GenericExternalResult::ObjectEnum(void){ /*{{{*/ return IntExternalResultEnum; } /*}}}*/ -template <> inline void GenericExternalResult::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ - - this->GenericMarshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - +template <> inline void GenericExternalResult::Marshall2(MarshallHandle* marshallhandle){/*{{{*/ + this->GenericMarshall(marshallhandle); } /*}}}*/ /*Specific instantiations for double: */ @@ -275,10 +272,8 @@ template <> inline double GenericExternalResult::GetValue(void){ /*{{{*/ return value; } /*}}}*/ -template <> inline void GenericExternalResult::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ - - this->GenericMarshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - +template <> inline void GenericExternalResult::Marshall2(MarshallHandle* marshallhandle){/*{{{*/ + this->GenericMarshall(marshallhandle); } /*}}}*/ /*Specific instantiations for char*: */ @@ -346,18 +341,18 @@ template <> inline int GenericExternalResult::ObjectEnum(void){ /*{{{*/ return StringExternalResultEnum; } /*}}}*/ -template <> inline void GenericExternalResult::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ +template <> inline void GenericExternalResult::Marshall2(MarshallHandle* marshallhandle){/*{{{*/ int size = 0; - if(marshall_direction==MARSHALLING_WRITE || marshall_direction == MARSHALLING_SIZE)size=strlen(value)+1; + if(marshallhandle->OperationNumber()==MARSHALLING_WRITE || marshallhandle->OperationNumber() == MARSHALLING_SIZE)size=strlen(value)+1; - MARSHALLING(id); - MARSHALLING(result_name); - MARSHALLING(size); - MARSHALLING_DYNAMIC(value,char,size); - MARSHALLING(step); - MARSHALLING(time); + marshallhandle->call(this->id); + marshallhandle->call(this->result_name); + marshallhandle->call(size); + marshallhandle->call(this->value,size); + marshallhandle->call(this->step); + marshallhandle->call(this->time); } /*}}}*/ @@ -476,17 +471,18 @@ template <> inline int GenericExternalResult::ObjectEnum(void){ /*{{{*/ return IntMatExternalResultEnum; } /*}}}*/ -template <> inline void GenericExternalResult::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ +template <> inline void GenericExternalResult::Marshall2(MarshallHandle* marshallhandle){/*{{{*/ - MARSHALLING_ENUM(this->ObjectEnum()); + int object_enum = this->ObjectEnum(); + marshallhandle->call(object_enum); - MARSHALLING(id); - MARSHALLING(result_name); - MARSHALLING(M); - MARSHALLING(N); - MARSHALLING_DYNAMIC(value,int,M*N); - MARSHALLING(step); - MARSHALLING(time); + marshallhandle->call(this->id); + marshallhandle->call(this->result_name); + marshallhandle->call(this->M); + marshallhandle->call(this->N); + marshallhandle->call(this->value,M*N); + marshallhandle->call(this->step); + marshallhandle->call(this->time); } /*}}}*/ @@ -608,17 +604,18 @@ template <> inline double* GenericExternalResult::GetValues(void){ /*{{{*/ return value; } /*}}}*/ -template <> inline void GenericExternalResult::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ +template <> inline void GenericExternalResult::Marshall2(MarshallHandle* marshallhandle){/*{{{*/ - MARSHALLING_ENUM(this->ObjectEnum()); + int object_enum = this->ObjectEnum(); + marshallhandle->call(object_enum); - MARSHALLING(id); - MARSHALLING(result_name); - MARSHALLING(M); - MARSHALLING(N); - MARSHALLING_DYNAMIC(value,IssmPDouble,M*N); - MARSHALLING(step); - MARSHALLING(time); + marshallhandle->call(this->id); + marshallhandle->call(this->result_name); + marshallhandle->call(this->M); + marshallhandle->call(this->N); + marshallhandle->call(this->value,M*N); + marshallhandle->call(this->step); + marshallhandle->call(this->time); } /*}}}*/ template <> inline void GenericExternalResult::Transpose(void){/*{{{*/ @@ -830,7 +827,7 @@ xDelete(serialvalues); } /*}}}*/ - template <> inline void GenericExternalResult*>::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ + template <> inline void GenericExternalResult*>::Marshall2(MarshallHandle* marshallhandle){/*{{{*/ _error_("GenericExternalResult instantiated for type Vector* called " << result_name << " not implemented yet"); Index: ../trunk-jpl/src/c/classes/Vertices.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Vertices.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Vertices.cpp (revision 25507) @@ -109,29 +109,6 @@ return output; } /*}}}*/ -void Vertices::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - int num_procs=IssmComm::GetSize(); - int test = num_procs; - MARSHALLING_ENUM(VerticesEnum); - MARSHALLING(numberofvertices); - MARSHALLING(numberofvertices_local); - MARSHALLING(numberofmasters_local); - MARSHALLING(test); - if(test!=num_procs) _error_("number of cores is not the same as before"); - MARSHALLING_DYNAMIC(this->common_recv,int,num_procs); - MARSHALLING_DYNAMIC(this->common_send,int,num_procs); - if(marshall_direction == MARSHALLING_LOAD){ - this->common_recv_ids = xNew(num_procs); - this->common_send_ids = xNew(num_procs); - } - for(int i=0;icommon_recv_ids[i],int,this->common_recv[i]); - MARSHALLING_DYNAMIC(this->common_send_ids[i],int,this->common_send[i]); - } - DataSet::Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); -} -/*}}}*/ void Vertices::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = VerticesEnum; Index: ../trunk-jpl/src/c/classes/Node.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Node.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Node.cpp (revision 25507) @@ -248,35 +248,6 @@ return (Object*)output; } /*}}}*/ -void Node::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(NodeEnum); - MARSHALLING(id); - MARSHALLING(sid); - MARSHALLING(lid); - MARSHALLING(pid); - MARSHALLING(indexingupdate); - MARSHALLING(analysis_enum); - - for(int k=0;k<3;k++) for(int l=0;l<3;l++) MARSHALLING(coord_system[k][l]); - - MARSHALLING(gsize); - MARSHALLING(fsize); - MARSHALLING(ssize); - MARSHALLING(clone); - MARSHALLING(active); - MARSHALLING(freeze); - MARSHALLING_DYNAMIC(f_set,bool,gsize); - MARSHALLING_DYNAMIC(s_set,bool,gsize); - MARSHALLING_DYNAMIC(svalues,IssmDouble,gsize); - MARSHALLING_DYNAMIC(doftype,int,gsize); - MARSHALLING_DYNAMIC(gdoflist,int,gsize); - MARSHALLING_DYNAMIC(fdoflist,int,fsize); - MARSHALLING_DYNAMIC(sdoflist,int,ssize); - MARSHALLING_DYNAMIC(gdoflist_local,int,gsize); - MARSHALLING_DYNAMIC(fdoflist_local,int,fsize); - MARSHALLING_DYNAMIC(sdoflist_local,int,ssize); -} /*}}}*/ void Node::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = NodeEnum; Index: ../trunk-jpl/src/c/classes/Profiler.h =================================================================== --- ../trunk-jpl/src/c/classes/Profiler.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Profiler.h (revision 25507) @@ -51,7 +51,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); Index: ../trunk-jpl/src/c/classes/Radar.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Radar.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Radar.cpp (revision 25507) @@ -57,10 +57,6 @@ return -1; } /*}}}*/ -void Radar::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ - _error_("not implemented yet!"); -} -/*}}}*/ void Radar::Marshall2(MarshallHandle* marshallhandle){/*{{{*/ _error_("not implemented yet!"); } Index: ../trunk-jpl/src/c/classes/Nodalvalue.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Nodalvalue.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Nodalvalue.cpp (revision 25507) @@ -62,10 +62,6 @@ return -1; } /*}}}*/ -void Nodalvalue::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ - _error_("not implemented yet!"); -} -/*}}}*/ void Nodalvalue::Marshall2(MarshallHandle* marshallhandle){/*{{{*/ _error_("not implemented yet!"); } Index: ../trunk-jpl/src/c/classes/Misfit.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Misfit.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Misfit.cpp (revision 25507) @@ -88,10 +88,6 @@ return -1; } /*}}}*/ -void Misfit::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ - _error_("not implemented yet!"); -} -/*}}}*/ void Misfit::Marshall2(MarshallHandle* marshallhandle){/*{{{*/ _error_("not implemented yet!"); } Index: ../trunk-jpl/src/c/classes/Massfluxatgate.h =================================================================== --- ../trunk-jpl/src/c/classes/Massfluxatgate.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Massfluxatgate.h (revision 25507) @@ -122,10 +122,6 @@ return MassfluxatgateEnum; } /*}}}*/ - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ - _error_("not implemented yet!"); - } - /*}}}*/ void Marshall2(MarshallHandle* marshallhandle){/*{{{*/ int object_enum = MassfluxatgateEnum; Index: ../trunk-jpl/src/c/classes/FemModel.h =================================================================== --- ../trunk-jpl/src/c/classes/FemModel.h (revision 25506) +++ ../trunk-jpl/src/c/classes/FemModel.h (revision 25507) @@ -80,7 +80,6 @@ int GetElementsWidth(){return 3;};//just tria elements in this first version void InitFromFiles(char* rootpath, char* inputfilename, char* outputfilename, char* petscfilename, char* lockfilename, char* restartfilename, const int solution_type,bool trace,IssmPDouble* X=NULL); void InitFromFids(char* rootpath, FILE* IOMODEL, FILE* toolkitsoptionsfid, int in_solution_type, bool trace, IssmPDouble* X=NULL); - void Marshall(char** pmarshalled_data, int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); void Restart(void); void RestartAD(int step); Index: ../trunk-jpl/src/c/classes/Numberedcostfunction.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Numberedcostfunction.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Numberedcostfunction.cpp (revision 25507) @@ -85,10 +85,6 @@ return -1; } /*}}}*/ -void Numberedcostfunction::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ - _error_("not implemented yet!"); -} -/*}}}*/ void Numberedcostfunction::Marshall2(MarshallHandle* marshallhandle){/*{{{*/ _error_("not implemented yet!"); } Index: ../trunk-jpl/src/c/classes/Params/Parameters.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Params/Parameters.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/Parameters.cpp (revision 25507) @@ -110,134 +110,6 @@ return; } /*}}}*/ -void Parameters::Marshall(char** pmarshalled_data, int* pmarshalled_data_size, int marshall_direction){/*{{{*/ - - int obj_enum=-1; - int num_params=0; - - MARSHALLING_ENUM(ParametersEnum); - - if(marshall_direction==MARSHALLING_WRITE || marshall_direction==MARSHALLING_SIZE){ - - /*Marshall num_params first*/ - for(int i=0;iparams[i]) num_params++; - } - MARSHALLING(num_params); - - /*Marshall Parameters one by one now*/ - for(int i=0;iparams[i]){ - obj_enum = this->params[i]->ObjectEnum(); - MARSHALLING(obj_enum); - this->params[i]->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - } - } - } - else{ - - /*Get number of params marshalled*/ - MARSHALLING(num_params); - - /*Recover parameters one by one*/ - for(int i=0;iMarshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(doubleparam); - } - else if(obj_enum==IntParamEnum){ - IntParam* intparam=NULL; - intparam=new IntParam(); - intparam->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(intparam); - } - else if(obj_enum==IntMatParamEnum){ - IntMatParam* intmparam=NULL; - intmparam=new IntMatParam(); - intmparam->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(intmparam); - } - else if(obj_enum==IntVecParamEnum){ - IntVecParam* intvparam=NULL; - intvparam=new IntVecParam(); - intvparam->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(intvparam); - } - else if(obj_enum==BoolParamEnum){ - BoolParam* boolparam=NULL; - boolparam=new BoolParam(); - boolparam->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(boolparam); - } - else if(obj_enum==DataSetParamEnum){ - DataSetParam* dsparam=NULL; - dsparam=new DataSetParam(); - dsparam->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(dsparam); - } - else if(obj_enum==DoubleMatArrayParamEnum){ - DoubleMatArrayParam* dmaparam=NULL; - dmaparam=new DoubleMatArrayParam(); - dmaparam->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(dmaparam); - } - else if(obj_enum==DoubleMatParamEnum){ - DoubleMatParam* dmparam=NULL; - dmparam=new DoubleMatParam(); - dmparam->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(dmparam); - } - else if(obj_enum==DoubleVecParamEnum){ - DoubleVecParam* dvparam=NULL; - dvparam=new DoubleVecParam(); - dvparam->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(dvparam); - } - else if(obj_enum==FileParamEnum){ - FileParam* fileparam=NULL; - fileparam=new FileParam(); - fileparam->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - delete fileparam; - /* No need to add this object, the pointer is not valid - The FemModel should reset all FileParams in the restart function */ - } - else if(obj_enum==StringParamEnum){ - StringParam* sparam=NULL; - sparam=new StringParam(); - sparam->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(sparam); - } - else if(obj_enum==StringArrayParamEnum){ - StringArrayParam* saparam=NULL; - saparam=new StringArrayParam(); - saparam->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(saparam); - } - else if(obj_enum==TransientParamEnum){ - TransientParam* transparam=NULL; - transparam=new TransientParam(); - transparam->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(transparam); - } - else if(obj_enum==TransientArrayParamEnum){ - TransientArrayParam* transarrayparam=NULL; - transarrayparam=new TransientArrayParam(); - transarrayparam->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(transarrayparam); - } - else if(obj_enum==GenericParamEnum){ - /*Skip for now (we don't want to Marhsall Comms)*/ - } - } - } -} -/*}}}*/ void Parameters::Marshall2(MarshallHandle* marshallhandle){/*{{{*/ int num_params=0; Index: ../trunk-jpl/src/c/classes/Params/FileParam.h =================================================================== --- ../trunk-jpl/src/c/classes/Params/FileParam.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/FileParam.h (revision 25507) @@ -34,7 +34,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Params/Param.h =================================================================== --- ../trunk-jpl/src/c/classes/Params/Param.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/Param.h (revision 25507) @@ -44,7 +44,6 @@ virtual void GetParameterValue(FILE** pfid)=0; virtual void GetParameterValue(DataSet** pdataset)=0; virtual int InstanceEnum()=0; - virtual void Marshall(char** pmarshalled_data, int* pmarshalled_data_size, int marshall_direction)=0; virtual void Marshall2(MarshallHandle* marshallhandle)=0; virtual int ObjectEnum()=0; Index: ../trunk-jpl/src/c/classes/Params/DataSetParam.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Params/DataSetParam.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/DataSetParam.cpp (revision 25507) @@ -51,16 +51,6 @@ /*}}}*/ int DataSetParam::Id(void){ return -1; }/*{{{*/ /*}}}*/ -void DataSetParam::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - if(marshall_direction==MARSHALLING_LOAD)value=new DataSet(); - - MARSHALLING_ENUM(DataSetParamEnum); - MARSHALLING(enum_type); - value->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - -} -/*}}}*/ void DataSetParam::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ if(marshallhandle->OperationNumber()==MARSHALLING_LOAD)value=new DataSet(); Index: ../trunk-jpl/src/c/classes/Params/IntVecParam.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Params/IntVecParam.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/IntVecParam.cpp (revision 25507) @@ -69,19 +69,6 @@ /*}}}*/ int IntVecParam::Id(void){ return -1; }/*{{{*/ /*}}}*/ -void IntVecParam::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(IntVecParamEnum); - - MARSHALLING(enum_type); - MARSHALLING(M); - if(M) { - MARSHALLING_DYNAMIC(values,int,M); - } - else values=NULL; - -} -/*}}}*/ void IntVecParam::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = IntVecParamEnum; Index: ../trunk-jpl/src/c/classes/Params/IntParam.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Params/IntParam.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/IntParam.cpp (revision 25507) @@ -48,15 +48,6 @@ /*}}}*/ int IntParam::Id(void){ return -1; }/*{{{*/ /*}}}*/ -void IntParam::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(IntParamEnum); - - MARSHALLING(enum_type); - MARSHALLING(value); - -} -/*}}}*/ void IntParam::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = IntParamEnum; Index: ../trunk-jpl/src/c/classes/Params/BoolParam.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Params/BoolParam.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/BoolParam.cpp (revision 25507) @@ -47,15 +47,6 @@ /*}}}*/ int BoolParam::Id(void){ return -1; }/*{{{*/ /*}}}*/ -void BoolParam::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(BoolParamEnum); - - MARSHALLING(enum_type); - MARSHALLING(value); - -} -/*}}}*/ void BoolParam::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = BoolParamEnum; Index: ../trunk-jpl/src/c/classes/Params/IntMatParam.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Params/IntMatParam.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/IntMatParam.cpp (revision 25507) @@ -66,16 +66,6 @@ /*}}}*/ int IntMatParam::Id(void){ return -1; }/*{{{*/ /*}}}*/ -void IntMatParam::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(IntMatParamEnum); - - MARSHALLING(enum_type); - MARSHALLING(M); - MARSHALLING(N); - MARSHALLING_DYNAMIC(value,int,M*N); -} -/*}}}*/ void IntMatParam::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = IntMatParamEnum; Index: ../trunk-jpl/src/c/classes/Params/StringArrayParam.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Params/StringArrayParam.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/StringArrayParam.cpp (revision 25507) @@ -72,32 +72,6 @@ /*}}}*/ int StringArrayParam::Id(void){ return -1; }/*{{{*/ /*}}}*/ -void StringArrayParam::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - int* sizes=NULL; - - if(marshall_direction==MARSHALLING_WRITE || marshall_direction==MARSHALLING_SIZE){ - if(numstrings)sizes=xNew(numstrings); - for(int i=0;i(numstrings); - for(int i=0;i(sizes); - -} -/*}}}*/ void StringArrayParam::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int* sizes=NULL; Index: ../trunk-jpl/src/c/classes/Params/StringParam.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Params/StringParam.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/StringParam.cpp (revision 25507) @@ -49,19 +49,6 @@ /*}}}*/ int StringParam::Id(void){ return -1; }/*{{{*/ /*}}}*/ -void StringParam::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - int size = 0; - - if(marshall_direction==MARSHALLING_WRITE || marshall_direction == MARSHALLING_SIZE)size=strlen(value)+1; - - MARSHALLING_ENUM(StringParamEnum); - MARSHALLING(enum_type); - MARSHALLING(size); - MARSHALLING_DYNAMIC(value,char,size); - -} -/*}}}*/ void StringParam::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int size = 0; Index: ../trunk-jpl/src/c/classes/Params/TransientParam.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Params/TransientParam.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/TransientParam.cpp (revision 25507) @@ -67,22 +67,6 @@ /*}}}*/ int TransientParam::Id(void){ return -1; }/*{{{*/ /*}}}*/ -void TransientParam::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(TransientParamEnum); - - MARSHALLING(enum_type); - MARSHALLING(interpolation); - MARSHALLING(N); - if(marshall_direction==MARSHALLING_LOAD){ - values=xNew(N); - timesteps=xNew(N); - } - MARSHALLING_DYNAMIC(values,IssmDouble,N); - MARSHALLING_DYNAMIC(timesteps,IssmDouble,N); - -} -/*}}}*/ void TransientParam::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = TransientParamEnum; Index: ../trunk-jpl/src/c/classes/Params/VectorParam.h =================================================================== --- ../trunk-jpl/src/c/classes/Params/VectorParam.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/VectorParam.h (revision 25507) @@ -35,7 +35,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!"); }; int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Params/MatrixParam.h =================================================================== --- ../trunk-jpl/src/c/classes/Params/MatrixParam.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/MatrixParam.h (revision 25507) @@ -35,7 +35,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!"); }; void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!"); }; int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Params/TransientArrayParam.h =================================================================== --- ../trunk-jpl/src/c/classes/Params/TransientArrayParam.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/TransientArrayParam.h (revision 25507) @@ -38,7 +38,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Params/DoubleVecParam.h =================================================================== --- ../trunk-jpl/src/c/classes/Params/DoubleVecParam.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/DoubleVecParam.h (revision 25507) @@ -35,7 +35,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Params/DoubleParam.h =================================================================== --- ../trunk-jpl/src/c/classes/Params/DoubleParam.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/DoubleParam.h (revision 25507) @@ -35,7 +35,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Params/FileParam.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Params/FileParam.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/FileParam.cpp (revision 25507) @@ -48,16 +48,6 @@ /*}}}*/ int FileParam::Id(void){ return -1; }/*{{{*/ /*}}}*/ -void FileParam::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(FileParamEnum); - MARSHALLING(enum_type); - MARSHALLING(value); - - if(marshall_direction==MARSHALLING_LOAD) value=NULL; //meaningless file pointer! - -} -/*}}}*/ void FileParam::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = FileParamEnum; Index: ../trunk-jpl/src/c/classes/Params/DoubleMatArrayParam.h =================================================================== --- ../trunk-jpl/src/c/classes/Params/DoubleMatArrayParam.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/DoubleMatArrayParam.h (revision 25507) @@ -37,7 +37,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Params/DoubleMatParam.h =================================================================== --- ../trunk-jpl/src/c/classes/Params/DoubleMatParam.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/DoubleMatParam.h (revision 25507) @@ -37,7 +37,6 @@ int Id(); int ObjectEnum(); Param* copy(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); /*}}}*/ /*Param vritual function definitions: {{{*/ Index: ../trunk-jpl/src/c/classes/Params/GenericParam.h =================================================================== --- ../trunk-jpl/src/c/classes/Params/GenericParam.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/GenericParam.h (revision 25507) @@ -51,10 +51,6 @@ // but I would prefer to drop this not to hide a "new" in here because // it does not clarify ownership of the newed up instance... // use the default copy constructor instead - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ - _printf_(" WARNING: parameter "<myEnumVal)<<" is a GenericParam and cannot be marshalled\n"); - /*Nothing for now*/ - } void Marshall2(MarshallHandle* marshallhandle){ _printf_(" WARNING: parameter "<myEnumVal)<<" is a GenericParam and cannot be marshalled\n"); /*Nothing for now*/ Index: ../trunk-jpl/src/c/classes/Params/Parameters.h =================================================================== --- ../trunk-jpl/src/c/classes/Params/Parameters.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/Parameters.h (revision 25507) @@ -34,7 +34,6 @@ void Echo(); void Delete(int enum_type); bool Exist(int enum_type); - void Marshall(char** pmarshalled_data, int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); void FindParam(bool* pinteger,int enum_type); Index: ../trunk-jpl/src/c/classes/Params/DataSetParam.h =================================================================== --- ../trunk-jpl/src/c/classes/Params/DataSetParam.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/DataSetParam.h (revision 25507) @@ -35,7 +35,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Params/IntVecParam.h =================================================================== --- ../trunk-jpl/src/c/classes/Params/IntVecParam.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/IntVecParam.h (revision 25507) @@ -36,7 +36,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Params/IntParam.h =================================================================== --- ../trunk-jpl/src/c/classes/Params/IntParam.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/IntParam.h (revision 25507) @@ -35,7 +35,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Params/BoolParam.h =================================================================== --- ../trunk-jpl/src/c/classes/Params/BoolParam.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/BoolParam.h (revision 25507) @@ -34,7 +34,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Params/IntMatParam.h =================================================================== --- ../trunk-jpl/src/c/classes/Params/IntMatParam.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/IntMatParam.h (revision 25507) @@ -36,7 +36,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Params/TransientArrayParam.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Params/TransientArrayParam.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/TransientArrayParam.cpp (revision 25507) @@ -72,22 +72,6 @@ /*}}}*/ int TransientArrayParam::Id(void){ return -1; }/*{{{*/ /*}}}*/ -void TransientArrayParam::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(TransientArrayParamEnum); - - MARSHALLING(enum_type); - MARSHALLING(interpolation); - MARSHALLING(M); - MARSHALLING(N); - if(marshall_direction==MARSHALLING_LOAD){ - values = xNew(M*N); - timesteps = xNew(N); - } - MARSHALLING_DYNAMIC(values,IssmDouble,M*N); - MARSHALLING_DYNAMIC(timesteps,IssmDouble,N); - -}/*}}}*/ void TransientArrayParam::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = TransientArrayParamEnum; Index: ../trunk-jpl/src/c/classes/Params/DoubleVecParam.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Params/DoubleVecParam.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/DoubleVecParam.cpp (revision 25507) @@ -58,16 +58,6 @@ /*}}}*/ int DoubleVecParam::Id(void){ return -1; }/*{{{*/ /*}}}*/ -void DoubleVecParam::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(DoubleVecParamEnum); - - MARSHALLING(enum_type); - MARSHALLING(M); - MARSHALLING_DYNAMIC(values,IssmDouble,M); - -} -/*}}}*/ void DoubleVecParam::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = DoubleVecParamEnum; Index: ../trunk-jpl/src/c/classes/Params/DoubleParam.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Params/DoubleParam.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/DoubleParam.cpp (revision 25507) @@ -45,15 +45,6 @@ /*}}}*/ int DoubleParam::Id(void){ return -1; }/*{{{*/ /*}}}*/ -void DoubleParam::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(DoubleParamEnum); - - MARSHALLING(enum_type); - MARSHALLING(value); - -} -/*}}}*/ void DoubleParam::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ int object_enum = DoubleParamEnum; Index: ../trunk-jpl/src/c/classes/Params/StringArrayParam.h =================================================================== --- ../trunk-jpl/src/c/classes/Params/StringArrayParam.h (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/StringArrayParam.h (revision 25507) @@ -35,7 +35,6 @@ void DeepEcho(); void Echo(); int Id(); - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction); void Marshall2(MarshallHandle* marshallhandle); int ObjectEnum(); /*}}}*/ Index: ../trunk-jpl/src/c/classes/Params/DoubleMatArrayParam.cpp =================================================================== --- ../trunk-jpl/src/c/classes/Params/DoubleMatArrayParam.cpp (revision 25506) +++ ../trunk-jpl/src/c/classes/Params/DoubleMatArrayParam.cpp (revision 25507) @@ -115,28 +115,6 @@ /*}}}*/ int DoubleMatArrayParam::Id(void){ return -1; }/*{{{*/ /*}}}*/ -void DoubleMatArrayParam::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ - - MARSHALLING_ENUM(DoubleMatArrayParamEnum); - - MARSHALLING(enum_type); - MARSHALLING(M); - if(M){ - MARSHALLING_DYNAMIC(mdim_array,int,M); - MARSHALLING_DYNAMIC(ndim_array,int,M); - if(marshall_direction==MARSHALLING_LOAD && M) array=xNew(M); - for(int i=0;i::iterator obj; - int obj_size=0; - int obj_enum=0; - int i; - - if(marshall_direction==MARSHALLING_WRITE || marshall_direction==MARSHALLING_SIZE){ - obj_size=objects.size(); - } - else{ - clear(); - } - - MARSHALLING_ENUM(DataSetEnum); - MARSHALLING(enum_type); - MARSHALLING(sorted); - MARSHALLING(presorted); - MARSHALLING(numsorted); - - /*Now branch according to direction of marshalling: */ - if(marshall_direction==MARSHALLING_WRITE || marshall_direction==MARSHALLING_SIZE){ - if(!(this->sorted && numsorted>0 && this->id_offsets)){ - sorted_ids=NULL; - id_offsets=NULL; - } - MARSHALLING_DYNAMIC(sorted_ids,int,numsorted); - MARSHALLING_DYNAMIC(id_offsets,int,numsorted); - MARSHALLING(obj_size); - - /*Go through our objects, and marshall them into the buffer: */ - for( obj=this->objects.begin() ; obj < this->objects.end(); obj++ ){ - obj_enum=(*obj)->ObjectEnum(); - MARSHALLING(obj_enum); - (*obj)->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - } - } - else{ - - MARSHALLING_DYNAMIC(sorted_ids,int,numsorted); - MARSHALLING_DYNAMIC(id_offsets,int,numsorted); - if (!(this->sorted && numsorted>0)){ - sorted_ids=NULL; - id_offsets=NULL; - } - MARSHALLING(obj_size); - - /*This is the heart of the demashalling method. We have a buffer coming - in, and we are supposed to create a dataset out of it. No such thing - as class orientation for buffers, we need to key off the enum of each - object stored in the buffer. */ - for(i=0;iMarshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(node); - } - else if(obj_enum==VertexEnum){ - Vertex* vertex=NULL; - vertex=new Vertex(); - vertex->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(vertex); - } - else if(obj_enum==MaticeEnum){ - Matice* matice=NULL; - matice=new Matice(); - matice->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(matice); - } - else if(obj_enum==MatestarEnum){ - Matestar* matestar=NULL; - matestar=new Matestar(); - matestar->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(matestar); - } - else if(obj_enum==SpcStaticEnum){ - SpcStatic* spcstatic=NULL; - spcstatic=new SpcStatic(); - spcstatic->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(spcstatic); - } - else if(obj_enum==SpcDynamicEnum){ - SpcDynamic* spcdynamic=NULL; - spcdynamic=new SpcDynamic(); - spcdynamic->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(spcdynamic); - } - else if(obj_enum==SpcTransientEnum){ - SpcTransient* spctransient=NULL; - spctransient=new SpcTransient(); - spctransient->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(spctransient); - } - else if(obj_enum==TriaEnum){ - Tria* tria=NULL; - tria=new Tria(); - tria->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(tria); - } - else if(obj_enum==PentaEnum){ - Penta* penta=NULL; - penta=new Penta(); - penta->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(penta); - } - else if(obj_enum==TetraEnum){ - Tetra* tetra=NULL; - tetra=new Tetra(); - tetra->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(tetra); - } - else if(obj_enum==SegEnum){ - Seg* seg=NULL; - seg=new Seg(); - seg->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(seg); - } - else if(obj_enum==RiftfrontEnum){ - Riftfront* rift=NULL; - rift=new Riftfront(); - rift->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(rift); - } - else if(obj_enum==NumericalfluxEnum){ - Numericalflux* numflux=NULL; - numflux=new Numericalflux(); - numflux->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(numflux); - } - else if(obj_enum==PengridEnum){ - Pengrid* pengrid=NULL; - pengrid=new Pengrid(); - pengrid->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(pengrid); - } - else if(obj_enum==PenpairEnum){ - Penpair* penpair=NULL; - penpair=new Penpair(); - penpair->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(penpair); - } - else if(obj_enum==DoubleExternalResultEnum){ - GenericExternalResult* result=new GenericExternalResult(); - result->Marshall(pmarshalled_data,pmarshalled_data_size,marshall_direction); - this->AddObject(result); - } - else _error_("could not recognize enum type: " << obj_enum << ": " << EnumToStringx(obj_enum) ); - } - } -} -/*}}}*/ void DataSet::Marshall2(MarshallHandle* marshallhandle){ /*{{{*/ vector::iterator obj; Index: ../trunk-jpl/src/c/kml/KML_Object.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_Object.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_Object.h (revision 25507) @@ -29,7 +29,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ /*virtual functions: */ Index: ../trunk-jpl/src/c/kml/KML_SubStyle.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_SubStyle.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_SubStyle.h (revision 25507) @@ -28,7 +28,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_LineString.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_LineString.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_LineString.h (revision 25507) @@ -37,7 +37,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_Overlay.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_Overlay.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_Overlay.h (revision 25507) @@ -35,7 +35,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_Container.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_Container.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_Container.h (revision 25507) @@ -32,7 +32,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_Polygon.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_Polygon.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_Polygon.h (revision 25507) @@ -39,7 +39,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_Geometry.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_Geometry.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_Geometry.h (revision 25507) @@ -28,7 +28,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_ColorStyle.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_ColorStyle.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_ColorStyle.h (revision 25507) @@ -35,7 +35,7 @@ void Demarshall(char** pmarshalled_dataset){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_Placemark.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_Placemark.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_Placemark.h (revision 25507) @@ -33,7 +33,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_Unknown.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_Unknown.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_Unknown.h (revision 25507) @@ -31,7 +31,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_GroundOverlay.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_GroundOverlay.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_GroundOverlay.h (revision 25507) @@ -35,7 +35,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_Style.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_Style.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_Style.h (revision 25507) @@ -37,7 +37,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_Comment.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_Comment.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_Comment.h (revision 25507) @@ -29,7 +29,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ /*virtual functions: */ Index: ../trunk-jpl/src/c/kml/KML_MultiGeometry.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_MultiGeometry.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_MultiGeometry.h (revision 25507) @@ -33,7 +33,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_LineStyle.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_LineStyle.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_LineStyle.h (revision 25507) @@ -30,7 +30,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_Folder.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_Folder.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_Folder.h (revision 25507) @@ -29,7 +29,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_Document.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_Document.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_Document.h (revision 25507) @@ -29,7 +29,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_File.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_File.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_File.h (revision 25507) @@ -31,7 +31,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle); /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_Icon.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_Icon.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_Icon.h (revision 25507) @@ -43,7 +43,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_Point.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_Point.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_Point.h (revision 25507) @@ -35,7 +35,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_LinearRing.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_LinearRing.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_LinearRing.h (revision 25507) @@ -37,7 +37,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_Feature.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_Feature.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_Feature.h (revision 25507) @@ -43,7 +43,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_StyleSelector.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_StyleSelector.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_StyleSelector.h (revision 25507) @@ -28,7 +28,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_LatLonBox.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_LatLonBox.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_LatLonBox.h (revision 25507) @@ -34,7 +34,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/kml/KML_Attribute.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_Attribute.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_Attribute.h (revision 25507) @@ -28,7 +28,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle); /*}}}*/ /*virtual functions: */ Index: ../trunk-jpl/src/c/kml/KML_PolyStyle.h =================================================================== --- ../trunk-jpl/src/c/kml/KML_PolyStyle.h (revision 25506) +++ ../trunk-jpl/src/c/kml/KML_PolyStyle.h (revision 25507) @@ -31,7 +31,7 @@ int Id(){_error_("Not implemented yet.");}; int ObjectEnum(){_error_("Not implemented yet.");}; Object* copy(){_error_("Not implemented yet.");}; - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ _error_("not implemented yet!");}; + void Marshall2(MarshallHandle* marshallhandle){ _error_("not implemented yet!");}; /*}}}*/ }; Index: ../trunk-jpl/src/c/shared/io/Marshalling/Marshalling.h =================================================================== --- ../trunk-jpl/src/c/shared/io/Marshalling/Marshalling.h (revision 25506) +++ ../trunk-jpl/src/c/shared/io/Marshalling/Marshalling.h (revision 25507) @@ -118,59 +118,4 @@ } } -#define MARSHALLING_ENUM(EN)\ - int type_enum=EN;\ - if(marshall_direction==MARSHALLING_WRITE){\ - memcpy(*pmarshalled_data,&type_enum,sizeof(int));\ - *pmarshalled_data+=sizeof(int);\ - }\ - else if(marshall_direction==MARSHALLING_SIZE){\ - *pmarshalled_data_size+=sizeof(int);\ - }\ - else if(marshall_direction==MARSHALLING_LOAD){\ - *pmarshalled_data+=sizeof(int);\ - }\ - else _error_("Wrong direction during the Marshall process");\ - - -#define MARSHALLING(FIELD)\ - \ - if(marshall_direction==MARSHALLING_WRITE){\ - memcpy(*pmarshalled_data,&FIELD,sizeof(FIELD));\ - *pmarshalled_data+=sizeof(FIELD);\ - }\ - else if(marshall_direction==MARSHALLING_SIZE){\ - *pmarshalled_data_size+=sizeof(FIELD);\ - }\ - else if(marshall_direction==MARSHALLING_LOAD){\ - memcpy(&FIELD,*pmarshalled_data,sizeof(FIELD));\ - *pmarshalled_data+=sizeof(FIELD);\ - }\ - else _error_("Wrong direction during the Marshall process"); - - -#define MARSHALLING_DYNAMIC(FIELD,TYPE,SIZE) \ - \ - {\ - bool field_null=true;\ - if (FIELD)field_null=false;\ - MARSHALLING(field_null);\ - \ - if(!field_null){\ - if(marshall_direction==MARSHALLING_WRITE){\ - memcpy(*pmarshalled_data,FIELD,SIZE*sizeof(TYPE));\ - *pmarshalled_data+=SIZE*sizeof(TYPE);\ - }\ - else if(marshall_direction==MARSHALLING_SIZE){\ - *pmarshalled_data_size+=SIZE*sizeof(TYPE);\ - }\ - else if(marshall_direction==MARSHALLING_LOAD){\ - FIELD=xNew(SIZE);\ - memcpy(FIELD,*pmarshalled_data,SIZE*sizeof(TYPE));\ - *pmarshalled_data+=SIZE*sizeof(TYPE);\ - }\ - else _error_("Wrong direction during the Marshall process");\ - }\ - } - #endif Index: ../trunk-jpl/src/c/toolkits/issm/Bucket.h =================================================================== --- ../trunk-jpl/src/c/toolkits/issm/Bucket.h (revision 25506) +++ ../trunk-jpl/src/c/toolkits/issm/Bucket.h (revision 25507) @@ -128,10 +128,6 @@ else if (this->type==VECTOR_BUCKET) return new Bucket(this->m,this->idxm,this->values,this->mode); else _error_("No Copy of Bucket because its type is invalid."); }; /*}}}*/ - void Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){/*{{{*/ - _error_("not implemented yet!"); - } - /*}}}*/ void Marshall2(MarshallHandle* marshallhandle){/*{{{*/ _error_("not implemented yet!"); }