From da11d057fcd659a366a853026fb61e4a99a7590f Mon Sep 17 00:00:00 2001 From: Simon Praetorius <simon.praetorius@tu-dresden.de> Date: Tue, 10 Jul 2012 09:28:54 +0000 Subject: [PATCH] small corrections --- AMDiS/src/CouplingIterationInterface.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/AMDiS/src/CouplingIterationInterface.cc b/AMDiS/src/CouplingIterationInterface.cc index d241d26f..4ee302b6 100644 --- a/AMDiS/src/CouplingIterationInterface.cc +++ b/AMDiS/src/CouplingIterationInterface.cc @@ -43,7 +43,10 @@ namespace AMDiS { void CouplingIterationInterface::beginIteration(AdaptInfo *adaptInfo) { FUNCNAME("CouplingIterationInterface::beginIteration()"); MSG("\n"); - int nTimesteps = (adaptInfo->getNumberOfTimesteps() ? adaptInfo->getNumberOfTimesteps() : (adaptInfo->getEndTime()-adaptInfo->getStartTime())/adaptInfo->getTimestep()); + int nTimesteps = (adaptInfo->getNumberOfTimesteps() + ? adaptInfo->getNumberOfTimesteps() + : static_cast<int>((adaptInfo->getEndTime()-adaptInfo->getStartTime())/adaptInfo->getTimestep()) + ); MSG("begin of iteration number: %d/%d\n", adaptInfo->getTimestepNumber() + 1, nTimesteps); -- GitLab