mapFields: Corrected handling of userTime

Resolves bug-report https://bugs.openfoam.org/view.php?id=3786
This commit is contained in:
Henry Weller
2022-01-18 10:52:06 +00:00
parent c104aac1da
commit ded017b762
10 changed files with 35 additions and 29 deletions

View File

@ -29,13 +29,13 @@
sourceTimeIndex = Time::findClosestTimeIndex
(
sourceTimes,
runTimeTarget.time().value()
runTimeTarget.time().userTimeValue()
);
}
runTimeSource.setTime(sourceTimes[sourceTimeIndex], sourceTimeIndex);
Info<< "\nSource time: " << runTimeSource.value()
<< "\nTarget time: " << runTimeTarget.value()
Info<< "\nSource time: " << runTimeSource.userTimeName()
<< "\nTarget time: " << runTimeTarget.userTimeName()
<< endl;
}