@@ -489,8 +489,8 @@ static ClimateNode *climate; // current climate
489
489
static Fluxes fluxes ;
490
490
static double * outputPtrs [MAX_DATA_TYPES ]; // pointers to different possible outputs
491
491
492
- #ifdef EVENT_HANDLER
493
- static EventNode * * events ; // MJL: event structs
492
+ #if EVENT_HANDLER
493
+ static EventNode * * events ;
494
494
#endif
495
495
496
496
/* Read climate file into linked lists,
@@ -1936,8 +1936,8 @@ void calculateFluxes() {
1936
1936
double potGrossPsn ; // potential photosynthesis, without water stress
1937
1937
double dWater ;
1938
1938
double lai ; // m^2 leaf/m^2 ground (calculated from plantLeafC)
1939
- //double litterBreakdown; /* total litter breakdown (i.e. litterToSoil + rLitter)
1940
- // (g C/m^2 ground/day) */
1939
+ //double litterBreakdown; /* total litter breakdown (i.e. litterToSoil + rLitter)
1940
+ // (g C/m^2 ground/day) */
1941
1941
double folResp , woodResp ; // maintenance respiration terms, g C * m^-2 ground area * day^-1
1942
1942
double litterWater , soilWater ; /* amount of water in litter and soil (cm)
1943
1943
taken from either environment or climate drivers, depending on value of MODEL_WATER */
@@ -2485,7 +2485,7 @@ void setupModel(SpatialParams *spatialParams, int loc) {
2485
2485
2486
2486
// Setup events at given location
2487
2487
void setupEvents (int currLoc ) {
2488
-
2488
+ // Implementation TBD
2489
2489
}
2490
2490
2491
2491
@@ -2514,8 +2514,8 @@ void runModelOutput(FILE *out, OutputItems *outputItems, int printHeader, Spatia
2514
2514
2515
2515
for (currLoc = firstLoc ; currLoc <= lastLoc ; currLoc ++ ) {
2516
2516
setupModel (spatialParams , currLoc );
2517
- #ifdef EVENT_HANDLER
2518
- setupEvents (currLoc );
2517
+ #if EVENT_HANDLER
2518
+ setupEvents (currLoc );
2519
2519
#endif
2520
2520
if ((loc == -1 ) && (outputItems != NULL )) { // print the current location at the start of the line
2521
2521
sprintf (label , "%d" , currLoc );
@@ -2525,15 +2525,16 @@ void runModelOutput(FILE *out, OutputItems *outputItems, int printHeader, Spatia
2525
2525
while (climate != NULL ) {
2526
2526
updateState ();
2527
2527
if (out != NULL ) {
2528
- outputState (out , currLoc , climate -> year , climate -> day , climate -> time );
2528
+ outputState (out , currLoc , climate -> year , climate -> day , climate -> time );
2529
2529
}
2530
2530
if (outputItems != NULL ) {
2531
- writeOutputItemValues (outputItems );
2531
+ writeOutputItemValues (outputItems );
2532
2532
}
2533
2533
climate = climate -> nextClim ;
2534
2534
}
2535
- if (outputItems != NULL )
2535
+ if (outputItems != NULL ) {
2536
2536
terminateOutputItemLines (outputItems );
2537
+ }
2537
2538
}
2538
2539
}
2539
2540
@@ -2794,7 +2795,7 @@ int initModel(SpatialParams **spatialParams, int **steps, char *paramFile, char
2794
2795
* Populates static event structs
2795
2796
*/
2796
2797
void initEvents (char * eventFile , int numLocs ) {
2797
- #ifdef EVENT_HANDLER
2798
+ #if EVENT_HANDLER
2798
2799
events = readEventData (eventFile , numLocs );
2799
2800
#endif
2800
2801
}
0 commit comments