Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
5e34369a
Commit
5e34369a
authored
Feb 16, 2009
by
Andrew Heather
Browse files
using IOobjects for reading
parent
ef537003
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/postProcessing/functionObjects/field/fieldAverage/fieldAverage/fieldAverage.C
View file @
5e34369a
...
...
@@ -26,10 +26,7 @@ License
#include
"fieldAverage.H"
#include
"volFields.H"
#include
"dictionary.H"
#include
"Time.H"
#include
"IFstream.H"
#include
"OFstream.H"
#include
"fieldAverageItem.H"
...
...
@@ -354,20 +351,25 @@ void Foam::fieldAverage::readAveragingProperties()
}
else
{
I
Fstream
propsFile
I
Oobject
propsDictHeader
(
obr_
.
time
().
path
()
/
obr_
.
time
().
timeName
()
/
"uniform"
/
"fieldAveragingProperties"
"fieldAveragingProperties"
,
obr_
.
time
().
timeName
(),
"uniform"
,
obr_
,
IOobject
::
NO_READ
,
IOobject
::
NO_WRITE
,
false
);
if
(
!
props
File
.
good
())
if
(
!
props
DictHeader
.
headerOk
())
{
Info
<<
"fieldAverage: starting averaging at time "
<<
obr_
.
time
().
timeName
()
<<
nl
<<
endl
;
return
;
}
dictionary
propsDict
(
dictionary
::
null
,
propsFile
);
IO
dictionary
propsDict
(
propsDictHeader
);
Info
<<
"fieldAverage: restarting averaging for fields:"
<<
endl
;
forAll
(
faItems_
,
i
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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