Skip to content

Commit f5957ed

Browse files
committed
fixing total res int double inconsistency
1 parent 87a1396 commit f5957ed

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

source/ConfigSetup.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ EMP_BUILD_CONFIG(SymConfigBase,
1919
VALUE(SYM_LIMIT, int, 1, "Number of symbiont allowed to infect a single host"),
2020
VALUE(START_MOI, double, 1, "Ratio of symbionts to hosts that experiment should start with"),
2121
VALUE(UPDATES, int, 1001, "Number of updates to run before quitting"),
22-
VALUE(RES_DISTRIBUTE, int, 100, "Number of resources to give to each host each update if they are available"),
23-
VALUE(LIMITED_RES_TOTAL, int, -1, "Starting number of total resources available over the entire run, -1 for unlimited"),
24-
VALUE(LIMITED_RES_INFLOW, int, 0, "Number of resources to add to the total every update, only used if LIMITED_RES_TOTAL is not -1"),
22+
VALUE(RES_DISTRIBUTE, double, 100, "Number of resources to give to each host each update if they are available"),
23+
VALUE(LIMITED_RES_TOTAL, double, -1, "Starting number of total resources available over the entire run, -1 for unlimited"),
24+
VALUE(LIMITED_RES_INFLOW, double, 0, "Number of resources to add to the total every update, only used if LIMITED_RES_TOTAL is not -1"),
2525
VALUE(HORIZ_TRANS, bool, 1, "Should non-lytic horizontal transmission occur? 0 for no, 1 for yes"),
2626
VALUE(HOST_REPRO_RES, double, 1000, "How many resources required for host reproduction"),
2727
VALUE(SYM_HORIZ_TRANS_RES, double, 100, "How many resources required for symbiont non-lytic horizontal transmission"),

source/default_mode/SymWorld.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class SymWorld : public emp::World<Organism>{
3131
* Purpose: Represents the total resources in the world. This can be set with SetTotalRes()
3232
*
3333
*/
34-
int total_res = -1;
34+
double total_res = -1;
3535

3636
/**
3737
*

0 commit comments

Comments
 (0)