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
Pesticide.cpp File Reference
#include "ls.h"
#include <iostream>
#include <algorithm>
#include <vector>
#include <numeric>
#include <cstdio>
#include <math.h>
#include <fstream>
#include "Pesticide.h"

Macros

#define _CRT_SECURE_NO_DEPRECATE
 
#define CFG_CHANNEL_BITS   8
 
#define CFG_CHANNEL_MAXVAL   (2^CFG_CHANNEL_BITS-1)
 
#define SV_UINT32   unsigned int
 
#define SV_INT32   int
 
#define SV_UINT8   unsigned char
 
#define SV_INT8   char
 

Functions

PesticideCreatePesticide (Landscape *l)
 

Variables

CfgBool l_pest_enable_pesticide_engine ("PEST_ENABLE_PESTICIDE_ENGINE", CFG_CUSTOM, false)
 Used to turn on or off the PPP functionality of ALMaSS. More...
 
CfgBool l_pest_use_single_nozzle_drift ("PEST_USE_SINGLE_NOZZLE_DRIFT", CFG_CUSTOM, false)
 Uses single nozzle drift result (in for-loop) if true, but uses matrix calculation (Eigen) with Rautmann result if false. More...
 
CfgBool l_pest_enable_dust_drift ("PEST_ENABLE_DUST_DRIFT", CFG_CUSTOM, false)
 Enable dust drift for granular and seed coating applications. More...
 
CfgInt l_pest_NoPPPs ("PEST_NO_OF_PPPS", CFG_CUSTOM, 1, 1, 10)
 The number of active Plant Protection Products to be tracked - a performance penalty if enabled with more than necessary (memory heavy) More...
 
static CfgArray_Double l_pest_ai_half_life ("PEST_AI_HALF_LIFE", CFG_CUSTOM, 10, vector< double >{10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0})
 Half-life of pesticides for one compartment use. More...
 
static CfgBool l_pest_driving_slow ("PEST_DRIVING_SLOW", CFG_CUSTOM, false)
 Used to decide the driving speed when spraying pesticides. Driving slow is 7.2 km/h, otherwise 14.4 km/h. More...
 
static CfgInt l_pest_nozzle_type ("PEST_NOZZLE_TYPE", CFG_CUSTOM, 0, 0, 17)
 The type of nozzle to use for spraying pesticide. Determines the amount of drift. More...
 
CfgFloat l_pest_zero_threshold ("PEST_ZERO_THRESHOLD", CFG_CUSTOM, 0.000001)
 The threshold for when we consider the pesticide amount negligible (default is 1 microgram per square meter). More...
 
static CfgInt l_pest_record_grid_size ("PEST_RECORD_GRID_SIZE", CFG_CUSTOM, 100)
 Size of the grid used for recording the pesticide amount in the landscape. More...
 
static CfgBool l_pest_record_used ("PEST_RECORD_USED", CFG_CUSTOM, false)
 Used to turn on or off saving the pesticide load. More...
 
static CfgBool l_pest_save_map_daily ("PEST_SAVE_MAP_DAILY", CFG_CUSTOM, false)
 Used to turn on or off saving the pesticide map(s) daily. More...
 
static CfgBool l_pest_save_all_compartments ("PEST_SAVE_ALL_COMPARTMENTS", CFG_CUSTOM, false)
 Used to turn on or off saving all pesticide compartments in one file for x=l_map_dump_veg_x and y=l_map_dump_veg_y. More...
 
CfgArray_Double cfg_pest_product_amounts ("PEST_PRODUCT_AMOUNTS", CFG_CUSTOM, 10, vector< double >{10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0})
 Amount of pesticide applied in grams of active substance per hectare for each of the 10 pesticides. More...
 
CfgArray_Double cfg_seedcoating_product_amounts ("SEEDCOATING_PRODUCT_AMOUNTS", CFG_CUSTOM, 10, vector< double >{10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0})
 Amount of seed coating pesticide applied in grams of active substance per hectare for each of the 10 pesticides. More...
 
CfgBool cfg_seedcoating_beans_on ("SEEDCOATING_BEANS_ON", CFG_CUSTOM, false)
 Turn on seed coating for beans. More...
 
CfgBool cfg_seedcoating_beet_on ("SEEDCOATING_BEET_ON", CFG_CUSTOM, false)
 Turn on seed coating for beet. More...
 
CfgBool cfg_seedcoating_carrots_on ("SEEDCOATING_CARROTS_ON", CFG_CUSTOM, false)
 Turn on seed coating for carrots. More...
 
CfgBool cfg_seedcoating_lucerne_on ("SEEDCOATING_LUCERNE_ON", CFG_CUSTOM, false)
 Turn on seed coating for lucerne. More...
 
