Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Null.cc
Go to the documentation of this file.
1/* Copyright (C) 2015, 2016, 2017, 2018, 2023, 2024 PISM Authors
2 *
3 * This file is part of PISM.
4 *
5 * PISM is free software; you can redistribute it and/or modify it under the
6 * terms of the GNU General Public License as published by the Free Software
7 * Foundation; either version 3 of the License, or (at your option) any later
8 * version.
9 *
10 * PISM is distributed in the hope that it will be useful, but WITHOUT ANY
11 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13 * details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with PISM; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#include "pism/earth/BedDef.hh"
21#include "pism/util/Grid.hh"
22#include "pism/util/MaxTimestep.hh"
23
24namespace pism {
25namespace bed {
26
27Null::Null(std::shared_ptr<const Grid> g)
28 : BedDef(g, "dummy (no-op)") {
29 // empty
30}
31
32void Null::init_impl(const InputOptions & /*opts*/, const array::Scalar & /*ice_thickness*/,
33 const array::Scalar & /*sea_level_elevation*/) {
34 m_uplift.set(0.0);
35}
36
37void Null::bootstrap_impl(const array::Scalar & /*bed_elevation*/,
38 const array::Scalar & /*bed_uplift*/,
39 const array::Scalar & /*ice_thickness*/,
40 const array::Scalar & /*sea_level_elevation*/) {
41 // empty
42}
43
44void Null::update_impl(const array::Scalar &/*load*/,
45 double /*t*/, double /*dt*/) {
46 // This model does not update bed topography
47}
48
50 return {};
51}
52
53} // end of namespace bed
54} // end of namespace pism
Combines the max. time step with the flag indicating if a restriction is active. Makes is possible to...
void set(double c)
Result: v[j] <- c for all j.
Definition Array.cc:629
array::Scalar m_uplift
bed uplift rate
Definition BedDef.hh:87
PISM bed deformation model (base class).
Definition BedDef.hh:37
Null(std::shared_ptr< const Grid > g)
Definition Null.cc:27
void bootstrap_impl(const array::Scalar &bed_elevation, const array::Scalar &bed_uplift, const array::Scalar &ice_thickness, const array::Scalar &sea_level_elevation)
Definition Null.cc:37
MaxTimestep max_timestep_impl(double t) const
Definition Null.cc:49
void init_impl(const InputOptions &opts, const array::Scalar &ice_thickness, const array::Scalar &sea_level_elevation)
Definition Null.cc:32
void update_impl(const array::Scalar &load, double t, double dt)
Definition Null.cc:44
static const double g
Definition exactTestP.cc:36