380 size_t const slot_cnt( m_veg->slot_cnt());
381 size_t const slot_cnt_old( additional_season.size());
383 if ( slot_cnt <= slot_cnt_old)
388 matrix_2d_dbl_t::extent_type
const vtsl[] =
389 {
static_cast< matrix_2d_dbl_t::extent_type
>( slot_cnt),
390 static_cast< matrix_2d_dbl_t::extent_type >( sl_.soil_layer_cnt())};
392 additional_season.resize_and_preserve( slot_cnt,
false);
393 phenological_year.resize_and_preserve( slot_cnt, 0);
394 foliage_age_of_start_senescence.resize_and_preserve( slot_cnt, 0);
395 days_since_emergence.resize_and_preserve( slot_cnt, 0);
398 ts_leaftemp_vt.resize_and_preserve( slot_cnt, 0.0);
399 nd_leaftemp_vt.resize_and_preserve( slot_cnt, 0.0);
401 uptNH4Max_vt.resize_and_preserve( slot_cnt, 0.0);
402 uptNO3Max_vt.resize_and_preserve( slot_cnt, 0.0);
403 uptDONMax_vt.resize_and_preserve( slot_cnt, 0.0);
404 uptNWetMax_vt.resize_and_preserve( slot_cnt, 0.0);
405 uptNWet_vt.resize_and_preserve( slot_cnt, 0.0);
406 uptNTot_vt.resize_and_preserve( slot_cnt, 0.0);
408 rFolOld_vt.resize_and_preserve( slot_cnt, 0.0);
409 rBudOld_vt.resize_and_preserve( slot_cnt, 0.0);
410 rSapOld_vt.resize_and_preserve( slot_cnt, 0.0);
411 rFrtOld_vt.resize_and_preserve( slot_cnt, 0.0);
412 rTraOld_vt.resize_and_preserve( slot_cnt, 0.0);
413 exsuLossOld_vt.resize_and_preserve( slot_cnt, 0.0);
415 uptNH4_vt.resize_and_preserve( slot_cnt, 0.0);
416 uptNO3_vt.resize_and_preserve( slot_cnt, 0.0);
417 uptNH3_vt.resize_and_preserve( slot_cnt, 0.0);
418 uptDON_vt.resize_and_preserve( slot_cnt, 0.0);
420 uptNH4Old_vt.resize_and_preserve( slot_cnt, 0.0);
421 uptNO3Old_vt.resize_and_preserve( slot_cnt, 0.0);
422 uptNH3Old_vt.resize_and_preserve( slot_cnt, 0.0);
423 uptDONOld_vt.resize_and_preserve( slot_cnt, 0.0);
425 uptN2Old_vt.resize_and_preserve( slot_cnt, 0.0);
426 uptNOxOld_vt.resize_and_preserve( slot_cnt, 0.0);
428 while ( slot_cnt > uptNH4Max_vtsl.size())
430 std::vector<double> help_sl( sl_.soil_layer_cnt(), 0.0);
431 uptNH4Max_vtsl.push_back( help_sl);
433 while ( slot_cnt > uptNO3Max_vtsl.size())
435 std::vector<double> help_sl( sl_.soil_layer_cnt(), 0.0);
436 uptNO3Max_vtsl.push_back( help_sl);
438 while ( slot_cnt > uptDONMax_vtsl.size())
440 std::vector<double> help_sl( sl_.soil_layer_cnt(), 0.0);
441 uptDONMax_vtsl.push_back( help_sl);
443 while ( slot_cnt > foliage_age_na.size())
445 std::vector< int > help_sl( MoBiLE_MaximumAgeClasses, 0);
446 foliage_age_na.push_back( help_sl);
449 carbonuptake_vt.resize_and_preserve( slot_cnt, 0.0);
451 xylem_resistance_smoothed_old_vt.resize_and_preserve(slot_cnt, 0.0);
452 psidecline_cum_vt.resize_and_preserve(slot_cnt, 0.0);
453 psidecline_daycum_vt.resize_and_preserve(slot_cnt, 0.0);
454 rehydrationindex_cum_vt.resize_and_preserve(slot_cnt, 0.0);
457 mSapOpt_vt.resize_and_preserve( slot_cnt, 0.0);
458 mSapOld_vt.resize_and_preserve( slot_cnt, 0.0);
459 mCorOld_vt.resize_and_preserve( slot_cnt, 0.0);
460 qsaparea_vt.resize_and_preserve(slot_cnt, 0.0);
461 fsub_vt.resize_and_preserve(slot_cnt, 0.0);
463 mBudLoss_vt.resize_and_preserve( slot_cnt, 0.0);
464 mSapLoss_vt.resize_and_preserve( slot_cnt, 0.0);
465 ncFolOpt.resize_and_preserve( slot_cnt, 0.0);
466 ncBudOpt.resize_and_preserve( slot_cnt, 0.0);
467 nDem_vt.resize_and_preserve( slot_cnt, 0.0);
468 nFol_vt.resize_and_preserve( slot_cnt, 0.0);
469 nFrt_vt.resize_and_preserve( slot_cnt, 0.0);
470 nSap_vt.resize_and_preserve( slot_cnt, 0.0);
471 nCor_vt.resize_and_preserve( slot_cnt, 0.0);
472 nBud_vt.resize_and_preserve( slot_cnt, 0.0);
474 n_bud_to_fol_vt.resize_and_preserve( vtsl, 0.0);
475 n_sap_to_cor_vt.resize_and_preserve( vtsl, 0.0);
476 n_bud_to_cor_vt.resize_and_preserve( vtsl, 0.0);
477 n_fol_to_cor_vt.resize_and_preserve( vtsl, 0.0);
478 n_frt_to_cor_vt.resize_and_preserve( vtsl, 0.0);
479 n_sap_to_litter_vt.resize_and_preserve( vtsl, 0.0);
480 n_sap_to_redistribute_vt.resize_and_preserve( vtsl, 0.0);
481 n_bud_to_redistribute_vt.resize_and_preserve( vtsl, 0.0);
482 n_fol_to_redistribute_vt.resize_and_preserve( vtsl, 0.0);
483 n_frt_to_redistribute_vt.resize_and_preserve( vtsl, 0.0);
484 n_sap_gain_vt.resize_and_preserve( vtsl, 0.0);
485 n_bud_gain_vt.resize_and_preserve( vtsl, 0.0);
486 n_fol_gain_vt.resize_and_preserve( vtsl, 0.0);
487 n_frt_gain_vt.resize_and_preserve( vtsl, 0.0);