Skip to content

Commit

Permalink
Change type of UserOptions.numOfTimeSteps from int to PetscInt
Browse files Browse the repository at this point in the history
If PETSc is built with 64-bit indices, having `int` type instead of
`PetscInt` can break the build.
  • Loading branch information
m-pilia committed Dec 7, 2017
1 parent 7e1ce47 commit 9b518ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PetscAdLemMain.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9b518ac

Please sign in to comment.