Changeset 25481
- Timestamp:
- 08/26/20 19:25:33 (5 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Node.cpp
r23980 r25481 258 258 MARSHALLING(indexingupdate); 259 259 MARSHALLING(analysis_enum); 260 MARSHALLING_ARRAY(coord_system,IssmDouble,9); 260 261 for(int k=0;k<3;k++) for(int l=0;l<3;l++) MARSHALLING(coord_system[k][l]); 261 262 262 263 MARSHALLING(gsize); -
issm/trunk-jpl/src/c/classes/Params/TransientArrayParam.cpp
r22732 r25481 85 85 timesteps = xNew<IssmDouble>(N); 86 86 } 87 MARSHALLING_ ARRAY(values,IssmDouble,M*N);88 MARSHALLING_ ARRAY(timesteps,IssmDouble,N);87 MARSHALLING_DYNAMIC(values,IssmDouble,M*N); 88 MARSHALLING_DYNAMIC(timesteps,IssmDouble,N); 89 89 90 90 }/*}}}*/ -
issm/trunk-jpl/src/c/classes/Params/TransientParam.cpp
r22340 r25481 79 79 timesteps=xNew<IssmDouble>(N); 80 80 } 81 MARSHALLING_ ARRAY(values,IssmDouble,N);82 MARSHALLING_ ARRAY(timesteps,IssmDouble,N);81 MARSHALLING_DYNAMIC(values,IssmDouble,N); 82 MARSHALLING_DYNAMIC(timesteps,IssmDouble,N); 83 83 84 84 } -
issm/trunk-jpl/src/c/shared/io/Marshalling/Marshalling.h
r19254 r25481 43 43 44 44 45 #define MARSHALLING_ARRAY(FIELD,TYPE,SIZE) \46 \47 if(marshall_direction==MARSHALLING_FORWARD){\48 memcpy(*pmarshalled_data,FIELD,SIZE*sizeof(TYPE));\49 *pmarshalled_data+=SIZE*sizeof(TYPE);\50 }\51 else if(marshall_direction==MARSHALLING_SIZE){\52 *pmarshalled_data_size+=SIZE*sizeof(TYPE);\53 }\54 else if(marshall_direction==MARSHALLING_BACKWARD){\55 memcpy(FIELD,*pmarshalled_data,SIZE*sizeof(TYPE));\56 *pmarshalled_data+=SIZE*sizeof(TYPE);\57 }\58 else _error_("Wrong direction during the Marshall process");59 60 61 45 #define MARSHALLING_DYNAMIC(FIELD,TYPE,SIZE) \ 62 46 \
Note:
See TracChangeset
for help on using the changeset viewer.