Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
379 commits
Select commit Hold shift + click to select a range
16e2078
manually updating RScore
JetteReeg May 13, 2024
62ae3e1
replace poisson with binomial
TheoPannetier May 14, 2024
42156c5
bound QTL phenotypes
TheoPannetier May 14, 2024
a4157d2
enable scaled dominance distribution
TheoPannetier May 17, 2024
30647cd
Merge branch 'develop' into new_genetics
TheoPannetier May 17, 2024
6774742
fix merge conflict
TheoPannetier May 22, 2024
54758db
rename QTL into dispersal trait
TheoPannetier May 22, 2024
f2c39da
rename SNP into Neutral trait
TheoPannetier May 22, 2024
7fadd23
rename TTrait into QuantitativeTrait
TheoPannetier May 22, 2024
cda91a8
add forgotten sex-indpdt cases
TheoPannetier May 27, 2024
9e81c82
refactor to lift ambiguities over which trait set/get are called
TheoPannetier May 27, 2024
52821d3
make global variables explicit
TheoPannetier May 27, 2024
a208924
make global variables explicit
TheoPannetier May 27, 2024
051fc0e
Merge branch 'new_genetics' of https://github.com/RangeShifter/RangeS…
TheoPannetier May 27, 2024
d5cf1b2
fix merge conflict
TheoPannetier May 27, 2024
eef2e6d
trigger GHA build
TheoPannetier May 30, 2024
6701e19
attempt to pass CRW test, step len 1 is not enough
TheoPannetier May 30, 2024
96c6f81
fix merge conflict
TheoPannetier May 30, 2024
ebb1546
cleanup
TheoPannetier May 30, 2024
17e94e3
fix merge conflict with develop
TheoPannetier May 30, 2024
b221d8f
merge new_genetics and unit_tests, fix merge conflict
TheoPannetier May 30, 2024
c934a7d
merge progress
TheoPannetier May 31, 2024
6f7bd05
inverted fis and fit; refactor some neutral stats
TheoPannetier Jun 8, 2024
d6eb56c
fix bug with inverted sexes
TheoPannetier Jun 11, 2024
1f20305
resolve kernel tests merge
TheoPannetier Jun 11, 2024
12a87de
fix CRW test merge + cleanup
TheoPannetier Jun 11, 2024
08db4d1
trigger build, try to id source of floating point exception in tests
TheoPannetier Jun 11, 2024
a6b2faf
just making sure it's bc of tests
TheoPannetier Jun 11, 2024
971b484
disable tests for debugging
TheoPannetier Jun 11, 2024
1e403db
issue is with pop or landscape test
TheoPannetier Jun 11, 2024
a6e9275
can't be the 4 lines in test_landscape can it
TheoPannetier Jun 11, 2024
ee46e5f
can't be the 4 lines in test_landscape can it
TheoPannetier Jun 11, 2024
aa899b2
ok
TheoPannetier Jun 11, 2024
6074a48
think I got it
TheoPannetier Jun 11, 2024
e69662e
debug test macOS
TheoPannetier Jun 11, 2024
9db4142
need to see patch ids
TheoPannetier Jun 11, 2024
ea3ecad
funky stuff uh
TheoPannetier Jun 11, 2024
bb1e750
show me
TheoPannetier Jun 12, 2024
7b74340
show me more
TheoPannetier Jun 12, 2024
d8530a1
wcgw if I don't initialise my custom structs
TheoPannetier Jun 12, 2024
2498468
default land params
TheoPannetier Jun 12, 2024
d431346
tidy up
TheoPannetier Jun 13, 2024
69a8972
don't think we need to pass full species just for level of ploidy
TheoPannetier Jun 13, 2024
bbf3435
test recombination progress
TheoPannetier Jun 13, 2024
03c4799
testing traits is a logistical nightmare
TheoPannetier Jun 14, 2024
1f0283e
fix bug looking for breakpoint at end iterator, fix test recombinatio…
TheoPannetier Jun 14, 2024
99b3ae0
pass recombination test; fix #27
TheoPannetier Jun 15, 2024
27d3111
clean up recombination test
TheoPannetier Jun 15, 2024
bfffc12
randomise test recombination site
TheoPannetier Jun 15, 2024
a3b90b4
streamlined creation of test objects
TheoPannetier Jun 17, 2024
125e490
test simple inheritance, fix issue #37
TheoPannetier Jun 17, 2024
7a955f3
deal with no recombination inside inherit function
TheoPannetier Jun 17, 2024
ee326ad
template for setting genes of individuals for testing, progress #30
TheoPannetier Jun 18, 2024
743cb1f
finally figured out to set up individual with genes for testing
TheoPannetier Jun 19, 2024
9d9508a
progress test #30
TheoPannetier Jun 19, 2024
74a6ab7
genetic linkage works, fix test #30
TheoPannetier Jun 19, 2024
8c08107
adding (non) interaction with chromosome breaks
TheoPannetier Jun 20, 2024
184baa2
progress on #46
TheoPannetier Jun 20, 2024
4cb66f2
progress on #46, created a population of 2 with same alleles
TheoPannetier Jun 21, 2024
09e986c
fix test #47, heterosigozity is zero in haploid systems
TheoPannetier Jun 21, 2024
387b745
write test for #47, that was easy
TheoPannetier Jun 21, 2024
7ea78c0
fix #47, sampling did not happen and test was insufficient
TheoPannetier Jun 21, 2024
060d1f5
set up two patches landscape, progress on #44
TheoPannetier Jun 21, 2024
6b10483
Manually updating files (removing comments and unnecessary outputs) d…
JetteReeg Jul 3, 2024
b62b958
Merge branch 'translocation' into transloc_new_genetics_merge
JetteReeg Jul 3, 2024
e340dd7
progress debugging #44
TheoPannetier Jul 3, 2024
89eaf9d
progress on test for #35
TheoPannetier Jul 3, 2024
25030af
fix test #35, sex-dept traits function
TheoPannetier Jul 4, 2024
bc82ac9
use the correct ind var trait, fix #36
TheoPannetier Jul 8, 2024
65d5ac4
make viability check inside individual for easier tests
TheoPannetier Jul 9, 2024
c70733d
enable shorthand test genotype for gneetic fitness traits
TheoPannetier Jul 9, 2024
146cade
fix test #39
TheoPannetier Jul 9, 2024
717a314
fix error in #39, add test for #40; genetic fitness determines viabil…
TheoPannetier Jul 9, 2024
37afae5
check allele dominance works, fix #48
TheoPannetier Jul 9, 2024
0c5c1ae
confusion over fis vs fit
TheoPannetier Jul 11, 2024
a2ebaca
test for #28, non-inherited trait are reinitialised instead
TheoPannetier Jul 11, 2024
31d9e1c
more robust test for #28
TheoPannetier Jul 11, 2024
2005237
genetic fitness mutations are indeed constrained below 1 fix half #31
TheoPannetier Jul 11, 2024
f91fca7
fix to_string function for enum types
TheoPannetier Jul 12, 2024
cead5dc
fix #31; genetic fitness mutations always > -1
TheoPannetier Jul 12, 2024
c6f5e29
test for #33 complete
TheoPannetier Jul 15, 2024
1365525
Merge branch 'main' into transloc_new_genetics_merge
JetteReeg Jul 16, 2024
c11b3c1
try to fix check error (Rcpp.h should only be included for the R-pkg)
JetteReeg Jul 16, 2024
4a05004
flagged rcpp output as RS_RCPP
JetteReeg Jul 16, 2024
2745571
added Management.cpp to CMakeLists.txt
JetteReeg Jul 16, 2024
3fd9def
shifted Manamgent.cpp to before Model.cpp in CMakeLists.txt
JetteReeg Jul 16, 2024
0343164
adapted Main.cpp
JetteReeg Jul 16, 2024
2f791f0
fixed bug - missing sex and density-dependence in expression of settl…
TheoPannetier Jul 16, 2024
3f5f47b
test for #34, phew that was big one
TheoPannetier Jul 16, 2024
f6c2a5b
updated Cell.cpp
JetteReeg Jul 17, 2024
c08db1f
Merge remote-tracking branch 'remotes/origin/new_genetics' into trans…
JetteReeg Jul 31, 2024
7bc206b
annotation
TheoPannetier Jul 31, 2024
c24292f
uncomment multiple declaration of sampledInd vector
JetteReeg Aug 1, 2024
0738d89
removed GUI related code
JetteReeg Aug 1, 2024
3261ed0
rm debuglog clutter
TheoPannetier Aug 5, 2024
7389fd7
Bugfix for issue #66
JetteReeg Aug 6, 2024
d88eb10
gcc doesn't like NULL
TheoPannetier Aug 6, 2024
463a640
Bugfix in setGeneticSim()
JetteReeg Aug 6, 2024
6ab3ae5
fix issue with neutral stats assuming less neutral alleles than actua…
TheoPannetier Aug 6, 2024
ad73797
clarify use of the max uniform parameter
TheoPannetier Aug 8, 2024
3c060fa
clarify meaning of allelic diversity metrics
TheoPannetier Aug 8, 2024
e3c95fb
fix merge conflict in NeutralStatsManager
TheoPannetier Aug 16, 2024
8e4da51
fix variable name mismatch
TheoPannetier Aug 16, 2024
f26e0ec
Merge pull request #67 from RangeShifter/unit_test
TheoPannetier Aug 16, 2024
1a740e2
fix merge conflict with rscore
TheoPannetier Aug 16, 2024
4ba52c5
fix iteration bug
TheoPannetier Aug 16, 2024
3cc291e
readGenetics, readTraitsFile now reads the correct nb of lines for ea…
TheoPannetier Aug 17, 2024
23cda73
output dominance coefficients, solve #60
TheoPannetier Aug 20, 2024
da35269
enable selecting which traits are output, solve #53
TheoPannetier Aug 20, 2024
2c20025
better placement for closing macro
TheoPannetier Aug 26, 2024
3c4fa34
default switch case to avoid gcc warning
TheoPannetier Aug 26, 2024
13f1878
fix bug with reading carriage returns as part of TraitsFIle
TheoPannetier Aug 26, 2024
e9a4327
progress on #44
TheoPannetier Aug 26, 2024
5d5da87
fix incorrect initiation of rows and columns in PatchMatrix
TheoPannetier Aug 27, 2024
ae5ae91
Fst for monomorphic pops is correct, fix #44
TheoPannetier Aug 27, 2024
1490006
fst is zero when it cannot be computed, fix #46
TheoPannetier Aug 27, 2024
c98221b
fix incorrect sample size
TheoPannetier Aug 27, 2024
2b6263a
calculation fits weir and cockerham expectation, fix #41
TheoPannetier Aug 27, 2024
0d6a0dc
solution for test var within vs between, fix #68 #69
TheoPannetier Aug 27, 2024
54c2330
test all heterozygotes case, fix #71 #68
TheoPannetier Aug 27, 2024
e9dbab2
assert correct nb of individuals is sampled, fix #53
TheoPannetier Aug 27, 2024
7ee8cfa
unlucky draw
TheoPannetier Aug 28, 2024
b147de3
fix bugged haploid GeneticFitness trait
TheoPannetier Aug 28, 2024
cc68505
Offspring survival scales with mutation rate, fix #54
TheoPannetier Aug 28, 2024
95d4763
number of emigrants scale with emig_0 mutation rate, fix #55
TheoPannetier Aug 28, 2024
edc34af
move testPopulation to its own file
TheoPannetier Aug 28, 2024
c497680
traitsFile is indicated in ControlFile instead of GeneticsFile
TheoPannetier Aug 29, 2024
b394cd1
a large populations confroms to hardy-weinberg expectations, fix #57
TheoPannetier Aug 30, 2024
3409068
haploid fst matches equivalent diploid fst, fix #75
TheoPannetier Sep 2, 2024
43da58f
weir and cockerham, weir & hill converge, fix #73
TheoPannetier Sep 2, 2024
6eb36c0
Weir & Cockerham > Weir&Hill if heterozygotes present
TheoPannetier Sep 2, 2024
739beeb
population-specific estimates average to weri & hill, fix #76
TheoPannetier Sep 2, 2024
f76c10e
nb of offspring dying matches HW expectations, fix #56
TheoPannetier Sep 2, 2024
b306fb1
higher tolerance
TheoPannetier Sep 2, 2024
04484af
merge rscore tests
TheoPannetier Sep 2, 2024
1cfb768
reorganise neutral genetics output
TheoPannetier Sep 2, 2024
62a7d5c
rm unused function
TheoPannetier Sep 2, 2024
e6c977f
doc update
TheoPannetier Sep 3, 2024
9fabc91
per locus fst are computed separately, fix #72
TheoPannetier Sep 3, 2024
b29bee6
Merge remote-tracking branch 'origin/new_genetics' into transloc_new_…
JetteReeg Sep 4, 2024
1317d2f
bugfix for github check renamed trfrRules to transferRules
JetteReeg Sep 4, 2024
4ec1690
added unit_tests in CMakeLists.txt
JetteReeg Sep 4, 2024
52cf90b
bring last changes from RScore to batch
TheoPannetier Sep 4, 2024
3dcd269
fix list reading
TheoPannetier Sep 4, 2024
1710790
fix patch headers for perLocusNeutralGenetics
TheoPannetier Sep 4, 2024
f431f71
fix output for only weir&hill case
TheoPannetier Sep 5, 2024
505a3ad
scrap empty initialise
TheoPannetier Sep 5, 2024
5627cd3
fix issue if init max is larger than mutation max
TheoPannetier Sep 5, 2024
3e9ee12
dodge infinite loop is mutation max is zero
TheoPannetier Sep 5, 2024
adf77af
add a bit more info if total extinction happens
TheoPannetier Sep 5, 2024
bdab3ff
why force setting move process to true??
TheoPannetier Sep 6, 2024
9035771
only set goal bias if enabled
TheoPannetier Sep 6, 2024
6312d4a
unnecessary arrays
TheoPannetier Sep 10, 2024
fe428f1
trying out smart pointers
TheoPannetier Sep 10, 2024
807eff0
replace RSDEBUG with standard NDEBUG
TheoPannetier Sep 10, 2024
05e8a42
fix missed renaming in release mode
TheoPannetier Sep 10, 2024
390765d
rm last mentions of RSDEBUG
TheoPannetier Sep 10, 2024
d7306c0
don't output gene values if genetics disabled
TheoPannetier Sep 11, 2024
5b60607
are these macro conditions necessary?
TheoPannetier Sep 11, 2024
6305931
drop RSWIN64, except inside RCPP
TheoPannetier Sep 11, 2024
209ad5e
wrong default value
TheoPannetier Sep 12, 2024
3e2e6e2
Merge pull request #72 from RangeShifter/release
TheoPannetier Sep 18, 2024
84fa7c6
fix possible division by zero
TheoPannetier Sep 19, 2024
64177e2
fix misleading variable names
TheoPannetier Sep 23, 2024
e50907c
output the right number of sexes for genetic load
TheoPannetier Sep 23, 2024
0742a3b
why
TheoPannetier Sep 25, 2024
f72765a
if default repro is asexual then propmales should be zero
TheoPannetier Sep 25, 2024
affc4da
merge batch and R versions of RSrandom
TheoPannetier Sep 26, 2024
849c78f
seed goes in parameter output
TheoPannetier Sep 26, 2024
71ca3a6
cleaning up
TheoPannetier Sep 26, 2024
f41a521
Merge branch 'new_genetics' into multispecies
TheoPannetier Sep 26, 2024
17f9281
by DEBUGLOG
TheoPannetier Sep 26, 2024
bc7ab3b
pass some params as species args (w defaults) to de-clutter main
TheoPannetier Sep 26, 2024
cd4d91f
rm empty filestreams
TheoPannetier Sep 27, 2024
bd59315
more concise main
TheoPannetier Sep 27, 2024
dce4836
check dir hidden from main
TheoPannetier Sep 27, 2024
f1f6d98
set batchnum out of main
TheoPannetier Sep 27, 2024
97f09b2
clean readParameters
TheoPannetier Sep 27, 2024
df1233e
default arg to let rscore run
TheoPannetier Sep 29, 2024
5da938b
only clear if closing file
TheoPannetier Oct 3, 2024
43727fb
resolve merge conflict
TheoPannetier Oct 3, 2024
cfd8f86
Updated variable names, which changed in new_genetics but haven't bee…
JetteReeg Oct 8, 2024
902f089
drop useless allele ID to save memory
TheoPannetier Oct 8, 2024
73a674b
allow negative values for settlement and emigration alphas
TheoPannetier Oct 18, 2024
03681a8
small cleanup
TheoPannetier Oct 18, 2024
0c450bc
expression should be half both allele if all dom coeffs are 0
TheoPannetier Oct 23, 2024
3c63422
Merge remote-tracking branch 'origin/new_genetics' into transloc_new_…
JetteReeg Oct 24, 2024
70ec1f6
fixed compiling bug in Management.h
JetteReeg Oct 24, 2024
7509111
fixed bug due to merging in Model.cpp
JetteReeg Oct 24, 2024
3b81ba1
fix scaled sd parameter not being passed from parent to offspring
TheoPannetier Oct 24, 2024
02adc82
bit of cleaning of survival
TheoPannetier Nov 4, 2024
e31c278
Merge remote-tracking branch 'origin/new_genetics' into transloc_new_…
JetteReeg Nov 14, 2024
e5a314b
For now only commented out code for file reads that are not necessary…
JetteReeg Nov 14, 2024
6d08f65
changed gNameCostfile to name_costfile
JetteReeg Nov 15, 2024
139387b
initialise genetic load with non-zero sel + dom coeffs #75
TheoPannetier Nov 19, 2024
edf9cf8
oops bugs in #75
TheoPannetier Nov 20, 2024
e2834e7
update tests to non-zero initial dominance coeffs
TheoPannetier Nov 20, 2024
52becba
improve readability of readDynLand
TheoPannetier Jan 30, 2025
187d9bd
drop unused map and views features
TheoPannetier Feb 4, 2025
3c94049
integrated spatial_demography branch
JetteReeg Feb 12, 2025
f93b1b2
Merge remote-tracking branch 'origin/new_genetics' into transloc_new_…
JetteReeg Mar 18, 2025
b62d941
"Error" should be printed only once
TheoPannetier Mar 18, 2025
cbda46d
Merge commit 'e2834e771621f6fc86b3c9ceb22f150ad40e01aa' into new_gene…
TheoPannetier Mar 18, 2025
b45c3c7
Merge branch 'new_genetics' of https://github.com/RangeShifter/RScore…
TheoPannetier Mar 18, 2025
7386236
fix incorrect dominance distribution value in genetic load tests
TheoPannetier Mar 18, 2025
a83a011
merge with SMS_bugfix
TheoPannetier Mar 18, 2025
4f8dc87
Merge branch 'new_genetics' into transloc_new_genetics_spatial_demog_…
JetteReeg Mar 19, 2025
ef5cd1f
Fixing compilation errors for R package
JetteReeg Mar 20, 2025
47e06af
added RS_RCPP macro for R specific landscape inputs
JetteReeg Apr 8, 2025
ced9044
compared to RangeShifter_batch/new_genetics; now in line
JetteReeg Apr 8, 2025
365d736
rm duplicated batch name
TheoPannetier Apr 22, 2025
b0df20d
refactor trait summaries
TheoPannetier Apr 25, 2025
3b010f7
settlement and genetic load per cell trait refactor
TheoPannetier Apr 25, 2025
ea64bb5
refactor transfer
TheoPannetier Apr 25, 2025
5f014ac
initial individuals suffer genetic load
TheoPannetier Apr 28, 2025
96a47b2
Merge commit '7386236efd7e2ac31ef0da1f5b1ecda7274347ff' into new_gene…
TheoPannetier Apr 28, 2025
d6af7fa
Merge branch 'new_genetics' of https://github.com/RangeShifter/RScore…
TheoPannetier Apr 28, 2025
d5cf8c0
restore accidentally removed genetic load ofr asexual species. thanks…
TheoPannetier Apr 28, 2025
0544fc1
individuals initialised from files also suffer genetic load
TheoPannetier Apr 28, 2025
34b3414
can initialise only a subset of positions
TheoPannetier Apr 29, 2025
e816843
initial individuals do not suffer genetic load
TheoPannetier Apr 29, 2025
b7f2d60
added debug output for translocations
JetteReeg May 7, 2025
fa61fa6
Merge branch 'new_genetics' into transloc_new_genetics_spatial_demog_…
JetteReeg May 28, 2025
d8e5256
patchnums not used anywhere so dropped them
TheoPannetier Jun 12, 2025
e0e40bc
ensure patch heterogeneity is written in the correct order
TheoPannetier Jun 12, 2025
dc2d350
cleanup readLandscape
TheoPannetier Jun 19, 2025
114c909
bug in calculation of Ho: heterogeneity shouldn't be an integer
TheoPannetier Jul 17, 2025
c142585
merge conflict develop - new_genetics first attempt
TheoPannetier Jul 21, 2025
f350ce7
fixing git merge mistakes
TheoPannetier Jul 22, 2025
091ebe4
resolving more merge mistakes
TheoPannetier Jul 22, 2025
5f25433
solved linker issues raised by develop merge
TheoPannetier Jul 22, 2025
57c20b8
merge conflict
TheoPannetier Jul 23, 2025
5aea418
Integrated option for file inputs for spatial demographic scaling
JetteReeg Jul 25, 2025
310d2c6
Merge remote-tracking branch 'origin/new_genetics' into transloc_new_…
JetteReeg Sep 12, 2025
8f40ab4
BUGFIX in moveStep:
JetteReeg Sep 12, 2025
4c70c77
Unit_test:
JetteReeg Sep 15, 2025
a7cf75e
updated Individual() constructor in unit_tests/testIndividual.cpp
JetteReeg Sep 15, 2025
fc73cc5
fix argument errors in unit tests
TheoPannetier Sep 17, 2025
0b9b20e
bugfix missing increment of total steps
TheoPannetier Sep 18, 2025
f01ac87
updated unit tests according to RScore/new_genetics
JetteReeg Sep 23, 2025
f19dbdd
adapted unit tests
JetteReeg Sep 23, 2025
371e891
fix test by shuffling individuals
TheoPannetier Sep 26, 2025
e120416
shuffle individuals before reproduction
TheoPannetier Sep 26, 2025
cd4b984
Merge branch 'new_genetics' into transloc_new_genetics_spatial_demog_…
JetteReeg Nov 13, 2025
d256e68
reverted one change to see if unit tests are now successful
JetteReeg Nov 13, 2025
81212f0
Manually merged changes from new_genetics
JetteReeg Nov 14, 2025
9516aa1
fixing minor bugs for RCPP flag
JetteReeg Nov 17, 2025
8c990d2
bugfix for dynamic landscapes:
JetteReeg Nov 21, 2025
c142584
Minor Updates:
JetteReeg Nov 27, 2025
0904483
Merge branch 'transloc_new_genetics_spatial_demog_merge' of https://g…
JetteReeg Nov 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ build-Release/
*.workspace
*.mk
*.tags
/build/