CfgBool cfg_seedcoating_maize_on ("SEEDCOATING_MAIZE_ON", CFG_CUSTOM, false)
 Turn on seed coating for maize. More...
 
CfgBool cfg_seedcoating_potatoes_on ("SEEDCOATING_POTATOES_ON", CFG_CUSTOM, false)
 Turn on seed coating for potatoes. More...
 
CfgBool cfg_seedcoating_springbarley_on ("SEEDCOATING_SPRINGBARLEY_ON", CFG_CUSTOM, false)
 Turn on seed coating for spring barley. More...
 
CfgBool cfg_seedcoating_springwheat_on ("SEEDCOATING_SPRINGWHEAT_ON", CFG_CUSTOM, false)
 Turn on seed coating for spring wheat. More...
 
CfgBool cfg_seedcoating_winterbarley_on ("SEEDCOATING_WINTERBARLEY_ON", CFG_CUSTOM, false)
 Turn on seed coating for winter barley. More...
 
CfgBool cfg_seedcoating_winterrape_on ("SEEDCOATING_WINTERRAPE_ON", CFG_CUSTOM, false)
 Turn on seed coating for winter rape. More...
 
CfgBool cfg_seedcoating_winterrye_on ("SEEDCOATING_WINTERRYE_ON", CFG_CUSTOM, false)
 Turn on seed coating for winter rye. More...
 
CfgBool cfg_seedcoating_wintertriticale_on ("SEEDCOATING_WINTERTRITICALE_ON", CFG_CUSTOM, false)
 Turn on seed coating for winter triticale. More...
 
CfgBool cfg_seedcoating_winterwheat_on ("SEEDCOATING_WINTERWHEAT_ON", CFG_CUSTOM, false)
 Turn on seed coating for winter wheat. More...
 
CfgFloat l_pest_daily_mort ("PEST_DAILY_MORTALITY", CFG_CUSTOM, 0.25)
 Daily mortality of pesticide with type 1. More...
 
CfgFloat l_pest_daily_mort_2 ("PEST_DAILY_MORTALITY_TWO", CFG_CUSTOM, 0.25)
 Daily mortality of pesticide with type 2. More...
 
CfgFloat l_pest_trigger_threshold1 ("PEST_TRIGGER_THRESHOLD_ONE", CFG_CUSTOM, 1.0)
 This is a trigger value that can be used to trigger pesticides effects. Currently not used? More...
 
CfgFloat l_pest_trigger_threshold2 ("PEST_TRIGGER_THRESHOLD_TWO", CFG_CUSTOM, 1.0)
 This is a trigger value that can be used to trigger pesticides effects. Currently not used? More...
 
CfgInt cfg_pest_productapplic_startdate ("PEST_PRODUCTAPPLIC_STARTDATE", CFG_CUSTOM, -1)
 Start date for applying pesticide the first time. More...
 
CfgInt cfg_pest_productapplic_startdate2 ("PEST_PRODUCTAPPLIC_STARTDATE_TWO", CFG_CUSTOM,-1)
 Start date for applying pesticide the second. More...
 
CfgInt cfg_pest_productapplic_startdate3 ("PEST_PRODUCTAPPLIC_STARTDATE_THREE", CFG_CUSTOM,-1)
 Start date for applying pesticide the third time. More...
 
CfgInt cfg_pest_productapplic_period ("PEST_PRODUCTAPPLIC_PERIOD", CFG_CUSTOM, 1)
 Period for applying pesticide. More...
 
CfgBool cfg_pest_residue_or_rate ("PEST_RESIDUE_OR_RATE", CFG_CUSTOM, true)
 Use residue or rate. Used in Vole code. More...
 
CfgBool cfg_pest_asparagus_on ("PEST_ASPARAGUS_ON", CFG_CUSTOM, false)
 Turn on pesticides for asparagus. More...
 
CfgBool cfg_pest_beans_on ("PEST_BEANS_ON", CFG_CUSTOM, false)
 Turn on pesticides for beans. More...
 
CfgBool cfg_pest_beet_on ("PEST_BEET_ON", CFG_CUSTOM, false)
 Turn on pesticides for beet. More...
 
CfgBool cfg_pest_bushfruit_on ("PEST_BUSHFRUIT_ON", CFG_CUSTOM, false)
 Turn on pesticides for bush fruit. More...
 
CfgBool cfg_pest_cabbage_on ("PEST_CABBAGE_ON", CFG_CUSTOM, false)
 Turn on pesticides for cabbage. More...
 
CfgBool cfg_pest_caraway_on ("PEST_CARAWAY_ON", CFG_CUSTOM, false)
 Turn on pesticides for caraway. More...
 
CfgBool cfg_pest_carrots_on ("PEST_CARROTS_ON", CFG_CUSTOM, false)
 Turn on pesticides for carrots. More...
 
CfgBool cfg_pest_grass_on ("PEST_GRASS_ON", CFG_CUSTOM, false)
 Turn on pesticides for grass. More...
 
CfgBool cfg_pest_maize_on ("PEST_MAIZE_ON", CFG_CUSTOM, false)
 Turn on pesticides for maize. More...
 
CfgBool cfg_pest_orchard_on ("PEST_ORCHARD_ON", CFG_CUSTOM, false)
 Turn on pesticides for orchard. More...
 
CfgBool cfg_pest_peas_on ("PEST_PEAS_ON", CFG_CUSTOM, false)
 Turn on pesticides for peas. More...
 
CfgBool cfg_pest_potatoes_on ("PEST_POTATOES_ON", CFG_CUSTOM, false)
 Turn on pesticides for potatoes. More...
 
CfgBool cfg_pest_SBS_ERA ("PEST_SBS_ERA", CFG_CUSTOM, false)
 Turn on pesticides for spring barley silage. More...
 
CfgBool cfg_pest_springbarley_on ("PEST_SPRINGBARLEY_ON", CFG_CUSTOM, false)
 Turn on pesticides for spring barley. More...
 
CfgBool cfg_pest_oats_on ("PEST_SPRINGOATS_ON", CFG_CUSTOM, false)
 Turn on pesticides for spring oats. More...
 
CfgBool cfg_pest_springrape_on ("PEST_SPRINGRAPE_ON", CFG_CUSTOM, false)
 Turn on pesticides for spring rape. More...
 
CfgBool cfg_pest_springrye_on ("PEST_SPRINGRYE_ON", CFG_CUSTOM, false)
 Turn on pesticides for spring rye. More...
 
CfgBool cfg_pest_springwheat_on ("PEST_SPRINGWHEAT_ON", CFG_CUSTOM, false)
 Turn on pesticides for spring wheat. More...
 
CfgBool cfg_pest_sunflower_on ("PEST_SUNFLOWER_ON", CFG_CUSTOM, false)
 Turn on pesticides for sunflower. More...
 
CfgBool cfg_pest_tulips_on ("PEST_TULIPS_ON", CFG_CUSTOM, false)
 Turn on pesticides for tulips. More...
 
CfgBool cfg_pest_turniprape_on ("PEST_TURNIPRAPE_ON", CFG_CUSTOM, false)
 Turn on pesticides for turnip rape. More...
 
CfgBool cfg_pest_vineyard_on ("PEST_VINEYARD_ON", CFG_CUSTOM, false)
 Turn on pesticides for wineyard. More...
 
CfgBool cfg_pest_veg_on ("PEST_VEG_ON", CFG_CUSTOM, false)
 Turn on pesticides for mixed vegetables. More...
 
CfgBool cfg_pest_winterbarley_on ("PEST_WINTERBARLEY_ON", CFG_CUSTOM, false)
 Turn on pesticides for winter barley. More...
 
CfgBool cfg_pest_winterrape_on ("PEST_WINTERRAPE_ON", CFG_CUSTOM, false)
 Turn on pesticides for winter rape. More...
 
CfgBool cfg_pest_winterrye_on ("PEST_WINTERRYE_ON", CFG_CUSTOM, false)
 Turn on pesticides for winter rye. More...
 
CfgBool cfg_pest_wintertriticale_on ("PEST_WINTERTRITICALE_ON", CFG_CUSTOM, false)
 Turn on pesticides for winter triticale. More...
 
CfgBool cfg_pest_winterwheat_on ("PEST_WINTERWHEAT_ON", CFG_CUSTOM, false)
 Turn on pesticides for winter wheat. More...
 
class Pesticideg_pest
 
Landscapeg_land
 
Landscapeg_landscape_ptr
 
CfgFloat cfg_beer_law_extinction_coef
 The extiction coefficient that is used in Beer's law. More...
 
CfgInt l_map_dump_veg_x
 
CfgInt l_map_dump_veg_y
 

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

◆ CFG_CHANNEL_BITS

#define CFG_CHANNEL_BITS   8

◆ CFG_CHANNEL_MAXVAL

#define CFG_CHANNEL_MAXVAL   (2^CFG_CHANNEL_BITS-1)

◆ SV_INT32

#define SV_INT32   int

◆ SV_INT8

#define SV_INT8   char

◆ SV_UINT32

#define SV_UINT32   unsigned int

◆ SV_UINT8

