Changeset 25836 for issm/trunk/src/c/classes/Elements/Seg.cpp
- Timestamp:
- 12/08/20 08:45:53 (4 years ago)
- Location:
- issm/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:mergeinfo changed
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/c
- Property svn:ignore
-
old new 23 23 issm_ocean 24 24 issm_dakota 25 issm_post
-
- Property svn:ignore
-
issm/trunk/src/c/classes/Elements/Seg.cpp
r24686 r25836 13 13 #include <string.h> 14 14 #include "../classes.h" 15 #include "../Inputs 2/SegInput2.h"16 #include "../Inputs 2/TriaInput2.h"15 #include "../Inputs/SegInput.h" 16 #include "../Inputs/TriaInput.h" 17 17 #include "../../shared/shared.h" 18 18 /*}}}*/ … … 120 120 } 121 121 /*}}}*/ 122 void Seg::Marshall(char** pmarshalled_data,int* pmarshalled_data_size, int marshall_direction){ /*{{{*/ 123 124 MARSHALLING_ENUM(SegEnum); 125 MARSHALLING(this->iscollapsed); 126 MARSHALLING(this->isonsurface); 127 MARSHALLING(this->isonbase); 128 MARSHALLING(this->collapsed_ids[0]); 129 MARSHALLING(this->collapsed_ids[1]); 122 void Seg::Marshall(MarshallHandle* marshallhandle){ /*{{{*/ 123 124 int object_enum = SegEnum; 125 marshallhandle->call(object_enum); 126 127 marshallhandle->call(this->iscollapsed); 128 marshallhandle->call(this->isonsurface); 129 marshallhandle->call(this->isonbase); 130 marshallhandle->call(this->collapsed_ids[0]); 131 marshallhandle->call(this->collapsed_ids[1]); 130 132 131 133 /*Call parent classes: */ 132 ElementHook::Marshall( pmarshalled_data,pmarshalled_data_size,marshall_direction);133 Element::MarshallElement (pmarshalled_data,pmarshalled_data_size,marshall_direction,this->numanalyses);134 SegRef::Marshall( pmarshalled_data,pmarshalled_data_size,marshall_direction);134 ElementHook::Marshall(marshallhandle); 135 Element::MarshallElement2(marshallhandle,this->numanalyses); 136 SegRef::Marshall(marshallhandle); 135 137 136 138 vertices = (Vertex**)this->hvertices->deliverp(); … … 186 188 *pxyz_front=xyz_front; 187 189 }/*}}}*/ 188 Input 2* Seg::GetInput2(int inputenum){/*{{{*/190 Input* Seg::GetInput(int inputenum){/*{{{*/ 189 191 190 192 if(this->iscollapsed){ 191 TriaInput 2* input = this->inputs2->GetTriaInput(inputenum);193 TriaInput* input = this->inputs->GetTriaInput(inputenum); 192 194 if(!input) return input; 193 195 … … 221 223 } 222 224 else{ 223 SegInput 2* input = this->inputs2->GetSegInput(inputenum);225 SegInput* input = this->inputs->GetSegInput(inputenum); 224 226 if(!input) return input; 225 227 … … 252 254 } 253 255 }/*}}}*/ 254 Input 2* Seg::GetInput2(int inputenum,IssmDouble time){/*{{{*/256 Input* Seg::GetInput(int inputenum,IssmDouble time){/*{{{*/ 255 257 _error_("not implemented yet"); 256 258 }/*}}}*/ … … 264 266 265 267 /*Recover parameters and values*/ 266 Element::GetInputListOnVertices(&gl[0],Mask GroundediceLevelsetEnum);268 Element::GetInputListOnVertices(&gl[0],MaskOceanLevelsetEnum); 267 269 268 270 /*Be sure that values are not zero*/ … … 301 303 302 304 }/*}}}*/ 303 void Seg::GetInputListOnVertices(IssmDouble* pvalue,Input 2* input,IssmDouble default_value){/*{{{*/305 void Seg::GetInputListOnVertices(IssmDouble* pvalue,Input* input,IssmDouble default_value){/*{{{*/ 304 306 305 307 /*Checks in debugging mode*/ … … 319 321 } 320 322 /*}}}*/ 321 void Seg::GetInputListOnNodes(IssmDouble* pvalue,Input 2* input,IssmDouble default_value){/*{{{*/323 void Seg::GetInputListOnNodes(IssmDouble* pvalue,Input* input,IssmDouble default_value){/*{{{*/ 322 324 323 325 /*Checks in debugging mode*/
Note:
See TracChangeset
for help on using the changeset viewer.