From da1afe816a52e5250edc9518fbc2ed0223d76b77 Mon Sep 17 00:00:00 2001 From: Kutalmis Bercin Date: Tue, 20 Jul 2021 13:37:29 +0100 Subject: [PATCH] ENH: yPlus: add a warning to remind users about solver's postProcess option (#1846) --- src/functionObjects/field/yPlus/yPlus.C | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/functionObjects/field/yPlus/yPlus.C b/src/functionObjects/field/yPlus/yPlus.C index 32a0e3f951..99895924eb 100644 --- a/src/functionObjects/field/yPlus/yPlus.C +++ b/src/functionObjects/field/yPlus/yPlus.C @@ -175,6 +175,14 @@ bool Foam::functionObjects::yPlus::execute() WarningInFunction << "Unable to find turbulence model in the " << "database: yPlus will not be calculated" << endl; + + if (postProcess) + { + WarningInFunction + << "Please try to use the solver option -postProcess, e.g.:" + << " -postProcess -func yPlus" << endl; + } + return false; }