#define SV_UINT8   unsigned char

Function Documentation

◆ CreatePesticide()

Pesticide* CreatePesticide ( Landscape l)
2006 {
2007  if (g_pest != NULL)
2008  delete g_pest;
2009 
2010  g_pest = new Pesticide(l);
2011 
2012  return g_pest;
2013 
2014 }

References g_pest, and Pesticide::Pesticide().

Referenced by main().

Variable Documentation

◆ cfg_beer_law_extinction_coef

CfgFloat cfg_beer_law_extinction_coef

The extiction coefficient that is used in Beer's law.

Referenced by VegElement::RecalculateBugsNStuff().

◆ cfg_pest_asparagus_on

CfgBool cfg_pest_asparagus_on("PEST_ASPARAGUS_ON", CFG_CUSTOM, false)

Turn on pesticides for asparagus.

Referenced by DE_AsparagusEstablishedPlantation::Do().

◆ cfg_pest_beans_on

CfgBool cfg_pest_beans_on("PEST_BEANS_ON", CFG_CUSTOM, false)

Turn on pesticides for beans.

Referenced by DK_Legume_Beans::Do(), and PLBeans::Do().

◆ cfg_pest_beet_on

CfgBool cfg_pest_beet_on("PEST_BEET_ON", CFG_CUSTOM, false)

Turn on pesticides for beet.

Referenced by DK_FodderBeet::Do(), DK_SugarBeet::Do(), PLBeetSpr::Do(), PLBeet::Do(), and DE_SugarBeet::Do().

◆ cfg_pest_bushfruit_on

CfgBool cfg_pest_bushfruit_on("PEST_BUSHFRUIT_ON", CFG_CUSTOM, false)

Turn on pesticides for bush fruit.

Referenced by DE_BushFruitPerm::Do(), DK_BushFruit_Perm1::Do(), and DK_BushFruit_Perm2::Do().

◆ cfg_pest_cabbage_on

CfgBool cfg_pest_cabbage_on("PEST_CABBAGE_ON", CFG_CUSTOM, false)

Turn on pesticides for cabbage.

Referenced by NLCabbageSpring::Do(), NLCabbage::Do(), DK_Cabbages::Do(), and DE_Cabbage::Do().

◆ cfg_pest_caraway_on

CfgBool cfg_pest_caraway_on("PEST_CARAWAY_ON", CFG_CUSTOM, false)

Turn on pesticides for caraway.

Referenced by FI_Caraway2::Do().

◆ cfg_pest_carrots_on

CfgBool cfg_pest_carrots_on("PEST_CARROTS_ON", CFG_CUSTOM, false)

Turn on pesticides for carrots.

Referenced by DK_Carrots_Spring::Do(), and DK_Carrots::Do().

◆ cfg_pest_grass_on

CfgBool cfg_pest_grass_on("PEST_GRASS_ON", CFG_CUSTOM, false)

◆ cfg_pest_maize_on

CfgBool cfg_pest_maize_on("PEST_MAIZE_ON", CFG_CUSTOM, false)

◆ cfg_pest_oats_on

CfgBool cfg_pest_oats_on("PEST_SPRINGOATS_ON", CFG_CUSTOM, false)

Turn on pesticides for spring oats.

Referenced by DK_SpringOats::Do(), DK_SpringOats_CC::Do(), FR_SpringOats::Do(), FI_SpringOats::Do(), and DE_Oats::Do().

◆ cfg_pest_orchard_on

CfgBool cfg_pest_orchard_on("PEST_ORCHARD_ON", CFG_CUSTOM, false)

◆ cfg_pest_peas_on

CfgBool cfg_pest_peas_on("PEST_PEAS_ON", CFG_CUSTOM, false)

Turn on pesticides for peas.

Referenced by DK_Legume_Peas::Do(), DK_Legume_Whole::Do(), DE_Legumes::Do(), and DE_Peas::Do().

◆ cfg_pest_potatoes_on

◆ cfg_pest_product_amounts

CfgArray_Double cfg_pest_product_amounts("PEST_PRODUCT_AMOUNTS", CFG_CUSTOM, 10, vector< double >{10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0})

Amount of pesticide applied in grams of active substance per hectare for each of the 10 pesticides.

Referenced by OrchardCrop::Do(), DK_CerealLegume::Do(), DK_CerealLegume_Whole::Do(), CloverGrassGrazed2::Do(), DK_Legume_Peas::Do(), FodderGrass::Do(), DK_SpringBarley_Green::Do(), CloverGrassGrazed1::Do(), BEOrchardCrop::Do(), DK_SpringBarleySilage::Do(), DK_FodderBeet::Do(), NLOrchardCrop::Do(), DK_Legume_Beans::Do(), DK_SpringOats::Do(), DK_SpringOats_CC::Do(), DK_SugarBeet::Do(), UKBeans::Do(), DK_SpringWheat::Do(), DK_Legume_Whole::Do(), FI_Potato_North::Do(), FI_StarchPotato_North::Do(), FI_PotatoIndustry_North::Do(), SpringBarleyCloverGrass::Do(), FI_Potato_South::Do(), FI_PotatoIndustry_South::Do(), FI_StarchPotato_South::Do(), DK_SpringBarleyCloverGrass::Do(), DK_WinterFodderGrass::Do(), UKSpringBarley::Do(), UKWinterBarley::Do(), DK_SpringBarley::Do(), DK_SpringBarley_CC::Do(), DK_SpringFodderGrass::Do(), DK_WinterCloverGrassGrazedSown::Do(), BEWinterBarley::Do(), BEWinterBarleyCC::Do(), NLCabbageSpring::Do(), NLSpringBarleySpring::Do(), BEWinterWheat::Do(), BEWinterWheatCC::Do(), DK_VegSeeds::Do(), DK_WinterRye::Do(), DK_WinterRye_CC::Do(), DK_Carrots_Spring::Do(), NLCabbage::Do(), DK_Carrots::Do(), UKWinterWheat::Do(), SpringBarleySpr::Do(), SpringBarleySilage::Do(), SpringBarleyPTreatment::Do(), DK_Cabbages::Do(), TestCrop::Do(), NLSpringBarley::Do(), NLWinterWheat::Do(), PLSpringBarleySpr::Do(), DK_WinterWheat::Do(), DK_WinterWheat_CC::Do(), SpringBarley::Do(), UKPotatoes::Do(), DK_Potato::Do(), FI_Caraway2::Do(), SpringRape::Do(), DK_MixedVeg::Do(), PLBeetSpr::Do(), PLBeans::Do(), DK_WinterRape::Do(), DK_PotatoSeed::Do(), BEPotatoesSpring::Do(), WinterRape::Do(), DE_BushFruitPerm::Do(), DE_Maize::Do(), DK_PotatoIndustry::Do(), FR_SpringBarley::Do(), DE_MaizeSilage::Do(), FR_SpringOats::Do(), NLPotatoesSpring::Do(), DE_SpringBarley::Do(), BEPotatoes::Do(), FI_TurnipRape::Do(), FR_Maize_Silage::Do(), DE_AsparagusEstablishedPlantation::Do(), FR_Maize::Do(), NLPotatoes::Do(), PLMaizeSilage::Do(), PLMaize::Do(), PLSpringBarley::Do(), FI_SpringRape::Do(), NLTulips::Do(), DE_Peas::Do(), FI_SpringBarley_Malt::Do(), FR_Sunflower::Do(), PLWinterTriticale::Do(), DE_Legumes::Do(), DE_WinterRye::Do(), PLBeet::Do(), PLWinterWheat::Do(), FI_SpringWheat::Do(), PLWinterBarley::Do(), FI_SprSpringBarley_Fodder::Do(), DK_CloverGrassGrazed3::Do(), PLSpringWheat::Do(), FI_SpringOats::Do(), DK_CloverGrassGrazed2::Do(), PLWinterWheatLate::Do(), FI_SpringBarley_Fodder::Do(), PLPotatoes::Do(), DK_BushFruit_Perm1::Do(), DE_Oats::Do(), FR_SpringWheat::Do(), DE_Cabbage::Do(), DE_WinterBarley::Do(), DE_SpringRye::Do(), PLWinterRape::Do(), PTVineyards::Do(), FR_WinterBarley::Do(), FI_WinterWheat::Do(), DK_BushFruit_Perm2::Do(), FI_WinterRye::Do(), FR_WinterWheat::Do(), DE_Triticale::Do(), DE_WinterWheatLate::Do(), DE_WinterWheat::Do(), FR_WinterRape::Do(), FR_Potatoes::Do(), DE_WinterRape::Do(), DE_Orchard::Do(), WinterWheat::Do(), DE_SugarBeet::Do(), DK_OrchCherry::Do(), DE_Potatoes::Do(), DK_OrchPear::Do(), DK_OrchOther::Do(), DK_OrchardCrop_Perm::Do(), DK_OrchApple::Do(), DE_PotatoesIndustry::Do(), and Osmia_Population_Manager::Osmia_Population_Manager().

◆ cfg_pest_productapplic_period

CfgInt cfg_pest_productapplic_period("PEST_PRODUCTAPPLIC_PERIOD", CFG_CUSTOM, 1)

