Skip to content

Commit

Permalink
Merge pull request #300 from VirtualPlanetaryLaboratory/Strings
Browse files Browse the repository at this point in the history
Strings
  • Loading branch information
RoryBarnes authored Aug 16, 2024
2 parents 5fc4592 + f342f37 commit 39ccbac
Show file tree
Hide file tree
Showing 67 changed files with 4,854 additions and 4,768 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
if: steps.setup_python.outcome == 'success'
shell: bash -l {0}
run: |
sudo apt-get update
sudo apt-get install -y doxygen
sudo apt-get install -y doxygen-doc
python -m pip install -U pip
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
sudo apt-get install cm-super
sudo apt-get install texlive-fonts-recommended texlive-fonts-extra
sudo apt-get install dvipng
sudo apt-get update
- name: Set up Python
id: setup_python
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/memcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
if: steps.setup_python.outcome == 'success'
shell: bash -l {0}
run: |
sudo apt-get update
sudo apt-get install valgrind
- name: Run valgrind test
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/tests-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,19 @@ jobs:
if: steps.setup_python.outcome == 'success'
shell: bash -l {0}
run: |
sudo apt-get update
python -m pip install -U pip
python -m pip install -e .
pip install pytest pytest-cov
sudo apt install lcov
- name: Run tests and generate coverage
- name: Run tests
id: test
if: steps.install.outcome == 'success'
shell: bash -l {0}
run: make coverage
run: |
make opt
pytest --tb=short
- name: Check test ouptut created
id: check_test_file
Expand All @@ -51,6 +55,11 @@ jobs:
files: "/home/runner/work/vplanet/vplanet/junit/test-results.xml"
fail: true

- name: Generate coverage
id: coverage
if: steps.test.outcome == 'success' && steps.check_test_file.outcome == 'success'
run: make coverage

- name: Get unique id
uses: Tiryoh/gha-jobid-action@v1
id: jobs
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/tests-macos-intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ jobs:
- name: Run tests
if: steps.setup_python.outcome == 'success'
run: make test
run: |
make opt
pytest --tb=short
- name: Get unique id
uses: Tiryoh/gha-jobid-action@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests-macos-silicon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
if: steps.setup_python.outcome == 'success'
run: |
make opt
pytest
pytest --tb=short
- name: Get unique id
uses: Tiryoh/gha-jobid-action@v1
Expand Down
2 changes: 1 addition & 1 deletion examples/MagmOc_Earth/Earth.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Planet a parameters
sName Earth # Body's name
saModules magmoc, atmesc # Modules to apply, exact spelling required
saModules magmoc atmesc # Modules to apply, exact spelling required
sColor 13aed5

# Physical Properties
Expand Down
2 changes: 1 addition & 1 deletion examples/MagmOc_GJ1132b/GJ1132b.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Planet a parameters
sName GJ1132b # Body's name
saModules magmoc, atmesc # Modules to apply, exact spelling required
saModules magmoc atmesc # Modules to apply, exact spelling required
sColor 13aed5

# Physical Properties
Expand Down
2 changes: 1 addition & 1 deletion examples/MagmOc_Trappist1g/g.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Planet g parameters
sName g # Body's name
saModules magmoc, atmesc, radheat, eqtide # Modules to apply, exact spelling required
saModules magmoc atmesc radheat eqtide # Modules to apply, exact spelling required
sColor 13aed5

# Physical Properties
Expand Down
572 changes: 293 additions & 279 deletions src/atmesc.c

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions src/atmesc.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,29 +177,29 @@ void InitializeOutputFunctionAtmEsc(OUTPUT *, int, int);
void FinalizeOutputFunctionAtmEsc(OUTPUT *, int, int);

void WriteSurfaceWaterMass(BODY *, CONTROL *, OUTPUT *, SYSTEM *, UNITS *,
UPDATE *, int, double *, char[]);
UPDATE *, int, double *, char**);
void WriteOxygenMass(BODY *, CONTROL *, OUTPUT *, SYSTEM *, UNITS *, UPDATE *,
int, double *, char[]);
int, double *, char**);
void WriteOxygenMantleMass(BODY *, CONTROL *, OUTPUT *, SYSTEM *, UNITS *,
UPDATE *, int, double *, char[]);
UPDATE *, int, double *, char**);
void WriteEnvelopeMass(BODY *, CONTROL *, OUTPUT *, SYSTEM *, UNITS *, UPDATE *,
int, double *, char[]);
int, double *, char**);
void WriteRGLimit(BODY *, CONTROL *, OUTPUT *, SYSTEM *, UNITS *, UPDATE *, int,
double *, char[]);
double *, char**);
void WriteBondiRadius(BODY *, CONTROL *, OUTPUT *, SYSTEM *, UNITS *, UPDATE *,
int, double *, char[]);
int, double *, char**);
void WriteRocheRadius(BODY *, CONTROL *, OUTPUT *, SYSTEM *, UNITS *, UPDATE *,
int, double *, char[]);
int, double *, char**);
void WriteOxygenMixingRatio(BODY *, CONTROL *, OUTPUT *, SYSTEM *, UNITS *,
UPDATE *, int, double *, char[]);
UPDATE *, int, double *, char**);
void WriteOxygenEta(BODY *, CONTROL *, OUTPUT *, SYSTEM *, UNITS *, UPDATE *,
int, double *, char[]);
int, double *, char**);
void WriteAtmXAbsEffH2O(BODY *, CONTROL *, OUTPUT *, SYSTEM *, UNITS *,
UPDATE *, int, double *, char[]);
UPDATE *, int, double *, char**);
void WriteRRCriticalFlux(BODY *, CONTROL *, OUTPUT *, SYSTEM *, UNITS *,
UPDATE *, int, double *, char[]);
UPDATE *, int, double *, char**);
void WriteHEscapeRegime(BODY *, CONTROL *, OUTPUT *, SYSTEM *, UNITS *,
UPDATE *, int, double *, char[]);
UPDATE *, int, double *, char**);

/* Logging Functions */
void LogOptionsAtmEsc(CONTROL *, FILE *);
Expand Down
Loading

0 comments on commit 39ccbac

Please sign in to comment.