Skip to content

Commit

Permalink
Fixed a few missed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rory Barnes committed Sep 13, 2024
1 parent f706ce9 commit d02a6d7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
Binary file modified examples/CosmicShoreline/CosmicShoreline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 9 additions & 9 deletions examples/CosmicShoreline/makeplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@
# Plot!
fig = plt.figure(figsize=(8.5, 6))

fxuv_earth = output.log.final.Earth.CumulativeFXUV
fxuv_earth = output.log.final.Earth.CumulativeXUVFlux

fxuv = []
fxuv.append(output.log.final.Mercury.CumulativeFXUV/fxuv_earth)
fxuv.append(output.log.final.Venus.CumulativeFXUV/fxuv_earth)
fxuv.append(output.log.final.Earth.CumulativeFXUV/fxuv_earth)
fxuv.append(output.log.final.Mars.CumulativeFXUV/fxuv_earth)
fxuv.append(output.log.final.Jupiter.CumulativeFXUV/fxuv_earth)
fxuv.append(output.log.final.Saturn.CumulativeFXUV/fxuv_earth)
fxuv.append(output.log.final.George.CumulativeFXUV/fxuv_earth)
fxuv.append(output.log.final.Neptune.CumulativeFXUV/fxuv_earth)
fxuv.append(output.log.final.Mercury.CumulativeXUVFlux/fxuv_earth)
fxuv.append(output.log.final.Venus.CumulativeXUVFlux/fxuv_earth)
fxuv.append(output.log.final.Earth.CumulativeXUVFlux/fxuv_earth)
fxuv.append(output.log.final.Mars.CumulativeXUVFlux/fxuv_earth)
fxuv.append(output.log.final.Jupiter.CumulativeXUVFlux/fxuv_earth)
fxuv.append(output.log.final.Saturn.CumulativeXUVFlux/fxuv_earth)
fxuv.append(output.log.final.George.CumulativeXUVFlux/fxuv_earth)
fxuv.append(output.log.final.Neptune.CumulativeXUVFlux/fxuv_earth)

escvel = []
escvel.append(output.log.final.Mercury.EscapeVelocity/1e3)
Expand Down
3 changes: 2 additions & 1 deletion src/evolve.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,6 @@ void Evolve(BODY *body, CONTROL *control, FILES *files, MODULE *module,

fvCumulative(body,control,system,dDt);


/* Write out initial conditions */
WriteOutput(body, control, files, output, system, update, fnWrite);

Expand Down Expand Up @@ -721,6 +720,8 @@ void Evolve(BODY *body, CONTROL *control, FILES *files, MODULE *module,
was prior to loop. */
PropertiesAuxiliary(body, control, system, update);

fvCumulative(body,control,system,dDt);

// If control->Evolve.bFirstStep hasn't been switched off by now, do so.
if (control->Evolve.bFirstStep) {
control->Evolve.bFirstStep = 0;
Expand Down

0 comments on commit d02a6d7

Please sign in to comment.