◆ cfg_pest_productapplic_startdate

CfgInt cfg_pest_productapplic_startdate("PEST_PRODUCTAPPLIC_STARTDATE", CFG_CUSTOM, -1)

◆ cfg_pest_productapplic_startdate2

CfgInt cfg_pest_productapplic_startdate2("PEST_PRODUCTAPPLIC_STARTDATE_TWO", CFG_CUSTOM,-1)

Start date for applying pesticide the second.

Referenced by OrchardCrop::Do(), Orchard::DoDevelopment(), and OrchardBand::DoDevelopment().

◆ cfg_pest_productapplic_startdate3

CfgInt cfg_pest_productapplic_startdate3("PEST_PRODUCTAPPLIC_STARTDATE_THREE", CFG_CUSTOM,-1)

Start date for applying pesticide the third time.

Referenced by Orchard::DoDevelopment(), and OrchardBand::DoDevelopment().

◆ cfg_pest_residue_or_rate

CfgBool cfg_pest_residue_or_rate("PEST_RESIDUE_OR_RATE", CFG_CUSTOM, true)

Use residue or rate. Used in Vole code.

◆ cfg_pest_SBS_ERA

CfgBool cfg_pest_SBS_ERA("PEST_SBS_ERA", CFG_CUSTOM, false)

Turn on pesticides for spring barley silage.

Referenced by SpringBarleySilage::Do().

◆ cfg_pest_springbarley_on

◆ cfg_pest_springrape_on

CfgBool cfg_pest_springrape_on("PEST_SPRINGRAPE_ON", CFG_CUSTOM, false)

Turn on pesticides for spring rape.

Referenced by FI_SpringRape::Do().

◆ cfg_pest_springrye_on

CfgBool cfg_pest_springrye_on("PEST_SPRINGRYE_ON", CFG_CUSTOM, false)

Turn on pesticides for spring rye.

Referenced by DE_SpringRye::Do().

◆ cfg_pest_springwheat_on

CfgBool cfg_pest_springwheat_on("PEST_SPRINGWHEAT_ON", CFG_CUSTOM, false)

Turn on pesticides for spring wheat.

Referenced by DK_SpringWheat::Do(), FI_SpringWheat::Do(), PLSpringWheat::Do(), and FR_SpringWheat::Do().

◆ cfg_pest_sunflower_on

CfgBool cfg_pest_sunflower_on("PEST_SUNFLOWER_ON", CFG_CUSTOM, false)

Turn on pesticides for sunflower.

Referenced by FR_Sunflower::Do().

◆ cfg_pest_tulips_on

CfgBool cfg_pest_tulips_on("PEST_TULIPS_ON", CFG_CUSTOM, false)

Turn on pesticides for tulips.

Referenced by NLTulips::Do().

◆ cfg_pest_turniprape_on

CfgBool cfg_pest_turniprape_on("PEST_TURNIPRAPE_ON", CFG_CUSTOM, false)

Turn on pesticides for turnip rape.

Referenced by FI_TurnipRape::Do().

◆ cfg_pest_veg_on

CfgBool cfg_pest_veg_on("PEST_VEG_ON", CFG_CUSTOM, false)

Turn on pesticides for mixed vegetables.

Referenced by DK_VegSeeds::Do(), and DK_MixedVeg::Do().

◆ cfg_pest_vineyard_on

CfgBool cfg_pest_vineyard_on("PEST_VINEYARD_ON", CFG_CUSTOM, false)

Turn on pesticides for wineyard.

Referenced by PTVineyards::Do().

◆ cfg_pest_winterbarley_on

CfgBool cfg_pest_winterbarley_on("PEST_WINTERBARLEY_ON", CFG_CUSTOM, false)

◆ cfg_pest_winterrape_on

CfgBool cfg_pest_winterrape_on("PEST_WINTERRAPE_ON", CFG_CUSTOM, false)

Turn on pesticides for winter rape.

Referenced by DK_WinterRape::Do(), WinterRape::Do(), PLWinterRape::Do(), FR_WinterRape::Do(), and DE_WinterRape::Do().

◆ cfg_pest_winterrye_on

CfgBool cfg_pest_winterrye_on("PEST_WINTERRYE_ON", CFG_CUSTOM, false)

Turn on pesticides for winter rye.

Referenced by DK_WinterRye::Do(), DK_WinterRye_CC::Do(), DE_WinterRye::Do(), and FI_WinterRye::Do().

◆ cfg_pest_wintertriticale_on

CfgBool cfg_pest_wintertriticale_on("PEST_WINTERTRITICALE_ON", CFG_CUSTOM, false)

Turn on pesticides for winter triticale.

