Skip to content

Commit

Permalink
Merge pull request #304 from VirtualPlanetaryLaboratory/download-arti…
Browse files Browse the repository at this point in the history
…fact

Switched sanitizer to run on macOS-13. This means it does NOT check f…
  • Loading branch information
RoryBarnes authored Sep 5, 2024
2 parents af9ea6a + d0bda7b commit 9f1d491
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sanitizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:

jobs:
sanitizer:
name: Run address-sanitizer on Ubuntu
runs-on: ubuntu-latest
name: Run address-sanitizer on macOS
runs-on: macos-13
strategy:
fail-fast: false

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
from setuptools.command.develop import develop

# Read current code version
VersionPath = os.path.join(os.path.abspath("."), "VERSION")
VersionPath = os.path.join(os.path.abspath(os.path.dirname(__file__)), "VERSION")
print(VersionPath)
VERSION = open(VersionPath, "r").read().split("\n")[0].strip()


Expand Down
6 changes: 2 additions & 4 deletions src/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -2041,6 +2041,8 @@ void LogOutputOrder(BODY *body, CONTROL *control, FILES *files, OUTPUT *output,
}
fprintf(fp, "\n");
free(cCol);
free(cUnit);
free(cTmp);
}

void LogGridOutput(BODY *body, CONTROL *control, FILES *files, OUTPUT *output,
Expand Down Expand Up @@ -2174,7 +2176,6 @@ void LogBody(BODY *body, CONTROL *control, FILES *files, MODULE *module,
void WriteLog(BODY *body, CONTROL *control, FILES *files, MODULE *module,
OPTIONS *options, OUTPUT *output, SYSTEM *system, UPDATE *update,
fnUpdateVariable ***fnUpdate, fnWriteOutput fnWrite[], int iEnd) {
char *cTime=NULL;
FILE *fp;
double dTotTime;

Expand All @@ -2186,13 +2187,10 @@ void WriteLog(BODY *body, CONTROL *control, FILES *files, MODULE *module,
double dDt = fdGetTimeStep(body, control, system, update, fnUpdate);

if (iEnd == 0) {
fvFormattedString(&cTime, "Input");
fp = fopen(files->cLog, "w");
} else if (iEnd == 1) {
fvFormattedString(&cTime, "Final");
fp = fopen(files->cLog, "a");
} else if (iEnd == -1) {
fvFormattedString(&cTime, "Initial");
fp = fopen(files->cLog, "w");
} else {
fprintf(stderr, "ERROR: Unknown cTime in output.c:WriteLog.\n");
Expand Down

0 comments on commit 9f1d491

Please sign in to comment.