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
c778346c
Commit
c778346c
authored
Feb 10, 2015
by
Henry
Browse files
Formatting: Rationalized the indentation of #include
parent
45461bfc
Changes
151
Hide whitespace changes
Inline
Side-by-side
applications/solvers/basic/scalarTransportFoam/createFields.H
View file @
c778346c
...
...
@@ -52,4 +52,4 @@
transportProperties
.
lookup
(
"DT"
)
);
#
include "createPhi.H"
#
include
"createPhi.H"
applications/solvers/compressible/rhoCentralFoam/BCs/mixedFixedValueSlip/mixedFixedValueSlipFvPatchField.H
View file @
c778346c
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2015
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -217,7 +217,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
#
include "mixedFixedValueSlipFvPatchField.C"
#
include
"mixedFixedValueSlipFvPatchField.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
applications/solvers/incompressible/icoFoam/createFields.H
View file @
c778346c
...
...
@@ -47,7 +47,7 @@
);
#
include "createPhi.H"
#
include
"createPhi.H"
label
pRefCell
=
0
;
...
...
applications/solvers/incompressible/nonNewtonianIcoFoam/createFields.H
View file @
c778346c
...
...
@@ -28,7 +28,7 @@
);
#
include "createPhi.H"
#
include
"createPhi.H"
singlePhaseTransportModel
fluid
(
U
,
phi
);
...
...
applications/solvers/incompressible/shallowWaterFoam/createFields.H
View file @
c778346c
...
...
@@ -68,7 +68,7 @@ volScalarField hTotal
);
hTotal
.
write
();
#
include "createPhi.H"
#
include
"createPhi.H"
Info
<<
"Creating Coriolis Force"
<<
endl
;
const
dimensionedVector
F
(
"F"
,
((
2
.
0
*
Omega
)
&
gHat
)
*
gHat
);
applications/solvers/multiphase/cavitatingFoam/setInitialDeltaT.H
View file @
c778346c
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2015
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -32,7 +32,7 @@ Description
if
(
adjustTimeStep
)
{
#
include "CourantNo.H"
#
include
"CourantNo.H"
if
(
CoNum
>
SMALL
)
{
...
...
applications/solvers/multiphase/interFoam/interMixingFoam/interMixingFoam.C
View file @
c778346c
...
...
@@ -105,7 +105,7 @@ int main(int argc, char *argv[])
<<
nl
<<
endl
;
}
Info
<<
"
\n
end
\n
"
;
Info
<<
"
End
\n
"
<<
endl
;
return
0
;
}
...
...
applications/solvers/multiphase/twoPhaseEulerFoam/CourantNos.H
View file @
c778346c
#
include "CourantNo.H"
#
include
"CourantNo.H"
{
scalar
UrCoNum
=
0
.
5
*
gMax
...
...
applications/solvers/multiphase/twoPhaseEulerFoam/phaseCompressibleTurbulenceModels/kOmegaSSTSato/kOmegaSSTSato.H
View file @
c778346c
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2014
-2015
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -207,7 +207,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
#
include "kOmegaSSTSato.C"
#
include
"kOmegaSSTSato.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
applications/solvers/multiphase/twoPhaseEulerFoam/twoPhaseSystem/BlendedInterfacialModel/BlendedInterfacialModel.H
View file @
c778346c
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2014 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2014
-2015
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -132,7 +132,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
#
include "BlendedInterfacialModel.C"
#
include
"BlendedInterfacialModel.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam/solidEquilibriumDisplacementFoam.C
View file @
c778346c
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2015
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -42,15 +42,14 @@ Description
int
main
(
int
argc
,
char
*
argv
[])
{
#include
"setRootCase.H"
# include "setRootCase.H"
#include
"createTime.H"
#include
"createMesh.H"
#include
"readMechanicalProperties.H"
#include
"createFields.H"
# include "createTime.H"
# include "createMesh.H"
# include "readMechanicalProperties.H"
# include "createFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info
<<
"
\n
Calculating displacement field
\n
"
<<
endl
;
...
...
@@ -58,7 +57,7 @@ int main(int argc, char *argv[])
{
Info
<<
"Iteration: "
<<
runTime
.
value
()
<<
nl
<<
endl
;
#
include "readSteadyStressFoamControls.H"
#
include
"readSteadyStressFoamControls.H"
solve
(
...
...
@@ -78,15 +77,15 @@ int main(int argc, char *argv[])
sigmaD
+=
accFac
*
(
mu
*
twoSymm
(
gradDcorr
)
+
(
lambda
*
I
)
*
tr
(
gradDcorr
));
}
#
include "calculateStress.H"
#
include "kineticEnergyLimiter.H"
#
include
"calculateStress.H"
#
include
"kineticEnergyLimiter.H"
Info
<<
"ExecutionTime = "
<<
runTime
.
elapsedCpuTime
()
<<
" s"
<<
" ClockTime = "
<<
runTime
.
elapsedClockTime
()
<<
" s"
<<
nl
<<
endl
;
}
Info
<<
"
\n
end
\n
"
;
Info
<<
"
End
\n
"
<<
endl
;
return
0
;
}
...
...
applications/test/CompactIOList/Test-CompactIOList.C
View file @
c778346c
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2015
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -43,8 +43,8 @@ using namespace Foam;
int
main
(
int
argc
,
char
*
argv
[])
{
#
include "setRootCase.H"
#
include "createTime.H"
#
include
"setRootCase.H"
#
include
"createTime.H"
IOstream
::
streamFormat
format
=
IOstream
::
BINARY
;
// IOstream::streamFormat format=IOstream::ASCII;
...
...
applications/test/Distribution/Test-Distribution.C
View file @
c778346c
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2015
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -53,7 +53,7 @@ using namespace Foam;
int
main
(
int
argc
,
char
*
argv
[])
{
#
include "setRootCase.H"
#include
"setRootCase.H"
Random
R
(
918273
);
...
...
applications/test/HashingSpeed/Test-HashingSpeed.C
View file @
c778346c
...
...
@@ -55,7 +55,7 @@ on 1 byte), but shoehorning those bytes into integers efficiently is messy.
#include
<time.h>
/* defines time_t for timings in the test */
#include
<sys/param.h>
/* attempt to define endianness */
#ifdef linux
#
include <endian.h>
/* attempt to define endianness */
#
include
<endian.h>
/* attempt to define endianness */
#endif
/*
...
...
applications/test/List/Test-List.C
View file @
c778346c
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
3
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -54,7 +54,7 @@ int main(int argc, char *argv[])
argList
::
addOption
(
"float"
,
"xx"
);
argList
::
addBoolOption
(
"flag"
);
#
include "setRootCase.H"
#
include
"setRootCase.H"
List
<
vector
>
list1
(
IStringStream
(
"1 ((0 1 2))"
)());
Info
<<
"list1: "
<<
list1
<<
endl
;
...
...
applications/test/PatchEdgeFaceWave/Test-PatchEdgeFaceWave.C
View file @
c778346c
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
3
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -42,9 +42,9 @@ int main(int argc, char *argv[])
{
argList
::
validArgs
.
append
(
"patch"
);
#
include "setRootCase.H"
#
include "createTime.H"
#
include "createMesh.H"
#
include
"setRootCase.H"
#
include
"createTime.H"
#
include
"createMesh.H"
const
polyBoundaryMesh
&
patches
=
mesh
.
boundaryMesh
();
...
...
applications/test/PatchTools/Test-PatchTools.C
View file @
c778346c
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012-201
3
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-201
5
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -200,12 +200,12 @@ using namespace Foam;
int
main
(
int
argc
,
char
*
argv
[])
{
#
include "addTimeOptions.H"
#
include
"addTimeOptions.H"
argList
::
validArgs
.
append
(
"patch"
);
#
include "setRootCase.H"
#
include "createTime.H"
#
include
"setRootCase.H"
#
include
"createTime.H"
#
include "createMesh.H"
#
include
"createMesh.H"
const
word
patchName
=
args
[
1
];
label
patchI
=
mesh
.
boundaryMesh
().
findPatchID
(
patchName
);
...
...
applications/test/PointEdgeWave/Test-PointEdgeWave.C
View file @
c778346c
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
3
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -43,9 +43,9 @@ int main(int argc, char *argv[])
{
argList
::
validArgs
.
append
(
"(patches)"
);
#
include "setRootCase.H"
#
include "createTime.H"
#
include "createPolyMesh.H"
#
include
"setRootCase.H"
#
include
"createTime.H"
#
include
"createPolyMesh.H"
const
polyBoundaryMesh
&
pbm
=
mesh
.
boundaryMesh
();
...
...
applications/test/dataEntry/Test-DataEntry.C
View file @
c778346c
...
...
@@ -39,9 +39,9 @@ Description
int
main
(
int
argc
,
char
*
argv
[])
{
#
include "setRootCase.H"
#
include "createTime.H"
#
include "createMesh.H"
#
include
"setRootCase.H"
#
include
"createTime.H"
#
include
"createMesh.H"
{
scalarField
samples
(
4
);
...
...
applications/test/extendedStencil/Test-ExtendedStencil.C
View file @
c778346c
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
3
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
5
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -124,15 +124,15 @@ void writeStencilStats(const labelListList& stencil)
int
main
(
int
argc
,
char
*
argv
[])
{
#
include "addTimeOptions.H"
#
include "setRootCase.H"
#
include "createTime.H"
#
include
"addTimeOptions.H"
#
include
"setRootCase.H"
#
include
"createTime.H"
// Get times list
instantList
Times
=
runTime
.
times
();
#
include "checkTimeOptions.H"
#
include
"checkTimeOptions.H"
runTime
.
setTime
(
Times
[
startTime
],
startTime
);
#
include "createMesh.H"
#
include
"createMesh.H"
// Force calculation of extended edge addressing
const
labelListList
&
edgeFaces
=
mesh
.
edgeFaces
();
...
...
Prev
1
2
3
4
5
…
8
Next
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