Skip to content

Commit

Permalink
convert water content from percent to a fraction
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldouglas92 committed Nov 12, 2024
1 parent e6eb1fc commit 8a2b88a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ namespace WorldBuilder
double partition_coefficient = calculate_water_content(lithostatic_pressure,
slab_temperature);

partition_coefficient = std::min(max_water_content, partition_coefficient);
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 @@ -172,7 +172,7 @@ namespace WorldBuilder
double partition_coefficient = calculate_water_content(lithostatic_pressure,
slab_temperature);

partition_coefficient = std::min(max_water_content, partition_coefficient);
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 8a2b88a

Please sign in to comment.