# Hidden source
/RangeShiftR/src/.*
Expand Down
13 changes: 13 additions & 0 deletions Allele.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#ifndef ALLELEH
#define ALLELEH

class Allele {
const float value;
const float dominance;
public:
Allele(float alleleValue, float alleleDominance) : value(alleleValue), dominance(alleleDominance) { }
~Allele() {}
float getAlleleValue() const { return value; };
float getDominanceCoef() const { return dominance; };
};
#endif
20 changes: 9 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@
if(NOT batchmode) # that is, RScore as a standalone
cmake_minimum_required(VERSION 3.10)
# set the project name and version
project(RScore VERSION 2.1.0)
project(RScore VERSION 3.0.0)
# specify the C++ standard
set(CMAKE_CXX_STANDARD 17)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)
add_executable(RScore Main.cpp Species.cpp Cell.cpp Community.cpp FractalGenerator.cpp Genome.cpp Individual.cpp Landscape.cpp Model.cpp Parameters.cpp Patch.cpp Population.cpp RandomCheck.cpp RSrandom.cpp SubCommunity.cpp Utils.cpp)

add_executable(RScore Main.cpp Species.cpp Cell.cpp Community.cpp FractalGenerator.cpp GeneticFitnessTrait.cpp Individual.cpp Landscape.cpp Management.cpp Model.cpp NeutralStatsManager.cpp Parameters.cpp Patch.cpp Population.cpp DispersalTrait.cpp RSrandom.cpp NeutralTrait.cpp SpeciesTrait.cpp SubCommunity.cpp Utils.cpp "unit_tests/testIndividual.cpp" "unit_tests/testNeutralStats.cpp" "unit_tests/testPopulation.cpp")
# turn on unit tests
add_compile_definitions("UNIT_TESTS")
else() # that is, RScore compiled as library within RangeShifter_batch
add_library(RScore Species.cpp Cell.cpp Community.cpp FractalGenerator.cpp Genome.cpp Individual.cpp Landscape.cpp Model.cpp Parameters.cpp Patch.cpp Population.cpp RandomCheck.cpp RSrandom.cpp SubCommunity.cpp Utils.cpp)

add_library(RScore Species.cpp Cell.cpp Community.cpp FractalGenerator.cpp GeneticFitnessTrait.cpp Individual.cpp Landscape.cpp Management.cpp Model.cpp NeutralStatsManager.cpp Parameters.cpp Patch.cpp Population.cpp DispersalTrait.cpp RSrandom.cpp NeutralTrait.cpp SpeciesTrait.cpp SubCommunity.cpp Utils.cpp)
endif()

if(OMP)
Expand All @@ -19,18 +24,11 @@ if(OMP)
endif()
endif()

# pass config definitions to compiler
target_compile_definitions(RScore PRIVATE RSWIN64)

# enable LINUX_CLUSTER macro on Linux + macOS
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "Darwin")
add_compile_definitions("LINUX_CLUSTER")
endif()

# Debug Mode by default, unless "release" is passed
if(NOT DEFINED release)
add_compile_definitions(RSDEBUG)
endif()

if(NOT batchmode)
target_include_directories(RScore PUBLIC "${PROJECT_BINARY_DIR}")
Expand Down
18 changes: 14 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# The RangeShifter platform - An eco-evolutionary modelling framework
# The RangeShifter platform - An eco-evolutionary modelling framework

## How to contribute

Expand All @@ -17,7 +17,7 @@ RangeShifter is distributed with three user interfaces, each living in their own