Referenced by PLWinterTriticale::Do(), and DE_Triticale::Do().

◆ cfg_pest_winterwheat_on

◆ cfg_seedcoating_beans_on

CfgBool cfg_seedcoating_beans_on("SEEDCOATING_BEANS_ON", CFG_CUSTOM, false)

Turn on seed coating for beans.

Referenced by PLBeans::Do().

◆ cfg_seedcoating_beet_on

CfgBool cfg_seedcoating_beet_on("SEEDCOATING_BEET_ON", CFG_CUSTOM, false)

Turn on seed coating for beet.

Referenced by PLBeetSpr::Do(), and PLBeet::Do().

◆ cfg_seedcoating_carrots_on

CfgBool cfg_seedcoating_carrots_on("SEEDCOATING_CARROTS_ON", CFG_CUSTOM, false)

Turn on seed coating for carrots.

Referenced by PLCarrots::Do().

◆ cfg_seedcoating_lucerne_on

CfgBool cfg_seedcoating_lucerne_on("SEEDCOATING_LUCERNE_ON", CFG_CUSTOM, false)

Turn on seed coating for lucerne.

Referenced by PLFodderLucerne1::Do().

◆ cfg_seedcoating_maize_on

CfgBool cfg_seedcoating_maize_on("SEEDCOATING_MAIZE_ON", CFG_CUSTOM, false)

Turn on seed coating for maize.

Referenced by PLMaize::Do(), and PLMaizeSilage::Do().

◆ cfg_seedcoating_potatoes_on

CfgBool cfg_seedcoating_potatoes_on("SEEDCOATING_POTATOES_ON", CFG_CUSTOM, false)

Turn on seed coating for potatoes.

Referenced by PLPotatoes::Do().

◆ cfg_seedcoating_product_amounts

CfgArray_Double cfg_seedcoating_product_amounts("SEEDCOATING_PRODUCT_AMOUNTS", CFG_CUSTOM, 10, vector< double >{10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0, 10000.0})

◆ cfg_seedcoating_springbarley_on

CfgBool cfg_seedcoating_springbarley_on("SEEDCOATING_SPRINGBARLEY_ON", CFG_CUSTOM, false)

Turn on seed coating for spring barley.

Referenced by PLSpringBarleySpr::Do(), and PLSpringBarley::Do().

◆ cfg_seedcoating_springwheat_on

CfgBool cfg_seedcoating_springwheat_on("SEEDCOATING_SPRINGWHEAT_ON", CFG_CUSTOM, false)

Turn on seed coating for spring wheat.

Referenced by PLSpringWheat::Do().

◆ cfg_seedcoating_winterbarley_on

CfgBool cfg_seedcoating_winterbarley_on("SEEDCOATING_WINTERBARLEY_ON", CFG_CUSTOM, false)

Turn on seed coating for winter barley.

Referenced by PLWinterBarley::Do().

◆ cfg_seedcoating_winterrape_on

CfgBool cfg_seedcoating_winterrape_on("SEEDCOATING_WINTERRAPE_ON", CFG_CUSTOM, false)

Turn on seed coating for winter rape.

Referenced by WinterRape::Do(), and PLWinterRape::Do().

◆ cfg_seedcoating_winterrye_on

CfgBool cfg_seedcoating_winterrye_on("SEEDCOATING_WINTERRYE_ON", CFG_CUSTOM, false)

Turn on seed coating for winter rye.

Referenced by PLWinterRye::Do().

◆ cfg_seedcoating_wintertriticale_on

CfgBool cfg_seedcoating_wintertriticale_on("SEEDCOATING_WINTERTRITICALE_ON", CFG_CUSTOM, false)

Turn on seed coating for winter triticale.

Referenced by PLWinterTriticale::Do().

◆ cfg_seedcoating_winterwheat_on

CfgBool cfg_seedcoating_winterwheat_on("SEEDCOATING_WINTERWHEAT_ON", CFG_CUSTOM, false)

Turn on seed coating for winter wheat.

Referenced by PLWinterWheat::Do(), PLWinterWheatLate::Do(), and WinterWheat::Do().

◆ g_land

Landscape* g_land

Referenced by Pesticide::Tick().

◆ g_landscape_ptr

◆ g_pest

◆ l_map_dump_veg_x

CfgInt l_map_dump_veg_x

Referenced by Pesticide::Tick(), and Landscape::Tick().

◆ l_map_dump_veg_y

CfgInt l_map_dump_veg_y

Referenced by Pesticide::Tick(), and Landscape::Tick().

◆ l_pest_ai_half_life

CfgArray_Double l_pest_ai_half_life("PEST_AI_HALF_LIFE", CFG_CUSTOM, 10, vector< double >{10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0})
static

