Skip to content

Commit

Permalink
Removed dTime from argument list to WriteOutput.
Browse files Browse the repository at this point in the history
  • Loading branch information
RoryBarnes committed Feb 2, 2024
1 parent 057f04a commit 3c3be01
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
9 changes: 3 additions & 6 deletions src/evolve.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,8 +632,7 @@ void Evolve(BODY *body, CONTROL *control, FILES *files, MODULE *module,
}

/* Write out initial conditions */
WriteOutput(body, control, files, output, system, update, fnWrite,
control->Evolve.dTime);
WriteOutput(body, control, files, output, system, update, fnWrite);

/* If Runge-Kutta need to copy actual update to that in
control->Evolve. This transfer all the meta-data about the
Expand Down Expand Up @@ -670,8 +669,7 @@ void Evolve(BODY *body, CONTROL *control, FILES *files, MODULE *module,
/* Halt? */
if (fbCheckHalt(body, control, update, fnUpdate)) {
fdGetUpdateInfo(body, control, system, update, fnUpdate);
WriteOutput(body, control, files, output, system, update, fnWrite,
control->Evolve.dTime);
WriteOutput(body, control, files, output, system, update, fnWrite);
return;
}

Expand All @@ -685,8 +683,7 @@ void Evolve(BODY *body, CONTROL *control, FILES *files, MODULE *module,
/* Time for Output? */
if (control->Evolve.dTime >= control->Io.dNextOutput) {
control->Evolve.nSteps += nSteps;
WriteOutput(body, control, files, output, system, update, fnWrite,
control->Evolve.dTime);
WriteOutput(body, control, files, output, system, update, fnWrite);
// Timesteps are synchronized with the output time, so this statement is
// sufficient
control->Io.dNextOutput += control->Io.dOutputTime;
Expand Down
3 changes: 1 addition & 2 deletions src/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -2213,8 +2213,7 @@ void WriteLog(BODY *body, CONTROL *control, FILES *files, MODULE *module,
}

void WriteOutput(BODY *body, CONTROL *control, FILES *files, OUTPUT *output,
SYSTEM *system, UPDATE *update, fnWriteOutput *fnWrite,
double dTime) {
SYSTEM *system, UPDATE *update, fnWriteOutput *fnWrite) {
int iBody, iCol, iOut, iSubOut, iExtra = 0, iGrid, iLat, jBody, j;
double dCol[NUMOPT], *dTmp, dGrid[NUMOPT];
FILE *fp;
Expand Down
2 changes: 1 addition & 1 deletion src/output.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void WriteLogEntry(BODY *, CONTROL *, OUTPUT *, SYSTEM *, UPDATE *,

void InitializeOutputFunctions(MODULE *, OUTPUT *, int);
void WriteOutput(BODY *, CONTROL *, FILES *, OUTPUT *, SYSTEM *, UPDATE *,
fnWriteOutput *, double);
fnWriteOutput *);
void WriteLog(BODY *, CONTROL *, FILES *, MODULE *, OPTIONS *, OUTPUT *,
SYSTEM *, UPDATE *, fnUpdateVariable ***, fnWriteOutput *, int);
void InitializeOutput(FILES*,OUTPUT *, fnWriteOutput *);
Expand Down

0 comments on commit 3c3be01

Please sign in to comment.