All three share the same source code for the core simulation (i.e., the actual model), which lives in this repo (RScore). Each of the interfaces keeps a copy of this core code in a subfolder called RScore, kept in sync with the RScore repo via a git subtree (see Git subtree usage section).

If you wish to propose a change to one of the interfaces, please do so in the corresponding repo: [RangeShifter batch mode](https://github.com/RangeShifter/RangeShifter_batch_dev), [RangeShiftR package](https://github.com/RangeShifter/RangeShiftR-package-dev).
⚠ If you wish to propose a change to one of the interfaces, please do so in the corresponding repo: [RangeShifter batch mode](https://github.com/RangeShifter/RangeShifter_batch_dev), [RangeShiftR package](https://github.com/RangeShifter/RangeShiftR-package-dev).

*The RangeShifter GUI is currently being rewritten, and is not open source yet.

Expand All @@ -40,10 +40,13 @@ Anyone who whishes to make changes to RangeShifter's code, including regular dev

## Branching policy

<<<<<<<< HEAD:src/RScore/CONTRIBUTING.md
![](branches.png)

*Check out the [Git cheatsheet](https://github.com/RangeShifter/RScore/blob/main/git_cheatsheet.md) for a reminder on the main git commands*

========
>>>>>>>> develop:CONTRIBUTING.md
This policy applies to RScore and all three RangeShifter interfaces.
RangeShifter uses the following branching structure:

Expand All @@ -61,12 +64,17 @@ In the meantime, we encourage contributors to work in small and frequent commits

Any changes regarding the RangeShifter core code should be done in this repository and can afterwards be synced with all interfaces using the git subtree feature (see [Git subtree](https://github.com/RangeShifter/RScore/tree/main?tab=readme-ov-file#usage-git-subtree) section in the README).


#### Bugs

To report a bug, please [open an issue](https://github.com/RangeShifter/RangeShiftR-package-dev/issues/new), using the Bug Report template.
Please do check if a related issue has already open on one of the other interfaces ([here](https://github.com/RangeShifter/RangeShifter_batch-dev/issues) for the batch interface or [here](https://github.com/RangeShifter/RangeShiftR-package-dev) for the R package interface).
To report a bug, please [open an issue](https://github.com/RangeShifter/RangeShiftR-package/issues/new), using the Bug Report template.
Please do check if a related issue has already open on one of the other interfaces ([here](https://github.com/RangeShifter/RangeShifter_batch/issues) for the batch interface or [here](https://github.com/RangeShifter/RangeShiftR-package) for the R package interface).

To propose a bug fix (thank you!!), please create and work on your own branch or fork, from either `main` or `develop` (preferred), and open a pull request when your fix is ready to be merged into the original branch.

As a prerequisite for merging, please ensure that your version passes status check (that is, RScore can still build, and all unit tests are still satisfied).
This can be seen in the Actions panel for every commit and at the bottom of the pull request.

Maintainers will review the pull request, possibly request changes, and eventually integrate the bug fix into RScore, and update the subtrees to bring the fix to all interfaces.

#### New features
Expand All @@ -79,3 +87,5 @@ Please get in touch with the RangeShifter development team (rangeshiftr@uni-pots
Alternatively, proceed as with the bug fix above: create your own branch or fork _from `develop`_ and work from there, and submit a pull request when your new features are ready to join the core code.
We recommend that you update your branch regularly to new changes on `develop` (using `git merge develop`) to reduce the risk of merge conflicts or your version getting out-of-touch in the late stages of development.
We also recommend that you work in small commits, as this makes the code easier to debug, and makes it easier for maintainers to understand your contributions when reviewing a pull request.

*Do we welcome independent contributions?
Loading