Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
OpenFOAM-plus
Commits
a3e97c6e
Commit
a3e97c6e
authored
Jan 11, 2019
by
Mark Olesen
Browse files
STYLE: writeEntry instead of writeKeyword + END
parent
55a8ef3f
Changes
7
Hide whitespace changes
Inline
Side-by-side
src/finiteArea/faMesh/faPatches/constraint/processor/processorFaPatch.C
View file @
a3e97c6e
...
...
@@ -506,10 +506,8 @@ Foam::tmp<Foam::labelField> Foam::processorFaPatch::internalFieldTransfer
void
Foam
::
processorFaPatch
::
write
(
Ostream
&
os
)
const
{
faPatch
::
write
(
os
);
os
.
writeKeyword
(
"myProcNo"
)
<<
myProcNo_
<<
token
::
END_STATEMENT
<<
nl
;
os
.
writeKeyword
(
"neighbProcNo"
)
<<
neighbProcNo_
<<
token
::
END_STATEMENT
<<
nl
;
os
.
writeEntry
(
"myProcNo"
,
myProcNo_
);
os
.
writeEntry
(
"neighbProcNo"
,
neighbProcNo_
);
}
...
...
src/finiteArea/faMesh/faPatches/faPatch/faPatch.C
View file @
a3e97c6e
...
...
@@ -467,13 +467,13 @@ void Foam::faPatch::resetEdges(const labelList& newEdges)
void
Foam
::
faPatch
::
write
(
Ostream
&
os
)
const
{
os
.
writeKeyword
(
"type"
)
<<
type
()
<<
token
::
END_STATEMENT
<<
nl
;
os
.
writeEntry
(
"type"
,
type
());
patchIdentifier
::
write
(
os
);
const
labelList
&
edgeLabels
=
*
this
;
edgeLabels
.
writeEntry
(
"edgeLabels"
,
os
);
os
.
writeKeyword
(
"ngbPolyPatchIndex"
)
<<
ngbPolyPatchIndex_
<<
token
::
END_STATEMENT
<<
nl
;
os
.
writeEntry
(
"ngbPolyPatchIndex"
,
ngbPolyPatchIndex_
);
}
...
...
src/finiteArea/fields/faPatchFields/derived/inletOutlet/inletOutletFaPatchField.C
View file @
a3e97c6e
...
...
@@ -68,7 +68,7 @@ Foam::inletOutletFaPatchField<Type>::inletOutletFaPatchField
)
:
mixedFaPatchField
<
Type
>
(
p
,
iF
),
phiName_
(
"phi"
)
phiName_
(
dict
.
lookupOrDefault
<
word
>
(
"phi"
,
"phi"
)
)
{
this
->
refValue
()
=
Field
<
Type
>
(
"inletValue"
,
dict
,
p
.
size
());
...
...
@@ -86,8 +86,6 @@ Foam::inletOutletFaPatchField<Type>::inletOutletFaPatchField
this
->
refGrad
()
=
pTraits
<
Type
>::
zero
;
this
->
valueFraction
()
=
0
.
0
;
dict
.
readIfPresent
(
"phi"
,
phiName_
);
}
...
...
@@ -140,11 +138,7 @@ template<class Type>
void
Foam
::
inletOutletFaPatchField
<
Type
>::
write
(
Ostream
&
os
)
const
{
faPatchField
<
Type
>::
write
(
os
);
if
(
phiName_
!=
"phi"
)
{
os
.
writeKeyword
(
"phi"
)
<<
phiName_
<<
token
::
END_STATEMENT
<<
nl
;
}
os
.
writeEntryIfDifferent
<
word
>
(
"phi"
,
"phi"
,
phiName_
);
this
->
refValue
().
writeEntry
(
"inletValue"
,
os
);
this
->
writeEntry
(
"value"
,
os
);
}
...
...
src/finiteArea/fields/faPatchFields/faPatchField/faPatchField.C
View file @
a3e97c6e
...
...
@@ -199,7 +199,7 @@ void Foam::faPatchField<Type>::evaluate(const Pstream::commsTypes)
template
<
class
Type
>
void
Foam
::
faPatchField
<
Type
>::
write
(
Ostream
&
os
)
const
{
os
.
write
Keyword
(
"type"
)
<<
type
()
<<
token
::
END_STATEMENT
<<
nl
;
os
.
write
Entry
(
"type"
,
type
()
)
;
}
...
...
src/finiteArea/fields/faePatchFields/faePatchField/faePatchField.C
View file @
a3e97c6e
...
...
@@ -169,7 +169,7 @@ void Foam::faePatchField<Type>::rmap
template
<
class
Type
>
void
Foam
::
faePatchField
<
Type
>::
write
(
Ostream
&
os
)
const
{
os
.
write
Keyword
(
"type"
)
<<
type
()
<<
token
::
END_STATEMENT
<<
nl
;
os
.
write
Entry
(
"type"
,
type
()
)
;
}
...
...
src/finiteVolume/fields/fvPatchFields/derived/mappedField/Sampled/Sampled.C
View file @
a3e97c6e
...
...
@@ -334,8 +334,8 @@ void Foam::PatchFunction1Types::Sampled<Type>::writeData
)
const
{
PatchFunction1
<
Type
>::
writeData
(
os
);
os
.
writeKeyword
(
this
->
name
())
<<
type
();
os
<<
token
::
END_STATEMENT
<<
nl
;
os
.
writeEntry
(
this
->
name
(),
type
())
;
mappedPatchBase
::
write
(
os
);
...
...
src/meshTools/PatchFunction1/MappedFile/MappedFile.C
View file @
a3e97c6e
...
...
@@ -602,8 +602,7 @@ void Foam::PatchFunction1Types::MappedFile<Type>::writeData
// bc)
if
(
dictConstructed_
)
{
os
.
writeKeyword
(
this
->
name
())
<<
type
();
os
<<
token
::
END_STATEMENT
<<
nl
;
os
.
writeEntry
(
this
->
name
(),
type
());
os
.
writeEntryIfDifferent
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment