File tree Expand file tree Collapse file tree 2 files changed +8
-18
lines changed
include/aspect/mesh_deformation Expand file tree Collapse file tree 2 files changed +8
-18
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments