381 size_t const slot_cnt( m_veg->slot_cnt());
382 size_t const slot_cnt_old( additional_season.size());
384 if ( slot_cnt <= slot_cnt_old)
389 matrix_2d_dbl_t::extent_type
const vtsl[] =
390 {
static_cast< matrix_2d_dbl_t::extent_type
>( slot_cnt),
391 static_cast< matrix_2d_dbl_t::extent_type >( sl_.soil_layer_cnt())};
393 additional_season.resize_and_preserve( slot_cnt,
false);
394 phenological_year.resize_and_preserve( slot_cnt, 0);
395 foliage_age_of_start_senescence.resize_and_preserve( slot_cnt, 0);
396 days_since_emergence.resize_and_preserve( slot_cnt, 0);
399 ts_leaftemp_vt.resize_and_preserve( slot_cnt, 0.0);
400 nd_leaftemp_vt.resize_and_preserve( slot_cnt, 0.0);
402 uptNH4Max_vt.resize_and_preserve( slot_cnt, 0.0);
403 uptNO3Max_vt.resize_and_preserve( slot_cnt, 0.0);
404 uptDONMax_vt.resize_and_preserve( slot_cnt, 0.0);
405 uptNWetMax_vt.resize_and_preserve( slot_cnt, 0.0);
406 uptNWet_vt.resize_and_preserve( slot_cnt, 0.0);
407 uptNTot_vt.resize_and_preserve( slot_cnt, 0.0);
409 rFolOld_vt.resize_and_preserve( slot_cnt, 0.0);
410 rBudOld_vt.resize_and_preserve( slot_cnt, 0.0);
411 rSapOld_vt.resize_and_preserve( slot_cnt, 0.0);
412 rFrtOld_vt.resize_and_preserve( slot_cnt, 0.0);
413 rTraOld_vt.resize_and_preserve( slot_cnt, 0.0);
414 exsuLossOld_vt.resize_and_preserve( slot_cnt, 0.0);
416 uptNH4_vt.resize_and_preserve( slot_cnt, 0.0);
417 uptNO3_vt.resize_and_preserve( slot_cnt, 0.0);
418 uptNH3_vt.resize_and_preserve( slot_cnt, 0.0);
419 uptDON_vt.resize_and_preserve( slot_cnt, 0.0);
421 uptNH4Old_vt.resize_and_preserve( slot_cnt, 0.0);
422 uptNO3Old_vt.resize_and_preserve( slot_cnt, 0.0);
423 uptNH3Old_vt.resize_and_preserve( slot_cnt, 0.0);
424 uptDONOld_vt.resize_and_preserve( slot_cnt, 0.0);
426 uptN2Old_vt.resize_and_preserve( slot_cnt, 0.0);
427 uptNOxOld_vt.resize_and_preserve( slot_cnt, 0.0);
429 while ( slot_cnt > uptNH4Max_vtsl.size())
431 std::vector<double> help_sl( sl_.soil_layer_cnt(), 0.0);
432 uptNH4Max_vtsl.push_back( help_sl);
434 while ( slot_cnt > uptNO3Max_vtsl.size())
436 std::vector<double> help_sl( sl_.soil_layer_cnt(), 0.0);
437 uptNO3Max_vtsl.push_back( help_sl);
439 while ( slot_cnt > uptDONMax_vtsl.size())
441 std::vector<double> help_sl( sl_.soil_layer_cnt(), 0.0);
442 uptDONMax_vtsl.push_back( help_sl);
444 while ( slot_cnt > foliage_age_na.size())
446 std::vector< int > help_sl( MoBiLE_MaximumAgeClasses, 0);
447 foliage_age_na.push_back( help_sl);
450 carbonuptake_vt.resize_and_preserve( slot_cnt, 0.0);
452 xylem_resistance_smoothed_old_vt.resize_and_preserve(slot_cnt, 0.0);
453 psidecline_cum_vt.resize_and_preserve(slot_cnt, 0.0);
454 psidecline_daycum_vt.resize_and_preserve(slot_cnt, 0.0);
455 rehydrationindex_cum_vt.resize_and_preserve(slot_cnt, 0.0);
458 mSapOpt_vt.resize_and_preserve( slot_cnt, 0.0);
459 mSapOld_vt.resize_and_preserve( slot_cnt, 0.0);
460 mCorOld_vt.resize_and_preserve( slot_cnt, 0.0);
461 qsaparea_vt.resize_and_preserve(slot_cnt, 0.0);
462 fsub_vt.resize_and_preserve(slot_cnt, 0.0);
464 mBudLoss_vt.resize_and_preserve( slot_cnt, 0.0);
465 mSapLoss_vt.resize_and_preserve( slot_cnt, 0.0);
466 ncFolOpt.resize_and_preserve( slot_cnt, 0.0);
467 ncBudOpt.resize_and_preserve( slot_cnt, 0.0);
468 nDem_vt.resize_and_preserve( slot_cnt, 0.0);
469 nFol_vt.resize_and_preserve( slot_cnt, 0.0);
470 nFrt_vt.resize_and_preserve( slot_cnt, 0.0);
471 nSap_vt.resize_and_preserve( slot_cnt, 0.0);
472 nCor_vt.resize_and_preserve( slot_cnt, 0.0);
473 nBud_vt.resize_and_preserve( slot_cnt, 0.0);
475 n_bud_to_fol_vt.resize_and_preserve( vtsl, 0.0);
476 n_sap_to_cor_vt.resize_and_preserve( vtsl, 0.0);
477 n_bud_to_cor_vt.resize_and_preserve( vtsl, 0.0);
478 n_fol_to_cor_vt.resize_and_preserve( vtsl, 0.0);
479 n_frt_to_cor_vt.resize_and_preserve( vtsl, 0.0);
480 n_sap_to_litter_vt.resize_and_preserve( vtsl, 0.0);
481 n_sap_to_redistribute_vt.resize_and_preserve( vtsl, 0.0);
482 n_bud_to_redistribute_vt.resize_and_preserve( vtsl, 0.0);
483 n_fol_to_redistribute_vt.resize_and_preserve( vtsl, 0.0);
484 n_frt_to_redistribute_vt.resize_and_preserve( vtsl, 0.0);
485 n_sap_gain_vt.resize_and_preserve( vtsl, 0.0);
486 n_bud_gain_vt.resize_and_preserve( vtsl, 0.0);
487 n_fol_gain_vt.resize_and_preserve( vtsl, 0.0);
488 n_frt_gain_vt.resize_and_preserve( vtsl, 0.0);