From 1c941055744271a3f34f355e714406be35821214 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Mon, 11 Nov 2019 08:54:05 +0100 Subject: [PATCH 1/9] BUG: surfaceFieldValue interpolate on sampled surface fails (fixes #1488) --- .../fieldValues/surfaceFieldValue/surfaceFieldValueTemplates.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functionObjects/field/fieldValues/surfaceFieldValue/surfaceFieldValueTemplates.C b/src/functionObjects/field/fieldValues/surfaceFieldValue/surfaceFieldValueTemplates.C index 452c144bd2..005eab7897 100644 --- a/src/functionObjects/field/fieldValues/surfaceFieldValue/surfaceFieldValueTemplates.C +++ b/src/functionObjects/field/fieldValues/surfaceFieldValue/surfaceFieldValueTemplates.C @@ -100,7 +100,7 @@ Foam::functionObjects::fieldValues::surfaceFieldValue::getFieldValues { const interpolationCellPoint interp(fld); - return sampledPtr_().sample(interp); + return sampledPtr_().interpolate(interp); } else { From 3768773eb8ce53030f2c4ea9a4a01e344f389db1 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Sun, 10 Nov 2019 11:24:07 +0100 Subject: [PATCH 2/9] COMP: add version information to wmake - wmake -version, --version option (alias for -show-api) for consistency with standard system tools --- wmake/wmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wmake/wmake b/wmake/wmake index 5dfed80bb8..da80a88016 100755 --- a/wmake/wmake +++ b/wmake/wmake @@ -88,6 +88,7 @@ options: -show-cxxflags Print C++ compiler flags -show-cflags-arch The C compiler arch flag (eg, -m64 etc) -show-cxxflags-arch The C++ compiler arch flag (eg, -m64 etc) + -version | --version Print the api value -h | -help Print the usage @@ -196,6 +197,11 @@ do update=true : ${all:=all} # implies 'all', unless previous set to 'queue' etc. ;; + -version | --version) + $make -f $WM_DIR/makefiles/info api + optShow=true + break; + ;; --) shift break From 148317ab68cda6d2d7c2264e80cb9d4e83538f7e Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Mon, 11 Nov 2019 09:08:27 +0100 Subject: [PATCH 3/9] CONFIG: bump patch level --- META-INFO/api-info | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/META-INFO/api-info b/META-INFO/api-info index cd75aebfe1..c2fe52a76e 100644 --- a/META-INFO/api-info +++ b/META-INFO/api-info @@ -1,2 +1,2 @@ api=1906 -patch=191103 +patch=191111 From b40d1d8e4f5ef08d0bf08ad3bea6799636b6de04 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Mon, 18 Nov 2019 16:59:51 +0100 Subject: [PATCH 4/9] BUG: decomposePar fails with csv table in binary (fixes #1498) --- .../primitives/functions/Function1/CSV/CSV.C | 37 ++++++++++--------- .../primitives/functions/Function1/CSV/CSV.H | 13 ++----- .../RAS/chokedNozzle/system/controlDict | 2 +- 3 files changed, 23 insertions(+), 29 deletions(-) diff --git a/src/OpenFOAM/primitives/functions/Function1/CSV/CSV.C b/src/OpenFOAM/primitives/functions/Function1/CSV/CSV.C index a936bb6e7c..76739c02a2 100644 --- a/src/OpenFOAM/primitives/functions/Function1/CSV/CSV.C +++ b/src/OpenFOAM/primitives/functions/Function1/CSV/CSV.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2017 OpenFOAM Foundation - Copyright (C) 2016-2017 OpenCFD Ltd. + Copyright (C) 2016-2019 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -28,7 +28,6 @@ License #include "CSV.H" #include "DynamicList.H" -//#include "IFstream.H" // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // @@ -36,7 +35,7 @@ template<> Foam::label Foam::Function1Types::CSV::readValue ( const List& splitted -) +) const { if (componentColumns_[0] >= splitted.size()) { @@ -54,7 +53,7 @@ template<> Foam::scalar Foam::Function1Types::CSV::readValue ( const List& splitted -) +) const { if (componentColumns_[0] >= splitted.size()) { @@ -69,7 +68,10 @@ Foam::scalar Foam::Function1Types::CSV::readValue template -Type Foam::Function1Types::CSV::readValue(const List& splitted) +Type Foam::Function1Types::CSV::readValue +( + const List& splitted +) const { Type result; @@ -94,7 +96,6 @@ template void Foam::Function1Types::CSV::read() { fileName expandedFile(fName_); - //IFstream is(expandedFile.expand()); autoPtr isPtr(fileHandler().NewIFstream(expandedFile.expand())); ISstream& is = isPtr(); @@ -214,17 +215,24 @@ Foam::Function1Types::CSV::CSV TableBase(entryName, dict), nHeaderLine_(dict.get