Loading [MathJax]/extensions/ams.js
ALMaSS  1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Weather.cpp File Reference
#include <cstdlib>
#include <cstdio>
#include "ls.h"

Macros

#define _CRT_SECURE_NO_DEPRECATE
 

Functions

WeatherCreateWeather ()
 

Variables

static CfgInt l_weather_starting_year ("WEATHER_STARTING_YEAR", CFG_CUSTOM, 0)
 
static CfgStr l_map_weather_file ("MAP_WEATHER_FILE", CFG_CUSTOM, "weather.pre")
 
static CfgBool l_weather_minmaxtemp ("WEATHER_MINMAXTEMP", CFG_CUSTOM, false)
 
static CfgBool l_weather_radiation ("WEATHER_RADIATION", CFG_CUSTOM, false)
 
static CfgBool l_weather_soiltemp ("WEATHER_SOILTEMP", CFG_CUSTOM, false)
 
static CfgBool l_weather_snowcover ("WEATHER_SNOWCOVER", CFG_CUSTOM, false)
 
static CfgBool l_weather_relhumidity ("WEATHER_RELHUMIDITY", CFG_CUSTOM, false)
 
static CfgBool l_weather_soiltemptwilight ("WEATHER_SOILTEMPTWILIGHT", CFG_CUSTOM, false)
 
static CfgBool l_weather_flyinghours ("WEATHER_FLYINGHOURS", CFG_CUSTOM, false)
 
class Weatherg_weather
 
const int WindDirections [12][100]
 

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

Function Documentation

◆ CreateWeather()

Weather* CreateWeather ( )
739 {
740  if (g_weather == NULL)
741  {
742  g_weather = new Weather();
743  }
744 
745  return g_weather;
746 }

References g_weather, and Weather::Weather().

Referenced by main().

Variable Documentation

◆ g_weather

class Weather* g_weather

