Skip to content

Commit

Permalink
Make IcebergRemover::update_impl() virtual
Browse files Browse the repository at this point in the history
in preparation for the work on the FEM version.
  • Loading branch information
ckhroulev committed Feb 11, 2021
1 parent 2030075 commit 4242dac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/frontretreat/util/IcebergRemover.cc
Expand Up @@ -49,6 +49,12 @@ IcebergRemover::~IcebergRemover() {
void IcebergRemover::update(const IceModelVec2Int &bc_mask,
IceModelVec2CellType &mask,
IceModelVec2S &ice_thickness) {
update_impl(bc_mask, mask, ice_thickness);
}

void IcebergRemover::update_impl(const IceModelVec2Int &bc_mask,
IceModelVec2CellType &mask,
IceModelVec2S &ice_thickness) {
const int
mask_grounded_ice = 1,
mask_floating_ice = 2;
Expand Down
7 changes: 6 additions & 1 deletion src/frontretreat/util/IcebergRemover.hh
@@ -1,4 +1,4 @@
/* Copyright (C) 2013, 2014, 2015, 2016, 2017, 2018, 2020 PISM Authors
/* Copyright (C) 2013, 2014, 2015, 2016, 2017, 2018, 2020, 2021 PISM Authors
*
* This file is part of PISM.
*
Expand Down Expand Up @@ -56,6 +56,11 @@ public:
IceModelVec2CellType &pism_mask,
IceModelVec2S &ice_thickness);
protected:
virtual void update_impl(const IceModelVec2Int &bc_mask,
IceModelVec2CellType &pism_mask,
IceModelVec2S &ice_thickness);


IceModelVec2S m_iceberg_mask;
std::shared_ptr<petsc::Vec> m_mask_p0;
};
Expand Down

0 comments on commit 4242dac

Please sign in to comment.