diff --git a/applications/test/instant/Test-instant.C b/applications/test/instant/Test-instant.C index f5d38b1ad7..4b6af1e121 100644 --- a/applications/test/instant/Test-instant.C +++ b/applications/test/instant/Test-instant.C @@ -5,7 +5,7 @@ \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- - Copyright (C) 2018 OpenCFD Ltd. + Copyright (C) 2018-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -30,11 +30,31 @@ Description #include "argList.H" #include "instant.H" +#include "Pair.H" #include "fileNameInstant.H" #include "DynamicList.H" using namespace Foam; +template +Ostream& printInstant(const UList& times, const label i) +{ + if (i >= 0 && i < times.size()) + { + Info<< " (" << times[i] << ")"; + } + return Info; +} + +template +Ostream& printInstant(const UList& times, const Pair