mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: set readOpt(..), writeOpt(..) by parameter, not by assignment
STYLE: qualify format/version/compression with IOstreamOption not IOstream
STYLE: reduce number of lookups when scanning {fa,fv}Solution
STYLE: call IOobject::writeEndDivider as static
This commit is contained in:
@ -253,7 +253,7 @@ void Foam::functionObjects::momentumError::calcMomentError()
|
||||
|
||||
fvMesh& subMesh = zoneSubSetPtr_->subsetter().subMesh();
|
||||
|
||||
subMesh.fvSchemes::readOpt() = mesh_.fvSchemes::readOpt();
|
||||
subMesh.fvSchemes::readOpt(mesh_.fvSchemes::readOpt());
|
||||
subMesh.fvSchemes::read();
|
||||
|
||||
auto& momentErrMap =
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2013-2017 OpenFOAM Foundation
|
||||
Copyright (C) 2018 OpenCFD Ltd.
|
||||
Copyright (C) 2018-2022 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -76,7 +76,7 @@ Foam::findCellParticle::findCellParticle
|
||||
{
|
||||
if (readFields)
|
||||
{
|
||||
if (is.format() == IOstream::ASCII)
|
||||
if (is.format() == IOstreamOption::ASCII)
|
||||
{
|
||||
is >> start_ >> end_ >> data_;
|
||||
}
|
||||
@ -238,7 +238,7 @@ void Foam::findCellParticle::hitWallPatch
|
||||
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const findCellParticle& p)
|
||||
{
|
||||
if (os.format() == IOstream::ASCII)
|
||||
if (os.format() == IOstreamOption::ASCII)
|
||||
{
|
||||
os << static_cast<const particle&>(p)
|
||||
<< token::SPACE << p.start_
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
Copyright (C) 2017-2019 OpenCFD Ltd.
|
||||
Copyright (C) 2017-2022 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -438,7 +438,7 @@ Foam::wallBoundedParticle::wallBoundedParticle
|
||||
{
|
||||
if (readFields)
|
||||
{
|
||||
if (is.format() == IOstream::ASCII)
|
||||
if (is.format() == IOstreamOption::ASCII)
|
||||
{
|
||||
is >> localPosition_ >> meshEdgeStart_ >> diagEdge_;
|
||||
}
|
||||
@ -484,7 +484,7 @@ Foam::Ostream& Foam::operator<<
|
||||
const wallBoundedParticle& p
|
||||
)
|
||||
{
|
||||
if (os.format() == IOstream::ASCII)
|
||||
if (os.format() == IOstreamOption::ASCII)
|
||||
{
|
||||
os << static_cast<const particle&>(p)
|
||||
<< token::SPACE << p.localPosition_
|
||||
|
||||
Reference in New Issue
Block a user