File failed to load: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/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
OWinterBarleyExt Class Reference

#include <OWinterBarleyExt.h>

Inheritance diagram for OWinterBarleyExt:
Crop

Public Member Functions

bool Do (Farm *a_farm, LE *a_field, FarmEvent *a_ev)
 
 OWinterBarleyExt (TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
 
void SetUpFarmCategoryInformation ()
 
- Public Member Functions inherited from Crop
virtual ~Crop ()
 
 Crop (TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
 
int GetFirstDate (void)
 
void ChooseNextCrop (int a_no_dates)
 Chooses the next crop to grow in a field. More...
 
int GetCropClassification ()
 
void SetCropClassification (int a_classification)
 
void GetCropType (TTypesOfCrops a_toc)
 
TTypesOfCrops GetCropType ()
 
FarmManagementCategory LookUpManagementCategory (int a_todo)
 
bool GetForceSpringOK ()
 

Additional Inherited Members

- Public Attributes inherited from Crop
TTypesOfVegetation m_tov
 
- Protected Member Functions inherited from Crop
void SimpleEvent (long a_date, int a_todo, bool a_lock)
 Adds an event to this crop management. More...
 
void SimpleEvent_ (long a_date, int a_todo, bool a_lock, Farm *a_farm, LE *a_field)
 Adds an event to this crop management without relying on member variables. More...
 
bool StartUpCrop (int a_spring, std::vector< std::vector< int >> a_flexdates, int a_todo)
 
Holds the translation between the farm operation enum for each cropand the farm management category associated with it More...
 
bool AphidDamage (LE *a_field)
 Compares aphid numbers per m2 with a threshold to return true if threshold is exceeded. More...
 
- Protected Attributes inherited from Crop
Farmm_farm
 
LEm_field
 
FarmEventm_ev
 
int m_first_date
 
int m_count
 
int m_last_date
 
int m_ddegstoharvest
 
int m_base_elements_no
 
Landscapem_OurLandscape
 
bool m_forcespringpossible = false
 Used to signal that the crop can be forced to start in spring. More...
 
TTypesOfCrops m_toc
 The Crop type in terms of the TTypesOfCrops list (smaller list than tov, no country designation) More...
 
int m_CropClassification
 Contains information on whether this is a winter crop, spring crop, or catch crop that straddles the year boundary (0,1,2) More...
 
vector< FarmManagementCategorym_ManagementCategories
 Holds the translation between the farm operation enum for each crop and the farm management category associated with it. More...
 
- Static Protected Attributes inherited from Crop
static int m_date_modifier = 0
 Holds a value that shifts test pesticide use by this many days in crops modified to use it. More...
 

Constructor & Destructor Documentation

◆ OWinterBarleyExt()

OWinterBarleyExt::OWinterBarleyExt ( TTypesOfVegetation  a_tov,
TTypesOfCrops  a_toc,
Landscape a_L 
)
inline
59  : Crop(a_tov, a_toc, a_L)
60  {
63  }

References Calendar::DayInYear(), g_date, Crop::m_first_date, and SetUpFarmCategoryInformation().

Member Function Documentation

◆ Do()

bool OWinterBarleyExt::Do ( Farm a_farm,
LE a_field,
FarmEvent a_ev 
)
virtual

Reimplemented from Crop.

34 {
35  m_farm = a_farm;
36  m_field = a_field;
37  m_ev = a_ev;
38 
39  bool done = false;
40 
41  switch ( m_ev->m_todo )
42  {
43  case owbext_start:
44  {
45  a_field->ClearManagementActionSum();
46 
47  // Set up the date management stuff
49  // Start and stop dates for all events after harvest
50  int noDates= 2;
51  m_field->SetMDates(0,0,g_date->DayInYear(20,7));
52  // Determined by harvest date - used to see if at all possible
53  m_field->SetMDates(1,0,g_date->DayInYear(1,8));
54  m_field->SetMDates(0,1,g_date->DayInYear(25,7));
55  m_field->SetMDates(1,1,g_date->DayInYear(5,8));
56  // Check the next crop for early start, unless it is a spring crop
57  // in which case we ASSUME that no checking is necessary!!!!
58  // So DO NOT implement a crop that runs over the year boundary
59  if (m_ev->m_startday>g_date->DayInYear(1,7))
60  {
61  if (m_field->GetMDates(0,0) >=m_ev->m_startday)
62  {
63  g_msg->Warn( WARN_BUG, "OWinterBarley::Do(): "
64  "Harvest too late for the next crop to start!!!", "" );
65  exit( 1 );
66  }
67  // Now fix any late finishing problems
68  for (int i=0; i<noDates; i++)
69  {
70  if (m_field->GetMDates(0,i)>=m_ev->m_startday)
72  if (m_field->GetMDates(1,i)>=m_ev->m_startday)
74  }
75  }
76  // Now no operations can be timed after the start of the next crop.
77 
78  int d1;
79  if ( ! m_ev->m_first_year )
80  {
81  int today=g_date->Date();
82  // Are we before July 1st?
83  d1 = g_date->OldDays() + g_date->DayInYear( 1,7 );
84  if (today < d1)
85  {
86  // Yes, too early. We assumme this is because the last crop was late
87  g_msg->Warn( WARN_BUG, "OWinterBarley::Do(): "
88  "Crop start attempt between 1st Jan & 1st July", "" );
89  exit( 1 );
90  }
91  else
92  {
93  d1 = g_date->OldDays() + m_first_date; // Add 365 for spring crop
94  if (today > d1)
95  {
96  // Yes too late - should not happen - raise an error
97  g_msg->Warn( WARN_BUG, "OWinterBarley::Do(): "
98  "Crop start attempt after last possible start date", "" );
99  exit( 1 );
100  }
101  }
102  }
103  else
104  {
105  SimpleEvent( g_date->OldDays() + g_date->DayInYear(20,7 ),
106  owbext_harvest, false );
107  break;
108  }
109  // End single block date checking code. Please see next line
110  // comment as well.
111  // Reinit d1 to first possible starting date.
112  d1 = g_date->OldDays() + m_first_date; // Add 365 for spring crop
113  if ( g_date->Date() > d1 ) {
114  d1 = g_date->Date();
115  }
116  // OK, let's go.
117 
118  OWBExt_DID_SPRING_SOW = false;
119 
120  if ( m_farm->IsStockFarmer()) {
122  } else {
124  }
125  }
126  break;
127 
129  if ( m_ev->m_lock || m_farm->DoIt( 50 ))
130  {
131  if (!m_farm->FA_Manure( m_field, 0.0,
132  g_date->DayInYear( 30, 9 ) -
133  g_date->DayInYear())) {
135  break;
136  }
137  }
138  {
139  int d1 = g_date->Date();
140  if ( d1 < g_date->OldDays() + g_date->DayInYear( 25, 8 )) {
141  d1 = g_date->OldDays() + g_date->DayInYear( 25, 8 );
142  }
143  SimpleEvent( d1, owbext_autumn_plough, false );
144  }
145  break;
146 
148  if ( m_ev->m_lock || m_farm->DoIt( 50 ))
149  {
150  if (!m_farm->FP_Manure( m_field, 0.0,
151  g_date->DayInYear( 30, 9 ) -
152  g_date->DayInYear())) {
154  break;
155  }
156  }
157  {
158  int d1 = g_date->Date();
159  if ( d1 < g_date->OldDays() + g_date->DayInYear( 25, 8 )) {
160  d1 = g_date->OldDays() + g_date->DayInYear( 25, 8 );
161  }
162  SimpleEvent( d1, owbext_autumn_plough, false );
163  }
164  break;
165 
167  if (!m_farm->AutumnPlough( m_field, 0.0,
168  g_date->DayInYear( 25, 9 ) -
169  g_date->DayInYear())) {
170  SimpleEvent( g_date->Date() + 1, owbext_autumn_plough, true );
171  break;
172  }
174  break;
175 
177  if (!m_farm->AutumnHarrow( m_field, 0.0,
178  g_date->DayInYear( 25, 9 ) -
179  g_date->DayInYear())) {
180  SimpleEvent( g_date->Date() + 1, owbext_autumn_harrow, true );
181  break;
182  }
183  {
184  int d1 = g_date->Date();
185  if ( d1 < g_date->OldDays() + g_date->DayInYear( 10, 9 )) {
186  d1 = g_date->OldDays() + g_date->DayInYear( 10, 9 );
187  }
188  SimpleEvent( d1, owbext_autumn_sow, false );
189  }
190  break;
191 
192  case owbext_autumn_sow:
193  if (!m_farm->AutumnSow( m_field, 0.0,
194  g_date->DayInYear( 25,9 ) -
195  g_date->DayInYear())) {
196  SimpleEvent( g_date->Date() + 1, owbext_autumn_sow, true );
197  break;
198  }
199  {
200  int d1 = g_date->Date() + 10;
201  if ( d1 < g_date->OldDays() + g_date->DayInYear( 25, 9 )) {
202  d1 = g_date->OldDays() + g_date->DayInYear( 25, 9 );
203  }
204  SimpleEvent( d1, owbext_strigling_one, false );
205  }
206  break;
207 
209  if (!m_farm->Strigling( m_field, 0.0,
210  g_date->DayInYear( 10,10 ) -
211  g_date->DayInYear())) {
212  SimpleEvent( g_date->Date() + 1, owbext_strigling_one, true );
213  break;
214  }
215  if ( m_farm->IsStockFarmer()) {
216  // Skip directly to second fertilization with manure.
217  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 1, 4 ) + 365,
218  owbext_fertslurry_stock, false );
219 
220  // Queue up second strigling too, plant farmers does this themselves
221  // after the second (spring) sow.
222  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 5,4 ) + 365,
223  owbext_strigling_two, false );
224 
225  } else {
226  // Plant farmers (will perhaps) do the spring sow.
227  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 25, 3 ) + 365,
228  owbext_spring_sow, false );
229  }
230  break;
231 
232  case owbext_spring_sow:
233  if ( m_ev->m_lock || m_farm->DoIt( 60 ))
234  {
235  // We intend to sow, eventually, so stop second strigling
236  // ahead of time.
237  OWBExt_DID_SPRING_SOW = true;
238  if (!m_farm->SpringSow( m_field, 0.0,
239  g_date->DayInYear( 15,4 ) -
240  g_date->DayInYear())) {
241  SimpleEvent( g_date->Date() + 1, owbext_spring_sow, true );
242  break;
243  }
244  }
245  {
246  int d1 = g_date->Date();
247  if ( d1 < g_date->OldDays() + g_date->DayInYear( 1, 4 )) {
248  d1 = g_date->OldDays() + g_date->DayInYear( 1, 4 );
249  }
250  SimpleEvent( d1, owbext_fertslurry_plant, false );
251 
252  if ( d1 < g_date->OldDays() + g_date->DayInYear( 5, 4 )) {
253  d1 = g_date->OldDays() + g_date->DayInYear( 5, 4 );
254  }
255  SimpleEvent( d1, owbext_strigling_two, false );
256  }
257  break;
258 
260  if ( OWBExt_DID_SPRING_SOW ) {
261  break;
262  }
263  if ( m_ev->m_lock || (cfg_strigling_prop.value() * m_farm->DoIt( 60 )))
264  {
265  if (!m_farm->Strigling( m_field, 0.0,
266  g_date->DayInYear( 25,4 ) -
267  g_date->DayInYear())) {
268  SimpleEvent( g_date->Date() + 1, owbext_strigling_two, true );
269  break;
270  }
271  }
272  // End of thread.
273  break;
274 
276  if (!m_farm->FP_Slurry( m_field, 0.0,
277  g_date->DayInYear( 30,4 ) -
278  g_date->DayInYear())) {
280  break;
281  }
282  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 20,7 ),
283  owbext_harvest, false );
284  break;
285 
287  if (!m_farm->FA_Slurry( m_field, 0.0,
288  g_date->DayInYear( 30,4 ) -
289  g_date->DayInYear())) {
291  break;
292  }
293  SimpleEvent( g_date->OldDays() + g_date->DayInYear( 20,7 ),
294  owbext_harvest, false );
295  break;
296 
297  case owbext_harvest:
298  if (!m_farm->Harvest( m_field, 0.0,
299  m_field->GetMDates(1,0) -
300  g_date->DayInYear())) {
301  SimpleEvent( g_date->Date() + 1, owbext_harvest, true );
302  break;
303  }
305  break;
306 
308  if ( m_ev->m_lock || m_farm->DoIt( 20 ))
309  {
310  if (!m_farm->StrawChopping( m_field, 0.0,
311  m_field->GetMDates(1,0) -
312  g_date->DayInYear())) {
313  SimpleEvent( g_date->Date() + 1, owbext_straw_chopping, true );
314  break;
315  }
316  // Did chopping, so skip to stubble harrowing.
318  break;
319  }
320  // No chop, thus try to bail hay.
321  {
322  int d1 = g_date->Date();
323  if ( d1 < g_date->OldDays() + m_field->GetMDates(0,1)) {
324  d1 = g_date->OldDays() + m_field->GetMDates(0,1);
325  }
326  SimpleEvent( d1, owbext_hay_bailing, false );
327  }
328  break;
329 
330  case owbext_hay_bailing:
331  if ( m_ev->m_lock || m_farm->DoIt( 80 )) {
332  if (!m_farm->HayBailing( m_field, 0.0,
333  m_field->GetMDates(1,1) -
334  g_date->DayInYear())) {
335  SimpleEvent( g_date->Date() + 1, owbext_hay_bailing, true );
336  break;
337  }
338  }
340  break;
341 
343  if ( m_ev->m_lock || m_farm->DoIt( 5 )) {
344  if (!m_farm->StubbleHarrowing( m_field, 0.0,
345  m_field->GetMDates(1,1) -
346  g_date->DayInYear())) {
348  break;
349  }
350  }
351  done = true;
352  break;
353 
354  default:
355  g_msg->Warn( WARN_BUG, "OWinterBarley::Do(): "
356  "Unknown event type! ", "" );
357  exit( 1 );
358  }
359 
360  return done;
361 }

