ENH: fvMeshDistribute: use generic IOstream

This commit is contained in:
mattijs
2014-01-08 21:01:04 +00:00
parent 67e364c58d
commit d9974de958
3 changed files with 9 additions and 9 deletions

View File

@ -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-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -1058,7 +1058,7 @@ void Foam::fvMeshDistribute::sendMesh
const labelList& sourceProc, const labelList& sourceProc,
const labelList& sourcePatch, const labelList& sourcePatch,
const labelList& sourceNewNbrProc, const labelList& sourceNewNbrProc,
UOPstream& toDomain Ostream& toDomain
) )
{ {
if (debug) if (debug)
@ -1217,7 +1217,7 @@ Foam::autoPtr<Foam::fvMesh> Foam::fvMeshDistribute::receiveMesh
labelList& domainSourceProc, labelList& domainSourceProc,
labelList& domainSourcePatch, labelList& domainSourcePatch,
labelList& domainSourceNewNbrProc, labelList& domainSourceNewNbrProc,
UIPstream& fromNbr Istream& fromNbr
) )
{ {
pointField domainPoints(fromNbr); pointField domainPoints(fromNbr);

View File

@ -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-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -255,7 +255,7 @@ class fvMeshDistribute
const labelList& sourceProc, const labelList& sourceProc,
const labelList& sourcePatch, const labelList& sourcePatch,
const labelList& sourceNewProc, const labelList& sourceNewProc,
UOPstream& toDomain Ostream& toDomain
); );
//- Send subset of fields //- Send subset of fields
template<class GeoField> template<class GeoField>
@ -264,7 +264,7 @@ class fvMeshDistribute
const label domain, const label domain,
const wordList& fieldNames, const wordList& fieldNames,
const fvMeshSubset&, const fvMeshSubset&,
UOPstream& toNbr Ostream& toNbr
); );
//- Receive mesh. Opposite of sendMesh //- Receive mesh. Opposite of sendMesh
@ -279,7 +279,7 @@ class fvMeshDistribute
labelList& domainSourceProc, labelList& domainSourceProc,
labelList& domainSourcePatch, labelList& domainSourcePatch,
labelList& domainSourceNewProc, labelList& domainSourceNewProc,
UIPstream& fromNbr Istream& fromNbr
); );
//- Receive fields. Opposite of sendFields //- Receive fields. Opposite of sendFields

View File

@ -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-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -216,7 +216,7 @@ void Foam::fvMeshDistribute::sendFields
const label domain, const label domain,
const wordList& fieldNames, const wordList& fieldNames,
const fvMeshSubset& subsetter, const fvMeshSubset& subsetter,
UOPstream& toNbr Ostream& toNbr
) )
{ {
toNbr << GeoField::typeName << token::NL << token::BEGIN_BLOCK << token::NL; toNbr << GeoField::typeName << token::NL << token::BEGIN_BLOCK << token::NL;