@@ -2433,13 +2433,13 @@ void setupModel(SpatialParams *spatialParams, int loc) {
2433
2433
2434
2434
// ensure that all the allocation parameters sum up to something less than one:
2435
2435
#if ROOTS
2436
- ensureAllocation ();
2436
+ ensureAllocation ();
2437
2437
#endif
2438
2438
2439
2439
// If we aren't explicitly modeling microbe pool, then do not have a pulse to microbes,
2440
2440
// exudates go directly to the soil
2441
2441
#if !MICROBES
2442
- params .microbePulseEff = 0 ;
2442
+ params .microbePulseEff = 0 ;
2443
2443
#endif
2444
2444
2445
2445
// change units of parameters:
@@ -2456,49 +2456,49 @@ void setupModel(SpatialParams *spatialParams, int loc) {
2456
2456
#if ROOTS
2457
2457
envi .plantWoodC = (1 - params .coarseRootFrac - params .fineRootFrac )* params .plantWoodInit ;
2458
2458
#else
2459
- envi .plantWoodC = params .plantWoodInit ;
2459
+ envi .plantWoodC = params .plantWoodInit ;
2460
2460
#endif
2461
2461
2462
2462
envi .plantLeafC = params .laiInit * params .leafCSpWt ;
2463
2463
envi .litter = params .litterInit ;
2464
2464
2465
2465
2466
2466
// If SOIL_QUALITY, split initial soilCarbon equally among all the pools
2467
- #if SOIL_MULTIPOOL
2468
- int counter ;
2467
+ #if SOIL_MULTIPOOL
2468
+ int counter ;
2469
2469
2470
- for ( counter = 0 ; counter < NUMBER_SOIL_CARBON_POOLS ; counter ++ ) {
2470
+ for ( counter = 0 ; counter < NUMBER_SOIL_CARBON_POOLS ; counter ++ ) {
2471
2471
2472
- envi .soil [counter ]= params .soilInit /NUMBER_SOIL_CARBON_POOLS ;
2472
+ envi .soil [counter ]= params .soilInit /NUMBER_SOIL_CARBON_POOLS ;
2473
2473
2474
- }
2475
- trackers .totSoilC = params .soilInit ;
2476
- #else
2477
- envi .soil = params .soilInit ;
2474
+ }
2475
+ trackers .totSoilC = params .soilInit ;
2476
+ #else
2477
+ envi .soil = params .soilInit ;
2478
2478
2479
- #endif
2479
+ #endif
2480
2480
2481
- #if SOIL_QUALITY
2482
- params .maxIngestionRate = params .maxIngestionRate * 24 * params .microbeInit /1000 ;
2483
- // change from per hour to per day rate, and then multiply by microbial concentration (mg C / g soil).
2481
+ #if SOIL_QUALITY
2482
+ params .maxIngestionRate = params .maxIngestionRate * 24 * params .microbeInit /1000 ;
2483
+ // change from per hour to per day rate, and then multiply by microbial concentration (mg C / g soil).
2484
2484
2485
- #else
2486
- params .maxIngestionRate = params .maxIngestionRate * 24 ; // change from per hour to per day rate
2487
- #endif
2485
+ #else
2486
+ params .maxIngestionRate = params .maxIngestionRate * 24 ; // change from per hour to per day rate
2487
+ #endif
2488
2488
2489
2489
2490
2490
2491
- envi .microbeC = params .microbeInit * params .soilInit /1000 ; // convert to gC m-2
2491
+ envi .microbeC = params .microbeInit * params .soilInit /1000 ; // convert to gC m-2
2492
2492
2493
2493
2494
- params .totNitrogen = params .totNitrogen * params .soilInit ; // convert to gC m-2
2494
+ params .totNitrogen = params .totNitrogen * params .soilInit ; // convert to gC m-2
2495
2495
2496
2496
params .fineRootTurnoverRate /= 365.0 ;
2497
2497
params .coarseRootTurnoverRate /= 365.0 ;
2498
2498
2499
2499
params .baseCoarseRootResp /= 365.0 ;
2500
2500
params .baseFineRootResp /= 365.0 ;
2501
- params .baseMicrobeResp = params .baseMicrobeResp * 24 ; // change from per hour to per day rate
2501
+ params .baseMicrobeResp = params .baseMicrobeResp * 24 ; // change from per hour to per day rate
2502
2502
2503
2503
2504
2504
envi .coarseRootC = params .coarseRootFrac * params .plantWoodInit ;
0 commit comments