References Farm::AutumnHarrow(), Farm::AutumnPlough(), Farm::AutumnSow(), cfg_strigling_prop, LE::ClearManagementActionSum(), Calendar::Date(), Calendar::DayInYear(), Farm::DoIt(), Farm::FA_Manure(), Farm::FA_Slurry(), Farm::FP_Manure(), Farm::FP_Slurry(), g_date, g_msg, LE::GetMDates(), Farm::Harvest(), Farm::HayBailing(), Farm::IsStockFarmer(), Crop::m_ev, Crop::m_farm, Crop::m_field, Crop::m_first_date, FarmEvent::m_first_year, Crop::m_last_date, FarmEvent::m_lock, FarmEvent::m_startday, FarmEvent::m_todo, Calendar::OldDays(), owbext_autumn_harrow, owbext_autumn_plough, owbext_autumn_sow, OWBExt_DID_SPRING_SOW, owbext_fertmanure_plant_one, owbext_fertmanure_stock_one, owbext_fertslurry_plant, owbext_fertslurry_stock, owbext_harvest, owbext_hay_bailing, owbext_spring_sow, owbext_start, owbext_straw_chopping, owbext_strigling_one, owbext_strigling_two, owbext_stubble_harrowing, LE::SetMDates(), Crop::SimpleEvent(), Farm::SpringSow(), Farm::StrawChopping(), Farm::Strigling(), Farm::StubbleHarrowing(), CfgFloat::value(), MapErrorMsg::Warn(), and WARN_BUG.

◆ SetUpFarmCategoryInformation()

void OWinterBarleyExt::SetUpFarmCategoryInformation ( )
inline
64  {
65  const int elements = 2 + (owbext_foobar - OWBarleyExt_BASE);
67 
68  FarmManagementCategory catlist[elements] =
69  {
70  fmc_Others, // zero element unused but must be here
71  fmc_Others, // owbext_start = 1, // Compulsory, start event must always be 1 (one).
72  fmc_Fertilizer, // owbext_fertmanure_plant_one = OWBarleyExt_BASE,
73  fmc_Fertilizer, // owbext_fertmanure_stock_one,
74  fmc_Cultivation, // owbext_autumn_plough,
75  fmc_Cultivation, // owbext_autumn_harrow,
76  fmc_Others, // owbext_autumn_sow,
77  fmc_Cultivation, // owbext_strigling_one,
78  fmc_Others, // owbext_spring_sow,
79  fmc_Fertilizer, // owbext_fertslurry_plant,
80  fmc_Fertilizer, // owbext_fertslurry_stock,
81  fmc_Cultivation, // owbext_strigling_two,
82  fmc_Harvest, // owbext_harvest,
83  fmc_Others, // owbext_straw_chopping,
84  fmc_Others, // owbext_hay_bailing,
85  fmc_Cultivation // owbext_stubble_harrowing,
86 
87 
88  // no foobar entry
89 
90  };
91  // Iterate over the catlist elements and copy them to vector
92  copy(begin(catlist), end(catlist), back_inserter(m_ManagementCategories));
93 
94  }

