411{
412
413 size_t const slot_cnt( m_veg->slot_cnt());
414 size_t const slot_cnt_old( additional_season.size());
415
416 if ( slot_cnt <= slot_cnt_old)
417 {
418 return LDNDC_ERR_OK;
419 }
420
421 additional_season.resize_and_preserve( slot_cnt, false);
422 phenological_year.resize_and_preserve( slot_cnt, 0);
423 foliage_age_of_start_senescence.resize_and_preserve( slot_cnt, 0);
424 days_since_emergence.resize_and_preserve( slot_cnt, 0);
425
426
427 ts_leaftemp_vt.resize_and_preserve( slot_cnt, 0.0);
428 nd_leaftemp_vt.resize_and_preserve( slot_cnt, 0.0);
429
430 uptNH4Max_vt.resize_and_preserve( slot_cnt, 0.0);
431 uptNO3Max_vt.resize_and_preserve( slot_cnt, 0.0);
432 uptDONMax_vt.resize_and_preserve( slot_cnt, 0.0);
433 uptNWetMax_vt.resize_and_preserve( slot_cnt, 0.0);
434 uptNWet_vt.resize_and_preserve( slot_cnt, 0.0);
435 uptNTot_vt.resize_and_preserve( slot_cnt, 0.0);
436
437 rFolOld_vt.resize_and_preserve( slot_cnt, 0.0);
438 rBudOld_vt.resize_and_preserve( slot_cnt, 0.0);
439 rSapOld_vt.resize_and_preserve( slot_cnt, 0.0);
440 rFrtOld_vt.resize_and_preserve( slot_cnt, 0.0);
441 rTraOld_vt.resize_and_preserve( slot_cnt, 0.0);
442 exsuLossOld_vt.resize_and_preserve( slot_cnt, 0.0);
443
444 uptNH4_vt.resize_and_preserve( slot_cnt, 0.0);
445 uptNO3_vt.resize_and_preserve( slot_cnt, 0.0);
446 uptNH3_vt.resize_and_preserve( slot_cnt, 0.0);
447 uptDON_vt.resize_and_preserve( slot_cnt, 0.0);
448
449 uptNH4Old_vt.resize_and_preserve( slot_cnt, 0.0);
450 uptNO3Old_vt.resize_and_preserve( slot_cnt, 0.0);
451 uptNH3Old_vt.resize_and_preserve( slot_cnt, 0.0);
452 uptDONOld_vt.resize_and_preserve( slot_cnt, 0.0);
453
454 uptNOxOld_vt.resize_and_preserve( slot_cnt, 0.0);
455 uptNHyOld_vt.resize_and_preserve(slot_cnt, 0.0);
456
457 while ( slot_cnt > uptNH4Max_vtsl.size())
458 {
459 std::vector<double> help_sl( sl_.soil_layer_cnt(), 0.0);
460 uptNH4Max_vtsl.push_back( help_sl);
461 }
462 while ( slot_cnt > uptNO3Max_vtsl.size())
463 {
464 std::vector<double> help_sl( sl_.soil_layer_cnt(), 0.0);
465 uptNO3Max_vtsl.push_back( help_sl);
466 }
467 while ( slot_cnt > uptDONMax_vtsl.size())
468 {
469 std::vector<double> help_sl( sl_.soil_layer_cnt(), 0.0);
470 uptDONMax_vtsl.push_back( help_sl);
471 }
472 while ( slot_cnt > foliage_age_na.size())
473 {
474 std::vector< int > help_sl( MoBiLE_MaximumAgeClasses, 0);
475 foliage_age_na.push_back( help_sl);
476 }
477
478 carbonuptake_vt.resize_and_preserve( slot_cnt, 0.0);
479
480 xylem_resistance_smoothed_old_vt.resize_and_preserve(slot_cnt, 0.0);
481 psidecline_cum_vt.resize_and_preserve(slot_cnt, 0.0);
482 psidecline_daycum_vt.resize_and_preserve(slot_cnt, 0.0);
483 rehydrationindex_cum_vt.resize_and_preserve(slot_cnt, 0.0);
484
485
486 mSapOpt_vt.resize_and_preserve( slot_cnt, 0.0);
487 mSapOld_vt.resize_and_preserve( slot_cnt, 0.0);
488 mCorOld_vt.resize_and_preserve( slot_cnt, 0.0);
489 qsaparea_vt.resize_and_preserve(slot_cnt, 0.0);
490 fsub_vt.resize_and_preserve(slot_cnt, 0.0);
491
492 mBudLoss_vt.resize_and_preserve( slot_cnt, 0.0);
493 ncFolOpt.resize_and_preserve( slot_cnt, 0.0);
494 ncBudOpt.resize_and_preserve( slot_cnt, 0.0);
495 nDem_vt.resize_and_preserve( slot_cnt, 0.0);
496 nFol_vt.resize_and_preserve( slot_cnt, 0.0);
497 nFrt_vt.resize_and_preserve( slot_cnt, 0.0);
498 nSap_vt.resize_and_preserve( slot_cnt, 0.0);
499 nCor_vt.resize_and_preserve( slot_cnt, 0.0);
500 nBud_vt.resize_and_preserve( slot_cnt, 0.0);
501
502 n_bud_to_fol_vt.resize_and_preserve( slot_cnt, 0.0);
503 n_sap_to_cor_vt.resize_and_preserve( slot_cnt, 0.0);
504 n_bud_to_cor_vt.resize_and_preserve( slot_cnt, 0.0);
505 n_fol_to_cor_vt.resize_and_preserve( slot_cnt, 0.0);
506 n_frt_to_cor_vt.resize_and_preserve( slot_cnt, 0.0);
507 n_sap_to_litter_vt.resize_and_preserve( slot_cnt, 0.0);
508 n_sap_to_redistribute_vt.resize_and_preserve( slot_cnt, 0.0);
509 n_bud_to_redistribute_vt.resize_and_preserve( slot_cnt, 0.0);
510 n_fol_to_redistribute_vt.resize_and_preserve( slot_cnt, 0.0);
511 n_frt_to_redistribute_vt.resize_and_preserve( slot_cnt, 0.0);
512 n_sap_gain_vt.resize_and_preserve( slot_cnt, 0.0);
513 n_bud_gain_vt.resize_and_preserve( slot_cnt, 0.0);
514 n_fol_gain_vt.resize_and_preserve( slot_cnt, 0.0);
515 n_frt_gain_vt.resize_and_preserve( slot_cnt, 0.0);
516
517 return LDNDC_ERR_OK;
518}