Skip to content

Commit 73dd9ab

Browse files
authored
Update runge_kutta.c
1 parent f2921b0 commit 73dd9ab

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/runge_kutta.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ void AdvanceSystemRK5 (real dt) {
121121

122122
int i, n;
123123
boolean *feelothers;
124+
boolean *flag_pres;
124125
real theta, rdot, r, new_r, omega, x, y;
125126
real dtheta, vx, vy, denom;
126127
real xc, yc, zc;
@@ -140,7 +141,9 @@ void AdvanceSystemRK5 (real dt) {
140141
}
141142

142143
feelothers = Sys->FeelOthers;
143-
RungeKutta (q0, dt, PlanetMasses, q1, n, feelothers);
144+
flag_pres = Sys->Flag_Pres;
145+
if (!flag_pres)
146+
RungeKutta (q0, dt, PlanetMasses, q1, n, feelothers);
144147

145148
for (i = 1-(PhysicalTime >= RELEASEDATE); i < Sys->nb; i++) {
146149
Sys->x[i] = q1[i];

0 commit comments

Comments
 (0)