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

Add interface to AMUSE #10

Closed
wants to merge 61 commits into from
Closed

Add interface to AMUSE #10

wants to merge 61 commits into from

Conversation

rieder
Copy link
Contributor

@rieder rieder commented Jun 9, 2020

Changes to libphantom for the AMUSE interface (work in progress)

rieder added 30 commits March 26, 2019 17:23
- remove functions previously used for testing
- comment out function with conflicting name
- add AMUSE ifndef to prevent I/O when using AMUSE
- Add helper function to calculate dt (adapted from step)
- no units should be added, as all values will already be in code units
- can now delete particles
- detect high densities unless it's the first step in an evolve loop
[skip ci]
*: AMUSE defaults will override this.
[skip ci]
Regular particles (gas, dm, ...) will receive a positive ID, while ptmass particles (sinks) will receive a negative ID.
This ID is not used in Phantom, but only by AMUSE (or anything else that would use these subroutines)
[skip ci]
[skip ci]
@rieder rieder marked this pull request as draft June 9, 2020 11:26
@danieljprice
Copy link
Owner

I will try to run the full nightly build on this, so then we should be able to merge automatically

@rieder
Copy link
Contributor Author

rieder commented Jun 12, 2020 via email

rieder and others added 21 commits January 19, 2021 18:21
Set some different defaults and make sure defaults are set after initialising so they aren't overwritten
todo: make this changeable from AMUSE
# Conflicts:
#	src/main/eos.F90
#	src/utils/libphantom-evolve.F90
# Conflicts:
#	.github/workflows/benchmarks.yml
#	.github/workflows/build.yml
#	.github/workflows/mpi.yml
#	.github/workflows/release.yml
#	.github/workflows/test.yml
#	build/Makefile
# Conflicts:
#	src/utils/libphantom-evolve.F90
# Conflicts:
#	src/main/initial.F90
#	src/utils/libphantom-evolve.F90
@rieder
Copy link
Contributor Author

rieder commented Nov 22, 2023

@danieljprice another project and Covid got me "a bit" delayed merging upstream changes back into this branch (:, but I've done so now. I would still like to see if we can merge this back into the main branch in some form.
Could you let me know if any of the changes I've made are not acceptable for the main branch? Then I will see how I can modify these.

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

Successfully merging this pull request may close these issues.

2 participants