Commit da11d057 authored by Praetorius, Simon's avatar Praetorius, Simon

small corrections

parent df04dc93
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment