Skip to content

Commit

Permalink
fix a typo, add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldouglas92 committed Nov 12, 2024
1 parent 8a2b88a commit d4c29b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/JOSS/1.0/paper.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ affiliations:
index: 2
- name: GEOMAR Helmholtz-Zentrum für Ozeanforschung, Kiel, Germany
index: 3
- name: Universiy of Florida, USA
- name: University of Florida, USA
index: 4
- name: Clemson University, USA
index: 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ namespace WorldBuilder
double partition_coefficient = calculate_water_content(lithostatic_pressure,
slab_temperature);

// The partition_coefficient is output as a percentage, but geodynamic modeling software
// typically deal with fractions, so we divide by 100 below
partition_coefficient = std::min(max_water_content, partition_coefficient) / 100;

for (unsigned int i = 0; i < compositions.size(); ++i)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ namespace WorldBuilder
const double slab_temperature = world->properties(position_in_cartesian_coordinates.get_array(), depth, {{{1,0,0}}})[0];
double partition_coefficient = calculate_water_content(lithostatic_pressure,
slab_temperature);


// The partition_coefficient is output as a percentage, but geodynamic modeling software
// typically deal with fractions, so we divide by 100 below
partition_coefficient = std::min(max_water_content, partition_coefficient) / 100;

for (unsigned int i = 0; i < compositions.size(); ++i)
Expand Down

0 comments on commit d4c29b7

Please sign in to comment.