From 6798c61047570b517009d7ac84598963097f1b7c Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Wed, 13 Nov 2019 18:54:10 +0100 Subject: [PATCH] ENH: add boolIOField to allow registering --- applications/test/IOField/Test-IOField.C | 127 ++++++++++++------ src/OpenFOAM/Make/files | 1 + .../fields/Fields/boolField/boolIOField.C | 37 +++++ .../fields/Fields/boolField/boolIOField.H | 51 +++++++ 4 files changed, 175 insertions(+), 41 deletions(-) create mode 100644 src/OpenFOAM/fields/Fields/boolField/boolIOField.C create mode 100644 src/OpenFOAM/fields/Fields/boolField/boolIOField.H diff --git a/applications/test/IOField/Test-IOField.C b/applications/test/IOField/Test-IOField.C index 473a68d2fe..6af6d81179 100644 --- a/applications/test/IOField/Test-IOField.C +++ b/applications/test/IOField/Test-IOField.C @@ -6,6 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2017 OpenFOAM Foundation + Copyright (C) 2019 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -31,8 +32,9 @@ Description \*---------------------------------------------------------------------------*/ -#include "IOField.H" #include "argList.H" +#include "IOField.H" +#include "primitiveFields.H" #include "polyMesh.H" #include "Time.H" @@ -40,23 +42,38 @@ using namespace Foam; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -void write(const IOobject& io, const label sz) +template +void doWrite(const IOobject& io, const label sz) { - IOField