Half-life of pesticides for one compartment use.

Referenced by Pesticide::Tick().

◆ l_pest_daily_mort

CfgFloat l_pest_daily_mort("PEST_DAILY_MORTALITY", CFG_CUSTOM, 0.25)

Daily mortality of pesticide with type 1.

Referenced by Hare_Male::GeneralOrganoPhosphate(), and Hare_Female::GeneralOrganoPhosphate().

◆ l_pest_daily_mort_2

CfgFloat l_pest_daily_mort_2("PEST_DAILY_MORTALITY_TWO", CFG_CUSTOM, 0.25)

Daily mortality of pesticide with type 2.

◆ l_pest_driving_slow

CfgBool l_pest_driving_slow("PEST_DRIVING_SLOW", CFG_CUSTOM, false)
static

Used to decide the driving speed when spraying pesticides. Driving slow is 7.2 km/h, otherwise 14.4 km/h.

Referenced by Pesticide::DiffusionVectorInit().

◆ l_pest_enable_dust_drift

CfgBool l_pest_enable_dust_drift("PEST_ENABLE_DUST_DRIFT", CFG_CUSTOM, false)

Enable dust drift for granular and seed coating applications.

Referenced by Pesticide::AddGranularPesticide().

◆ l_pest_enable_pesticide_engine

◆ l_pest_NoPPPs

CfgInt l_pest_NoPPPs("PEST_NO_OF_PPPS", CFG_CUSTOM, 1, 1, 10)

◆ l_pest_nozzle_type

CfgInt l_pest_nozzle_type("PEST_NOZZLE_TYPE", CFG_CUSTOM, 0, 0, 17)
static

The type of nozzle to use for spraying pesticide. Determines the amount of drift.

Referenced by Pesticide::DiffusionVectorInit().

◆ l_pest_record_grid_size

CfgInt l_pest_record_grid_size("PEST_RECORD_GRID_SIZE", CFG_CUSTOM, 100)
static

Size of the grid used for recording the pesticide amount in the landscape.

Referenced by Pesticide::Pesticide(), Pesticide::RecordPesticideLoad(), and Pesticide::RecordPesticideMap().

◆ l_pest_record_used

CfgBool l_pest_record_used("PEST_RECORD_USED", CFG_CUSTOM, false)
static

Used to turn on or off saving the pesticide load.

Referenced by Pesticide::DiffusionSprayPixel(), Pesticide::Pesticide(), and Pesticide::Tick().

◆ l_pest_save_all_compartments

CfgBool l_pest_save_all_compartments("PEST_SAVE_ALL_COMPARTMENTS", CFG_CUSTOM, false)
static

Used to turn on or off saving all pesticide compartments in one file for x=l_map_dump_veg_x and y=l_map_dump_veg_y.

Referenced by Pesticide::Pesticide(), and Pesticide::Tick().

◆ l_pest_save_map_daily

CfgBool l_pest_save_map_daily("PEST_SAVE_MAP_DAILY", CFG_CUSTOM, false)
static

Used to turn on or off saving the pesticide map(s) daily.

Referenced by Pesticide::Pesticide(), and Pesticide::Tick().

◆ l_pest_trigger_threshold1

CfgFloat l_pest_trigger_threshold1("PEST_TRIGGER_THRESHOLD_ONE", CFG_CUSTOM, 1.0)

This is a trigger value that can be used to trigger pesticides effects. Currently not used?

◆ l_pest_trigger_threshold2

CfgFloat l_pest_trigger_threshold2("PEST_TRIGGER_THRESHOLD_TWO", CFG_CUSTOM, 1.0)

This is a trigger value that can be used to trigger pesticides effects. Currently not used?

◆ l_pest_use_single_nozzle_drift

CfgBool l_pest_use_single_nozzle_drift("PEST_USE_SINGLE_NOZZLE_DRIFT", CFG_CUSTOM, false)

Uses single nozzle drift result (in for-loop) if true, but uses matrix calculation (Eigen) with Rautmann result if false.

Referenced by Pesticide::DailyQueueProcess(), and Pesticide::Pesticide().

◆ l_pest_zero_threshold

CfgFloat l_pest_zero_threshold("PEST_ZERO_THRESHOLD", CFG_CUSTOM, 0.000001)

The threshold for when we consider the pesticide amount negligible (default is 1 microgram per square meter).

The number of pesticide types used, the maximum value is 10.

Referenced by PesticideStore::doDecay(), and Pesticide::MainMapDecay().

Pesticide
Definition: Pesticide.h:86
g_pest
class Pesticide * g_pest
Definition: Pesticide.cpp:219