applications/test: Updated to compile
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2017 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2017-2018 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -76,7 +76,10 @@ void writeAndRead
|
|||||||
Pout<< "** Writing:" << writeType
|
Pout<< "** Writing:" << writeType
|
||||||
<< " Reading:" << readType << endl;
|
<< " Reading:" << readType << endl;
|
||||||
|
|
||||||
autoPtr<fileOperation> writeHandler(fileOperation::New(writeType));
|
autoPtr<fileOperation> writeHandler
|
||||||
|
(
|
||||||
|
fileOperation::New(writeType, writeInfoHeader)
|
||||||
|
);
|
||||||
fileHandler(writeHandler);
|
fileHandler(writeHandler);
|
||||||
|
|
||||||
// Delete
|
// Delete
|
||||||
@ -84,10 +87,13 @@ void writeAndRead
|
|||||||
fileHandler().rm(fileHandler().filePath(io.objectPath()));
|
fileHandler().rm(fileHandler().filePath(io.objectPath()));
|
||||||
|
|
||||||
// Write
|
// Write
|
||||||
Pout<< "Writing:" << fileHandler().objectPath(io) << endl;
|
Pout<< "Writing:" << fileHandler().objectPath(io, word::null) << endl;
|
||||||
write(io, sz);
|
write(io, sz);
|
||||||
|
|
||||||
autoPtr<fileOperation> readHandler(fileOperation::New(readType));
|
autoPtr<fileOperation> readHandler
|
||||||
|
(
|
||||||
|
fileOperation::New(readType, writeInfoHeader)
|
||||||
|
);
|
||||||
fileHandler(readHandler);
|
fileHandler(readHandler);
|
||||||
|
|
||||||
// Read
|
// Read
|
||||||
@ -108,7 +114,10 @@ void readIfPresent
|
|||||||
const word& readType
|
const word& readType
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
autoPtr<fileOperation> readHandler(fileOperation::New(readType));
|
autoPtr<fileOperation> readHandler
|
||||||
|
(
|
||||||
|
fileOperation::New(readType, writeInfoHeader)
|
||||||
|
);
|
||||||
fileHandler(readHandler);
|
fileHandler(readHandler);
|
||||||
|
|
||||||
// Read
|
// Read
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -31,8 +31,7 @@ Description
|
|||||||
|
|
||||||
#include "argList.H"
|
#include "argList.H"
|
||||||
#include "Time.H"
|
#include "Time.H"
|
||||||
#include "wordRe.H"
|
#include "IOdictionary.H"
|
||||||
#include "OSspecific.H"
|
|
||||||
|
|
||||||
using namespace Foam;
|
using namespace Foam;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user