Skip to content

Commit

Permalink
Clean up: we no longer support PETSc < 3.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ckhroulev committed May 19, 2022
1 parent 318a6ae commit 953b379
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/util/Profiling.cc
@@ -1,4 +1,4 @@
/* Copyright (C) 2015, 2016, 2021 PISM Authors
/* Copyright (C) 2015, 2016, 2021, 2022 PISM Authors
*
* This file is part of PISM.
*
Expand Down Expand Up @@ -33,11 +33,7 @@ Profiling::Profiling() {

//! Enable PETSc logging.
void Profiling::start() const {
#if PETSC_VERSION_LE(3,6,3)
PetscErrorCode ierr = PetscLogBegin(); PISM_CHK(ierr, "PetscLogBegin");
#else
PetscErrorCode ierr = PetscLogAllBegin(); PISM_CHK(ierr, "PetscLogAllBegin");
#endif
}

//! Save detailed profiling data to a Python script.
Expand Down

0 comments on commit 953b379

Please sign in to comment.