Skip to content

REBOUNDx not correctly applying some forces with TRACE #833

Open
@tigerchenlu98

Description

@tigerchenlu98

@dtamayo and I were looking into this during the workshop. This is what happens if you run the Migration notebook example in REBOUNDx with TRACE:

Image

Part of what's happening here is at the point of disagreement, TRACE starts flagging the inner particle as undergoing pericenter approach. There's currently a bug in integrator.c where additional forces are not applied during pericenter flags. We can fix this issue by adding in a check for r->ri_trace.mode == 3 here.

if (r->additional_forces && (r->integrator != REB_INTEGRATOR_MERCURIUS || r->ri_mercurius.mode==0) && (r->integrator != REB_INTEGRATOR_TRACE || r->ri_trace.mode==0)){

Unfortunately, that's not the whole issue -- this makes things much better, but we still see disagreement.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions