applications/test: Updated to compile

This commit is contained in:
Henry Weller
2018-06-20 14:09:53 +01:00
parent 4d09d6c6f5
commit d1c4c33ec0
2 changed files with 16 additions and 8 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2017-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -76,7 +76,10 @@ void writeAndRead
Pout<< "** Writing:" << writeType
<< " Reading:" << readType << endl;
autoPtr<fileOperation> writeHandler(fileOperation::New(writeType));
autoPtr<fileOperation> writeHandler
(
fileOperation::New(writeType, writeInfoHeader)
);
fileHandler(writeHandler);
// Delete
@ -84,10 +87,13 @@ void writeAndRead
fileHandler().rm(fileHandler().filePath(io.objectPath()));
// Write
Pout<< "Writing:" << fileHandler().objectPath(io) << endl;
Pout<< "Writing:" << fileHandler().objectPath(io, word::null) << endl;
write(io, sz);
autoPtr<fileOperation> readHandler(fileOperation::New(readType));
autoPtr<fileOperation> readHandler
(
fileOperation::New(readType, writeInfoHeader)
);
fileHandler(readHandler);
// Read
@ -108,7 +114,10 @@ void readIfPresent
const word& readType
)
{
autoPtr<fileOperation> readHandler(fileOperation::New(readType));
autoPtr<fileOperation> readHandler
(
fileOperation::New(readType, writeInfoHeader)
);
fileHandler(readHandler);
// Read

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -31,8 +31,7 @@ Description
#include "argList.H"
#include "Time.H"
#include "wordRe.H"
#include "OSspecific.H"
#include "IOdictionary.H"
using namespace Foam;