Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ckhroulev committed Aug 24, 2021
1 parent 16b7ec9 commit a35bd9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/util/VariableMetadata.cc
@@ -1,4 +1,4 @@
// Copyright (C) 2009--2020 Constantine Khroulev and Ed Bueler
// Copyright (C) 2009--2021 Constantine Khroulev and Ed Bueler
//
// This file is part of PISM.
//
Expand Down Expand Up @@ -140,8 +140,7 @@ SpatialVariableMetadata::SpatialVariableMetadata(units::System::Ptr system, cons
m_y("y", system),
m_z("z", system) {

std::vector<double> z(1, 0.0);
init_internal(name, z);
init_internal(name, {0.0});
}

void SpatialVariableMetadata::init_internal(const std::string &name,
Expand Down
2 changes: 1 addition & 1 deletion src/util/iceModelVec.hh
Expand Up @@ -60,7 +60,7 @@ struct BoxStencil {

class PetscAccessible {
public:
virtual ~PetscAccessible() {}
virtual ~PetscAccessible() = default;
virtual void begin_access() const = 0;
virtual void end_access() const = 0;
};
Expand Down

0 comments on commit a35bd9d

Please sign in to comment.