Skip to content

Commit 6fe4f2d

Browse files
authored
Merge pull request #6526 from Djneu/fastscape-fix-duplicates
Merge duplicate update functions in fastscape-fortran
2 parents 058de1a + 32ef23f commit 6fe4f2d

File tree

2 files changed

+8
-18
lines changed

2 files changed

+8
-18
lines changed

include/aspect/mesh_deformation/fastscape.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,6 @@ namespace aspect
117117
*/
118118
void load (const std::map<std::string, std::string> &status_strings) override;
119119

120-
/**
121-
* Update time-dependent input parameters for the FastScape plugin.
122-
*/
123-
void update() override;
124-
125-
126120
private:
127121
/**
128122
* Function used to set the FastScape ghost nodes. FastScape boundaries are

source/mesh_deformation/fastscape.cc

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,6 +1625,14 @@ namespace aspect
16251625
const double scaled_time = this->convert_output_to_years() ? time / year_in_seconds : time;
16261626
kf_distribution_function.set_time(scaled_time);
16271627
}
1628+
1629+
if (use_sea_level_function)
1630+
{
1631+
if (this->convert_output_to_years())
1632+
sea_level_function.set_time(this->get_time() / year_in_seconds);
1633+
else
1634+
sea_level_function.set_time(this->get_time());
1635+
}
16281636
}
16291637

16301638

@@ -1636,18 +1644,6 @@ namespace aspect
16361644
return true;
16371645
}
16381646

1639-
template <int dim>
1640-
void
1641-
FastScape<dim>::update()
1642-
{
1643-
if (use_sea_level_function)
1644-
{
1645-
if (this->convert_output_to_years())
1646-
sea_level_function.set_time(this->get_time() / year_in_seconds);
1647-
else
1648-
sea_level_function.set_time(this->get_time());
1649-
}
1650-
}
16511647

16521648

16531649
template <int dim>

0 commit comments

Comments
 (0)