Exemplo n.º 1
0
Horizon::Implementation::Implementation (const BlockModel& al)
  : dry_bulk_density (al.number ("dry_bulk_density", -42.42e42)),
    SOM_C_per_N (al.number_sequence ("SOM_C_per_N")),
    C_per_N (al.number ("C_per_N", -42.42e42)),
    SOM_fractions (al.check ("SOM_fractions") 
                   ? al.number_sequence ("SOM_fractions")
                   : std::vector<double> ()),
    turnover_factor (al.number ("turnover_factor")),
    anisotropy (al.number ("anisotropy")),
    attributes (get_attributes (al.submodel_sequence ("attributes"))),
    dimensions (get_dimensions (al.submodel_sequence ("attributes"))),
    nitrification (Librarian::build_item<Nitrification> (al, "Nitrification")),
    secondary (Librarian::build_item<Secondary> (al, "secondary_domain")),
    r_pore_min (al.number ("r_pore_min")),
    primary_sorption_fraction (NAN),
    hor_heat (al.submodel ("HorHeat")),
    CEC (al.number ("CEC", -42.42e42))
{ }
Exemplo n.º 2
0
 ProgramRS2WG (const BlockModel& al)
   : Program (al),
     path (al.path ()),
     rshourly_origin (al.integer ("rshourly_origin"), 1, 1, 0),
     wgcycle_begin (al.integer ("wgcycle_begin"), 1, 1, 0),
     wgcycle_end (al.integer ("wgcycle_begin") + al.integer ("wgcycle_length"),
                  1, 1, 0),
     rshourly_file (al.name ("rshourly_file")),
     rsdaily_file (al.name ("rsdaily_file")),
     dwfhourly_file (al.name ("dwfhourly_file")),
     hint_file (al.name ("hint_file")),
     hlim (al.number_sequence ("hlim"))
 { }
Exemplo n.º 3
0
 explicit SummaryFractiles (const BlockModel& al)
   : Summary (al),
     data (find_data (al)),
     fractiles (al.number_sequence ("fractiles")),
     first (al.name ("first", Attribute::None ()))
 { }