Skip to content

Commit 8a2b88a

Browse files
convert water content from percent to a fraction
1 parent e6eb1fc commit 8a2b88a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ namespace WorldBuilder
179179
double partition_coefficient = calculate_water_content(lithostatic_pressure,
180180
slab_temperature);
181181

182-
partition_coefficient = std::min(max_water_content, partition_coefficient);
182+
partition_coefficient = std::min(max_water_content, partition_coefficient) / 100;
183183

184184
for (unsigned int i = 0; i < compositions.size(); ++i)
185185
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ namespace WorldBuilder
172172
double partition_coefficient = calculate_water_content(lithostatic_pressure,
173173
slab_temperature);
174174

175-
partition_coefficient = std::min(max_water_content, partition_coefficient);
175+
partition_coefficient = std::min(max_water_content, partition_coefficient) / 100;
176176

177177
for (unsigned int i = 0; i < compositions.size(); ++i)
178178
{

0 commit comments

Comments
 (0)