References fmc_Cultivation, fmc_Fertilizer, fmc_Harvest, fmc_Others, Crop::m_base_elements_no, Crop::m_ManagementCategories, OWBarleyExt_BASE, and owbext_foobar.

Referenced by OWinterBarleyExt().


The documentation for this class was generated from the following files:
LE::GetMDates
int GetMDates(int a, int b)
Definition: Elements.h:405
owbext_harvest
Definition: OWinterBarleyExt.h:46
Farm::FA_Slurry
virtual bool FA_Slurry(LE *a_field, double a_user, int a_days)
Spready slurry on a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:1067
owbext_autumn_sow
Definition: OWinterBarleyExt.h:40
LE::SetMDates
void SetMDates(int a, int b, int c)
Definition: Elements.h:406
Farm::IsStockFarmer
bool IsStockFarmer(void)
Definition: Farm.h:961
Farm::Strigling
virtual bool Strigling(LE *a_field, double a_user, int a_days)
Carry out a mechanical weeding on a_field.
Definition: FarmFuncs.cpp:1206
Farm::Harvest
virtual bool Harvest(LE *a_field, double a_user, int a_days)
Carry out a harvest on a_field.
Definition: FarmFuncs.cpp:1364
FarmEvent::m_lock
bool m_lock
Definition: Farm.h:384
LE::ClearManagementActionSum
void ClearManagementActionSum()
clears the management action counters
Definition: Elements.h:247
Farm::DoIt
bool DoIt(double a_probability)
Return chance out of 0 to 100.
Definition: Farm.cpp:856
FarmEvent::m_first_year
bool m_first_year
Definition: Farm.h:386
g_date
class Calendar * g_date
Definition: Calendar.cpp:37
Farm::FA_Manure
virtual bool FA_Manure(LE *a_field, double a_user, int a_days)
Spread manure on a_field owned by an stock farmer.
Definition: FarmFuncs.cpp:1110
Farm::SpringSow
virtual bool SpringSow(LE *a_field, double a_user, int a_days, double a_seed_coating_amount=-1, PlantProtectionProducts a_ppp=ppp_foobar)
Carry out a sowing event in the spring on a_field.
Definition: FarmFuncs.cpp:501
CfgFloat::value
double value() const
Definition: Configurator.h:142
Crop::m_base_elements_no
int m_base_elements_no
Definition: Farm.h:505
Crop::m_first_date
int m_first_date
Definition: Farm.h:501
FarmEvent::m_startday
int m_startday
Definition: Farm.h:385
cfg_strigling_prop
CfgFloat cfg_strigling_prop
owbext_fertslurry_plant
Definition: OWinterBarleyExt.h:43
Crop::SimpleEvent
void SimpleEvent(long a_date, int a_todo, bool a_lock)
Adds an event to this crop management.
Definition: Farm.cpp:747
Farm::FP_Manure
virtual bool FP_Manure(LE *a_field, double a_user, int a_days)
Spread manure on a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:896
owbext_straw_chopping
Definition: OWinterBarleyExt.h:47
fmc_Fertilizer
Definition: LandscapeFarmingEnums.h:1004
OWBExt_DID_SPRING_SOW
#define OWBExt_DID_SPRING_SOW
Definition: OWinterBarleyExt.h:32
Calendar::Date
long Date(void)
Definition: Calendar.h:57
fmc_Cultivation
Definition: LandscapeFarmingEnums.h:1008
Farm::HayBailing
virtual bool HayBailing(LE *a_field, double a_user, int a_days)
Carry out hay bailing on a_field.
Definition: FarmFuncs.cpp:1507
fmc_Others
Definition: LandscapeFarmingEnums.h:1003
Farm::StrawChopping
virtual bool StrawChopping(LE *a_field, double a_user, int a_days)
Carry out straw chopping on a_field.
Definition: FarmFuncs.cpp:1475
Calendar::OldDays
long OldDays(void)
Definition: Calendar.h:60
owbext_foobar
Definition: OWinterBarleyExt.h:50
owbext_autumn_plough
Definition: OWinterBarleyExt.h:38
owbext_stubble_harrowing
Definition: OWinterBarleyExt.h:49
MapErrorMsg::Warn
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: MapErrorMsg.cpp:69
owbext_hay_bailing
Definition: OWinterBarleyExt.h:48
owbext_start
Definition: OWinterBarleyExt.h:35
Crop::m_farm
Farm * m_farm
Definition: Farm.h:498
Crop::m_field
LE * m_field
Definition: Farm.h:499
owbext_strigling_one
Definition: OWinterBarleyExt.h:41
Crop::m_ManagementCategories
vector< FarmManagementCategory > m_ManagementCategories
Holds the translation between the farm operation enum for each crop and the farm management category ...
Definition: Farm.h:530
owbext_spring_sow
Definition: OWinterBarleyExt.h:42
FarmEvent::m_todo
int m_todo
Definition: Farm.h:388
owbext_fertslurry_stock
Definition: OWinterBarleyExt.h:44
Farm::FP_Slurry
virtual bool FP_Slurry(LE *a_field, double a_user, int a_days)
Apply slurry to a_field owned by an arable farmer.
Definition: FarmFuncs.cpp:823
owbext_fertmanure_stock_one
Definition: OWinterBarleyExt.h:37
Crop::m_last_date
int m_last_date
Definition: Farm.h:503
Farm::AutumnPlough
virtual bool AutumnPlough(LE *a_field, double a_user, int a_days)
Carry out a ploughing event in the autumn on a_field.
Definition: FarmFuncs.cpp:212
g_msg
MapErrorMsg * g_msg
Definition: MapErrorMsg.cpp:41
Farm::AutumnHarrow
virtual bool AutumnHarrow(LE *a_field, double a_user, int a_days)
Carry out a harrow event in the autumn on a_field.
Definition: FarmFuncs.cpp:285
Farm::AutumnSow
virtual bool AutumnSow(LE *a_field, double a_user, int a_days, double a_seed_coating_amount=-1, PlantProtectionProducts a_ppp=ppp_foobar)
Carry out a sowing event in the autumn on a_field.
Definition: FarmFuncs.cpp:360
fmc_Harvest
Definition: LandscapeFarmingEnums.h:1012
Calendar::DayInYear
int DayInYear(void)
Definition: Calendar.h:58
Crop::Crop
Crop(TTypesOfVegetation a_tov, TTypesOfCrops a_toc, Landscape *a_L)
Definition: Farm.cpp:733
OWinterBarleyExt::SetUpFarmCategoryInformation
void SetUpFarmCategoryInformation()
Definition: OWinterBarleyExt.h:64
owbext_strigling_two
Definition: OWinterBarleyExt.h:45
Crop::m_ev
FarmEvent * m_ev
Definition: Farm.h:500
WARN_BUG
Definition: MapErrorMsg.h:34
owbext_autumn_harrow
Definition: OWinterBarleyExt.h:39
FarmManagementCategory
FarmManagementCategory
Definition: LandscapeFarmingEnums.h:1001
OWBarleyExt_BASE
#define OWBarleyExt_BASE
Definition: OWinterBarleyExt.h:31
owbext_fertmanure_plant_one
Definition: OWinterBarleyExt.h:36
Farm::StubbleHarrowing
virtual bool StubbleHarrowing(LE *a_field, double a_user, int a_days)
Carry out stubble harrowing on a_field.
Definition: FarmFuncs.cpp:1523