Skip to content

Commit d4c29b7

Browse files
fix a typo, add comments
1 parent 8a2b88a commit d4c29b7

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

doc/JOSS/1.0/paper.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ affiliations:
4848
index: 2
4949
- name: GEOMAR Helmholtz-Zentrum für Ozeanforschung, Kiel, Germany
5050
index: 3
51-
- name: Universiy of Florida, USA
51+
- name: University of Florida, USA
5252
index: 4
5353
- name: Clemson University, USA
5454
index: 5

source/world_builder/features/oceanic_plate_models/composition/tian2019_water_content.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ namespace WorldBuilder
179179
double partition_coefficient = calculate_water_content(lithostatic_pressure,
180180
slab_temperature);
181181

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

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

source/world_builder/features/subducting_plate_models/composition/tian2019_water_content.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ namespace WorldBuilder
171171
const double slab_temperature = world->properties(position_in_cartesian_coordinates.get_array(), depth, {{{1,0,0}}})[0];
172172
double partition_coefficient = calculate_water_content(lithostatic_pressure,
173173
slab_temperature);
174-
174+
175+
// The partition_coefficient is output as a percentage, but geodynamic modeling software
176+
// typically deal with fractions, so we divide by 100 below
175177
partition_coefficient = std::min(max_water_content, partition_coefficient) / 100;
176178

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

0 commit comments

Comments
 (0)