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
Commits
443a8488
Commit
443a8488
authored
May 18, 2010
by
Andrew Heather
Browse files
Partial revert of
0dccf9de
- keeping {}s for case statements
parent
ccf61a7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/db/functionObjects/outputFilterOutputControl/outputFilterOutputControl.C
View file @
443a8488
...
...
@@ -80,11 +80,14 @@ void Foam::outputFilterOutputControl::read(const dictionary& dict)
switch
(
outputControl_
)
{
case
ocTimeStep
:
{
outputInterval_
=
dict
.
lookupOrDefault
<
label
>
(
"outputInterval"
,
0
);
break
;
}
default:
{
break
;
}
}
}
...
...
@@ -94,24 +97,28 @@ bool Foam::outputFilterOutputControl::output() const
switch
(
outputControl_
)
{
case
ocTimeStep
:
{
return
(
(
outputInterval_
<=
1
)
||
!
(
time_
.
timeIndex
()
%
outputInterval_
)
);
break
;
}
case
ocOutputTime
:
{
return
time_
.
outputTime
();
break
;
}
default:
{
// this error should not actually be possible
FatalErrorIn
(
"bool Foam::outputFilterOutputControl::output()"
)
<<
"Undefined output control: "
<<
outputControlNames_
[
outputControl_
]
<<
nl
<<
abort
(
FatalError
);
break
;
}
}
return
false
;
...
...
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