Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dispersal model removed if dispersal rate = 0 at first generation #22

Open
frederic-michaud opened this issue Jun 24, 2019 · 2 comments

Comments

@frederic-michaud
Copy link
Collaborator

frederic-michaud commented Jun 24, 2019

If the dispersal rate is set to 0 at the first generation (but we want to increase it in the future), no dispertion seems to happen

folder	 	fitness_landscape_various_patch/logo_fr	 	
generations	 	61	 	
patch_number	 	12100	 	
patch_capacity	 	100	 	
quanti_loci	 	100	 	
quanti_all	 	2	 	
quanti_selection_model	 	3	 	
quanti_save_phenotype	 	1	 	
quanti_allelic_file	 	allelicFile.txt	 	
dispersal_model	 	3	 	
dispersal_border_model	 	1	 	
dispersal_lattice_dims	 	{121 100}	 	
dispersal_rate	 	(1 0, 20 0.01,40 0.1, 60 0.5 )	 	
quanti_fitness_landscape	 	$landscape.txt	 	
quanti_phenotype_landscape 	 	$phenotype.txt	 	
@frederic-michaud
Copy link
Collaborator Author

@sneuensc , do you know if this line is just an optimisation trick that can be removed?

migration_func_ptr = &LCE_Disperse::migrate_zeroMigration;

@frederic-michaud
Copy link
Collaborator Author

This is actually working, it's only the log file which doesn't show the correct behaviour. Thanks @sneuensc for the tip.
I still leave it open since the log file should be better, but this would require more work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant