@@ -139,7 +139,7 @@ void StochasticForcingx(FemModel* femmodel){/*{{{*/
139139 Element* element = xDynamicCast<Element*>(object);
140140 int numvertices = element->GetNumberOfVertices ();
141141 IssmDouble baselinedeepwatermelt;
142- IssmDouble deepwatermelt_tot[numvertices] ;
142+ IssmDouble deepwatermelt_tot[10 ]; _assert_ (numvertices< 10 ) ;
143143 Input* baselinedeepwatermelt_input = NULL ;
144144 baselinedeepwatermelt_input = element->GetInput (BaselineBasalforcingsSpatialDeepwaterMeltingRateEnum); _assert_ (baselinedeepwatermelt_input);
145145 element->GetInputValue (&dimensionid,StochasticForcingDefaultIdEnum);
@@ -160,7 +160,7 @@ void StochasticForcingx(FemModel* femmodel){/*{{{*/
160160 Element* element = xDynamicCast<Element*>(object);
161161 int numvertices = element->GetNumberOfVertices ();
162162 IssmDouble baselinecalvingrate;
163- IssmDouble calvingrate_tot[numvertices] ;
163+ IssmDouble calvingrate_tot[10 ]; _assert_ (numvertices< 10 ) ;
164164 Input* baselinecalvingrate_input = NULL ;
165165 baselinecalvingrate_input = element->GetInput (BaselineCalvingCalvingrateEnum); _assert_ (baselinecalvingrate_input);
166166 element->GetInputValue (&dimensionid,StochasticForcingDefaultIdEnum);
@@ -181,7 +181,7 @@ void StochasticForcingx(FemModel* femmodel){/*{{{*/
181181 Element* element = xDynamicCast<Element*>(object);
182182 int numvertices = element->GetNumberOfVertices ();
183183 IssmDouble baselinefloatingicemeltrate;
184- IssmDouble floatingicemeltrate_tot[numvertices] ;
184+ IssmDouble floatingicemeltrate_tot[10 ]; _assert_ (numvertices< 10 ) ;
185185 Input* baselinefloatingicemeltrate_input = NULL ;
186186 baselinefloatingicemeltrate_input = element->GetInput (BaselineBasalforcingsFloatingiceMeltingRateEnum); _assert_ (baselinefloatingicemeltrate_input);
187187 element->GetInputValue (&dimensionid,StochasticForcingDefaultIdEnum);
@@ -203,7 +203,7 @@ void StochasticForcingx(FemModel* femmodel){/*{{{*/
203203 Element* element = xDynamicCast<Element*>(object);
204204 int numvertices = element->GetNumberOfVertices ();
205205 IssmDouble baselinesmb;
206- IssmDouble smb_tot[numvertices] ;
206+ IssmDouble smb_tot[10 ]; _assert_ (numvertices< 10 ) ;
207207 Input* baselinesmb_input = NULL ;
208208 baselinesmb_input = element->GetInput (BaselineSmbMassBalanceEnum); _assert_ (baselinesmb_input);
209209 element->GetInputValue (&dimensionid,StochasticForcingDefaultIdEnum);
@@ -223,8 +223,8 @@ void StochasticForcingx(FemModel* femmodel){/*{{{*/
223223 for (Object* &object:femmodel->elements ->objects ){
224224 Element* element = xDynamicCast<Element*>(object);
225225 int numvertices = element->GetNumberOfVertices ();
226- IssmDouble p_water_deterministic[numvertices] ;
227- IssmDouble p_water[numvertices ];
226+ IssmDouble p_water_deterministic[10 ]; _assert_ (numvertices< 10 ) ;
227+ IssmDouble p_water[10 ];
228228 element->GetInputValue (&dimensionid,StochasticForcingDefaultIdEnum);
229229 element->SubglacialWaterPressure (FrictionWaterPressureEnum);
230230 element->GetInputListOnVertices (&p_water_deterministic[0 ],FrictionWaterPressureEnum);
0 commit comments