From 8b8e5b9492387a622eb28f0002529f312da3fc52 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Mon, 10 Jul 2017 12:23:52 +0100 Subject: [PATCH] functionObjects::residuals: Writes "N/A" for fields not solved Patch contributed by Bruno Santos Resolves bug-report https://bugs.openfoam.org/view.php?id=2608 --- .../utilities/residuals/residualsTemplates.C | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/functionObjects/utilities/residuals/residualsTemplates.C b/src/functionObjects/utilities/residuals/residualsTemplates.C index a221085d6..a1d0c42e8 100644 --- a/src/functionObjects/utilities/residuals/residualsTemplates.C +++ b/src/functionObjects/utilities/residuals/residualsTemplates.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2015-2016 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2015-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -87,6 +87,10 @@ void Foam::functionObjects::residuals::writeResidual(const word& fieldName) } } } + else + { + file() << token::TAB << "N/A"; + } } }