Referenced by Farm::AutumnHarrow(), Farm::AutumnPlough(), Farm::AutumnRoll(), Farm::AutumnSow(), Farm::AutumnSowWithFerti(), Farm::BedForming(), Farm::BiocideTreat(), Farm::BulbHarvest(), Farm::BurnStrawStubble(), Farm::BurnTop(), LE::CalculateFlowerResourceForCrop(), Osmia_Population_Manager::CalForageHours(), CloseDownSim(), CreateWeather(), Farm::CutOrch(), Farm::CutToHay(), Farm::CutToSilage(), Farm::CutWeeds(), Farm::DeepPlough(), PTGrassGrazed::Do(), VegElement::DoDevelopment(), Erigone_Population_Manager::DoFirst(), Oedothorax_Population_Manager::DoFirst(), Skylark_Population_Manager::DoFirst(), Farm::FA_AmmoniumSulphate(), Farm::FA_Boron(), Farm::FA_Calcium(), Farm::FA_Cu(), Farm::FA_GreenManure(), Farm::FA_K(), Farm::FA_ManganeseSulphate(), Farm::FA_Manure(), Farm::FA_N(), Farm::FA_NK(), Farm::FA_NPK(), Farm::FA_NPKS(), Farm::FA_P(), Farm::FA_PK(), Farm::FA_PKS(), Farm::FA_RSM(), Farm::FA_SK(), Farm::FA_Sludge(), Farm::FA_Slurry(), Farm::FiberCovering(), Farm::FiberRemoval(), Farm::FlowerCutting(), Farm::FP_AmmoniumSulphate(), Farm::FP_Boron(), Farm::FP_Calcium(), Farm::FP_Cu(), Farm::FP_GreenManure(), Farm::FP_K(), Farm::FP_LiquidNH3(), Farm::FP_ManganeseSulphate(), Farm::FP_Manure(), Farm::FP_N(), Farm::FP_NC(), Farm::FP_NK(), Farm::FP_NPK(), Farm::FP_NPKS(), Farm::FP_NS(), Farm::FP_P(), Farm::FP_PK(), Farm::FP_PKS(), Farm::FP_RSM(), Farm::FP_SK(), Farm::FP_Sludge(), Farm::FP_Slurry(), Farm::FruitHarvest(), Farm::FungicideTreat(), Farm::GreenHarvest(), Farm::GrowthRegulator(), Farm::Harvest(), Farm::HarvestBF_Machine(), Farm::HarvestBushFruit(), Farm::HarvestLong(), Farm::HarvestShoots(), Farm::HayBailing(), Farm::HayTurning(), Farm::HeavyCultivatorAggregate(), Farm::HerbicideTreat(), Farm::HillingUp(), Farm::InsecticideTreat(), Farm::Irrigation(), Farm::IrrigationStart(), Farm::LeafThinning(), main(), Farm::ManualWeeding(), Farm::Molluscicide(), Farm::Mowing(), Farm::OrganicFungicide(), Farm::OrganicHerbicide(), Farm::OrganicInsecticide(), Farm::Pheromone(), Farm::PreseedingCultivator(), Farm::PreseedingCultivatorSow(), Farm::ProductApplication(), Farm::Pruning(), PollenNectarDevelopmentData::RecalculatePollenNectarCurvesForYear(), Farm::RowCultivation(), VegElement::SetGrowthPhase(), Farm::ShallowHarrow(), Farm::Shredding(), Farm::SpringHarrow(), Farm::SpringPlough(), Farm::SpringRoll(), Farm::SpringSow(), Farm::SpringSowWithFerti(), Farm::StrawChopping(), Farm::StrawCovering(), Farm::StrawRemoval(), Farm::Strigling(), Farm::StriglingHill(), Farm::StriglingSow(), Farm::StubbleCultivatorHeavy(), Farm::StubbleHarrowing(), Farm::StubblePlough(), Farm::Suckering(), Landscape::SupplyGlobalRadiation(), Landscape::SupplyHumidity(), Landscape::SupplyMaxTemp(), Landscape::SupplyMaxTempTomorrow(), Landscape::SupplyMaxTempYesterday(), Landscape::SupplyMeanTemp(), Landscape::SupplyMinTemp(), Landscape::SupplyMinTempTomorrow(), Landscape::SupplyMinTempYesterday(), Landscape::SupplyRadiationHour(), Landscape::SupplyRain(), Landscape::SupplyRainHour(), Landscape::SupplyRainPeriod(), Landscape::SupplySnowcover(), Landscape::SupplySnowDepth(), Landscape::SupplySoilTemp(), Landscape::SupplySoilTempHour(), Landscape::SupplyTemp(), Landscape::SupplyTempHour(), Landscape::SupplyTempPeriod(), Landscape::SupplyWind(), Landscape::SupplyWindDirection(), Landscape::SupplyWindDirection8(), Landscape::SupplyWindDirectionRadians(), Landscape::SupplyWindHour(), Landscape::SupplyWindPeriod(), Farm::Swathing(), Pesticide::Tick(), Landscape::Tick(), Farm::Water(), Farm::WinterHarrow(), and Farm::WinterPlough().

◆ l_map_weather_file

CfgStr l_map_weather_file("MAP_WEATHER_FILE", CFG_CUSTOM, "weather.pre")
static

Referenced by Weather::Weather().

◆ l_weather_flyinghours

CfgBool l_weather_flyinghours("WEATHER_FLYINGHOURS", CFG_CUSTOM, false)
static

◆ l_weather_minmaxtemp

CfgBool l_weather_minmaxtemp("WEATHER_MINMAXTEMP", CFG_CUSTOM, false)
static

◆ l_weather_radiation

CfgBool l_weather_radiation("WEATHER_RADIATION", CFG_CUSTOM, false)
static

◆ l_weather_relhumidity

CfgBool l_weather_relhumidity("WEATHER_RELHUMIDITY", CFG_CUSTOM, false)
static

◆ l_weather_snowcover

CfgBool l_weather_snowcover("WEATHER_SNOWCOVER", CFG_CUSTOM, false)
static

◆ l_weather_soiltemp

CfgBool l_weather_soiltemp("WEATHER_SOILTEMP", CFG_CUSTOM, false)
static

◆ l_weather_soiltemptwilight

CfgBool l_weather_soiltemptwilight("WEATHER_SOILTEMPTWILIGHT", CFG_CUSTOM, false)
static

◆ l_weather_starting_year

CfgInt l_weather_starting_year("WEATHER_STARTING_YEAR", CFG_CUSTOM, 0)
static

◆ WindDirections

const int WindDirections[12][100]
Initial value:
= {
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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