372 size_t const slot_cnt( m_veg->slot_cnt());
373 size_t const slot_cnt_old( additional_season.size());
375 if ( slot_cnt <= slot_cnt_old)
380 matrix_2d_dbl_t::extent_type
const vtsl[] =
381 {
static_cast< matrix_2d_dbl_t::extent_type
>( slot_cnt),
382 static_cast< matrix_2d_dbl_t::extent_type >( sl_.soil_layer_cnt())};
384 additional_season.resize_and_preserve( slot_cnt,
false);
385 phenological_year.resize_and_preserve( slot_cnt, 0);
386 foliage_age_of_start_senescence.resize_and_preserve( slot_cnt, 0);
387 days_since_emergence.resize_and_preserve( slot_cnt, 0);
390 ts_leaftemp_vt.resize_and_preserve( slot_cnt, 0.0);
391 nd_leaftemp_vt.resize_and_preserve( slot_cnt, 0.0);
393 uptNH4Max_vt.resize_and_preserve( slot_cnt, 0.0);
394 uptNO3Max_vt.resize_and_preserve( slot_cnt, 0.0);
395 uptDONMax_vt.resize_and_preserve( slot_cnt, 0.0);
396 uptNWetMax_vt.resize_and_preserve( slot_cnt, 0.0);
397 uptNWet_vt.resize_and_preserve( slot_cnt, 0.0);
398 uptNTot_vt.resize_and_preserve( slot_cnt, 0.0);
400 rFolOld_vt.resize_and_preserve( slot_cnt, 0.0);
401 rBudOld_vt.resize_and_preserve( slot_cnt, 0.0);
402 rSapOld_vt.resize_and_preserve( slot_cnt, 0.0);
403 rFrtOld_vt.resize_and_preserve( slot_cnt, 0.0);
404 rTraOld_vt.resize_and_preserve( slot_cnt, 0.0);
405 exsuLossOld_vt.resize_and_preserve( slot_cnt, 0.0);
407 uptNH4_vt.resize_and_preserve( slot_cnt, 0.0);
408 uptNO3_vt.resize_and_preserve( slot_cnt, 0.0);
409 uptNH3_vt.resize_and_preserve( slot_cnt, 0.0);
410 uptDON_vt.resize_and_preserve( slot_cnt, 0.0);
412 uptNH4Old_vt.resize_and_preserve( slot_cnt, 0.0);
413 uptNO3Old_vt.resize_and_preserve( slot_cnt, 0.0);
414 uptNH3Old_vt.resize_and_preserve( slot_cnt, 0.0);
415 uptDONOld_vt.resize_and_preserve( slot_cnt, 0.0);
417 uptN2Old_vt.resize_and_preserve( slot_cnt, 0.0);
418 uptNOxOld_vt.resize_and_preserve( slot_cnt, 0.0);
420 while ( slot_cnt > uptNH4Max_vtsl.size())
422 std::vector<double> help_sl( sl_.soil_layer_cnt(), 0.0);
423 uptNH4Max_vtsl.push_back( help_sl);
425 while ( slot_cnt > uptNO3Max_vtsl.size())
427 std::vector<double> help_sl( sl_.soil_layer_cnt(), 0.0);
428 uptNO3Max_vtsl.push_back( help_sl);
430 while ( slot_cnt > uptDONMax_vtsl.size())
432 std::vector<double> help_sl( sl_.soil_layer_cnt(), 0.0);
433 uptDONMax_vtsl.push_back( help_sl);
435 while ( slot_cnt > foliage_age_na.size())
437 std::vector< int > help_sl( MoBiLE_MaximumAgeClasses, 0);
438 foliage_age_na.push_back( help_sl);
441 carbonuptake_vt.resize_and_preserve( slot_cnt, 0.0);
443 xylem_resistance_smoothed_old_vt.resize_and_preserve(slot_cnt, 0.0);
444 psidecline_cum_vt.resize_and_preserve(slot_cnt, 0.0);
445 psidecline_daycum_vt.resize_and_preserve(slot_cnt, 0.0);
446 rehydrationindex_cum_vt.resize_and_preserve(slot_cnt, 0.0);
449 mSapOpt_vt.resize_and_preserve( slot_cnt, 0.0);
450 mSapOld_vt.resize_and_preserve( slot_cnt, 0.0);
451 mCorOld_vt.resize_and_preserve( slot_cnt, 0.0);
452 qsaparea_vt.resize_and_preserve(slot_cnt, 0.0);
453 fsub_vt.resize_and_preserve(slot_cnt, 0.0);
455 mBudLoss_vt.resize_and_preserve( slot_cnt, 0.0);
456 mSapLoss_vt.resize_and_preserve( slot_cnt, 0.0);
457 ncFolOpt.resize_and_preserve( slot_cnt, 0.0);
458 ncBudOpt.resize_and_preserve( slot_cnt, 0.0);
459 nDem_vt.resize_and_preserve( slot_cnt, 0.0);
460 nFol_vt.resize_and_preserve( slot_cnt, 0.0);
461 nFrt_vt.resize_and_preserve( slot_cnt, 0.0);
462 nSap_vt.resize_and_preserve( slot_cnt, 0.0);
463 nCor_vt.resize_and_preserve( slot_cnt, 0.0);
464 nBud_vt.resize_and_preserve( slot_cnt, 0.0);
466 n_bud_to_fol_vt.resize_and_preserve( vtsl, 0.0);
467 n_sap_to_cor_vt.resize_and_preserve( vtsl, 0.0);
468 n_bud_to_cor_vt.resize_and_preserve( vtsl, 0.0);
469 n_fol_to_cor_vt.resize_and_preserve( vtsl, 0.0);
470 n_frt_to_cor_vt.resize_and_preserve( vtsl, 0.0);
471 n_sap_to_litter_vt.resize_and_preserve( vtsl, 0.0);
472 n_sap_to_redistribute_vt.resize_and_preserve( vtsl, 0.0);
473 n_bud_to_redistribute_vt.resize_and_preserve( vtsl, 0.0);
474 n_fol_to_redistribute_vt.resize_and_preserve( vtsl, 0.0);
475 n_frt_to_redistribute_vt.resize_and_preserve( vtsl, 0.0);
476 n_sap_gain_vt.resize_and_preserve( vtsl, 0.0);
477 n_bud_gain_vt.resize_and_preserve( vtsl, 0.0);
478 n_fol_gain_vt.resize_and_preserve( vtsl, 0.0);
479 n_frt_gain_vt.resize_and_preserve( vtsl, 0.0);