Skip to content

Commit 3d9b146

Browse files
CHG: fixing CoDiPack
1 parent ed9a993 commit 3d9b146

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/c/classes/Inputs/TransientInput.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ TransientInput::TransientInput(){/*{{{*/
2020

2121
this->enum_type=UNDEF;
2222
this->parameters=NULL;
23+
this->numtimesteps=0;
2324

2425
this->current_input=NULL;
2526
this->current_step=-1;
@@ -115,22 +116,22 @@ int TransientInput::Id(void){ return -1; }/*{{{*/
115116
/*}}}*/
116117
void TransientInput::Marshall(MarshallHandle* marshallhandle){ /*{{{*/
117118

118-
_assert_(this->timesteps.size()==this->numtimesteps);
119-
_assert_(this->inputs.size()==this->numtimesteps);
120-
121119
bool isnull;
122120
IssmDouble time;
123121

124122
int object_enum = TransientInputEnum;
125123
marshallhandle->call(object_enum);
126-
127124
marshallhandle->call(this->numberofelements_local);
128125
marshallhandle->call(this->numberofvertices_local);
129126
marshallhandle->call(this->enum_type);
130127
marshallhandle->call(this->numtimesteps);
131128

132129
/*Marshall!*/
133130
if(marshallhandle->OperationNumber()!=MARSHALLING_LOAD){
131+
132+
_assert_(this->timesteps.size()==this->numtimesteps);
133+
_assert_(this->inputs.size()==this->numtimesteps);
134+
134135
for(int i=0;i<this->numtimesteps;i++){
135136

136137
/*Write time for slice i*/
@@ -182,7 +183,6 @@ void TransientInput::Marshall(MarshallHandle* marshallhandle){ /*{{{*/
182183

183184
_assert_(this->timesteps.size()==this->numtimesteps);
184185
_assert_(this->inputs.size()==this->numtimesteps);
185-
186186
}
187187
/*}}}*/
188188
int TransientInput::ObjectEnum(void){/*{{{*/

0 commit comments

Comments
 (0)