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