From 9b518aceb9b3d178fe38da1265f23ed4e48d79c6 Mon Sep 17 00:00:00 2001 From: m-pilia Date: Thu, 7 Dec 2017 21:29:14 +0100 Subject: [PATCH] Change type of UserOptions.numOfTimeSteps from `int` to `PetscInt` If PETSc is built with 64-bit indices, having `int` type instead of `PetscInt` can break the build. --- src/PetscAdLemMain.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PetscAdLemMain.cxx b/src/PetscAdLemMain.cxx index 3e15475..cb2d799 100644 --- a/src/PetscAdLemMain.cxx +++ b/src/PetscAdLemMain.cxx @@ -83,7 +83,7 @@ struct UserOptions { float relaxIcCoeff; //compressibility coefficient k for CSF region. int falxZeroVelDir; //Component of the velocity to be set to zero in the Falx sliding boundary condition. bool useTensorLambda, isMuConstant, invertFieldToWarp; - int numOfTimeSteps; + PetscInt numOfTimeSteps; std::string resultsPath; // Directory where all the results will be stored. std::string resultsFilenamesPrefix; // Prefix for all the filenames of the results to be stored in the resultsPath.