Skip to content
GitLab
Menu
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
d9931658
Commit
d9931658
authored
Nov 10, 2010
by
Andrew Heather
Browse files
Merge branch 'olesenm'
parents
7eae1531
1a0da12d
Changes
226
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
d9931658
...
...
@@ -35,6 +35,7 @@ core
lnInclude
# build folders - anywhere
linux*Clang*/
linux*Gcc*/
linux*Icc*/
linuxming*/
...
...
applications/solvers/multiphase/interFoam/LTSInterFoam/MULESTemplates.C
View file @
d9931658
...
...
@@ -325,8 +325,8 @@ void Foam::MULES::limiter
const
fvMesh
&
mesh
=
psi
.
mesh
();
const
unallocL
abelList
&
owner
=
mesh
.
owner
();
const
unallocL
abelList
&
neighb
=
mesh
.
neighbour
();
const
l
abel
U
List
&
owner
=
mesh
.
owner
();
const
l
abel
U
List
&
neighb
=
mesh
.
neighbour
();
tmp
<
volScalarField
::
DimensionedInternalField
>
tVsc
=
mesh
.
Vsc
();
const
scalarField
&
V
=
tVsc
();
...
...
applications/test/PackedList4/PackedListTest4.C
View file @
d9931658
...
...
@@ -96,7 +96,7 @@ int main(int argc, char *argv[])
(
list3
|=
list2
).
printBits
(
Info
);
}
Info
<<
"
\n
operator|= with UList
<label>
\n
"
;
Info
<<
"
\n
operator|= with
label
UList
\n
"
;
{
PackedBoolList
list3
=
list1
;
(
list3
|=
list2Labels
).
printBits
(
Info
);
...
...
@@ -114,7 +114,7 @@ int main(int argc, char *argv[])
(
list3
+=
list2
).
printBits
(
Info
);
}
Info
<<
"
\n
operator+= with UList
<label>
\n
"
;
Info
<<
"
\n
operator+= with
label
UList
\n
"
;
{
PackedBoolList
list3
=
list1
;
(
list3
+=
list2Labels
).
printBits
(
Info
);
...
...
@@ -126,7 +126,7 @@ int main(int argc, char *argv[])
(
list3
-=
list2
).
printBits
(
Info
);
}
Info
<<
"
\n
operator-= with UList
<label>
\n
"
;
Info
<<
"
\n
operator-= with
label
UList
\n
"
;
{
PackedBoolList
list3
=
list1
;
(
list3
-=
list2Labels
).
printBits
(
Info
);
...
...
applications/utilities/mesh/conversion/foamMeshToFluent/fluentFvMesh.C
View file @
d9931658
...
...
@@ -124,8 +124,8 @@ void Foam::fluentFvMesh::writeFluentMesh() const
fluentMeshFile
<<
"))"
<<
std
::
endl
<<
std
::
endl
;
const
unallocL
abelList
&
own
=
owner
();
const
unallocL
abelList
&
nei
=
neighbour
();
const
l
abel
U
List
&
own
=
owner
();
const
l
abel
U
List
&
nei
=
neighbour
();
const
faceList
&
fcs
=
faces
();
...
...
applications/utilities/mesh/manipulation/checkMesh/checkTopology.C
View file @
d9931658
...
...
@@ -138,7 +138,7 @@ Foam::label Foam::checkTopology
{
if
(
patches
[
patchI
].
coupled
())
{
const
unallocL
abelList
&
owners
=
patches
[
patchI
].
faceCells
();
const
l
abel
U
List
&
owners
=
patches
[
patchI
].
faceCells
();
forAll
(
owners
,
i
)
{
...
...
applications/utilities/mesh/manipulation/mirrorMesh/mirrorFvMesh.C
View file @
d9931658
...
...
@@ -128,7 +128,7 @@ Foam::mirrorFvMesh::mirrorFvMesh(const IOobject& io)
// Distribute internal faces
labelListList
newCellFaces
(
oldCells
.
size
());
const
unallocL
abelList
&
oldOwnerStart
=
lduAddr
().
ownerStartAddr
();
const
l
abel
U
List
&
oldOwnerStart
=
lduAddr
().
ownerStartAddr
();
forAll
(
newCellFaces
,
cellI
)
{
...
...
@@ -168,7 +168,7 @@ Foam::mirrorFvMesh::mirrorFvMesh(const IOobject& io)
curInsBouFace
=
false
;
// Get faceCells for face insertion
const
unallocL
abelList
&
curFaceCells
=
curPatch
.
faceCells
();
const
l
abel
U
List
&
curFaceCells
=
curPatch
.
faceCells
();
const
label
curStart
=
curPatch
.
start
();
forAll
(
curPatch
,
faceI
)
...
...
applications/utilities/parallelProcessing/decomposePar/domainDecompositionMesh.C
View file @
d9931658
...
...
@@ -164,7 +164,7 @@ void Foam::domainDecomposition::decomposeMesh()
// Normal patch. Add faces to processor where the cell
// next to the face lives
const
unallocL
abelList
&
patchFaceCells
=
const
l
abel
U
List
&
patchFaceCells
=
patches
[
patchi
].
faceCells
();
forAll
(
patchFaceCells
,
facei
)
...
...
@@ -185,9 +185,9 @@ void Foam::domainDecomposition::decomposeMesh()
patches
[
patchi
]
);
// cyclic: check opposite side on this processor
const
unallocL
abelList
&
patchFaceCells
=
pp
.
faceCells
();
const
l
abel
U
List
&
patchFaceCells
=
pp
.
faceCells
();
const
unallocL
abelList
&
nbrPatchFaceCells
=
const
l
abel
U
List
&
nbrPatchFaceCells
=
pp
.
neighbPatch
().
faceCells
();
forAll
(
patchFaceCells
,
facei
)
...
...
@@ -259,8 +259,8 @@ void Foam::domainDecomposition::decomposeMesh()
);
// cyclic: check opposite side on this processor
const
unallocL
abelList
&
patchFaceCells
=
pp
.
faceCells
();
const
unallocL
abelList
&
nbrPatchFaceCells
=
const
l
abel
U
List
&
patchFaceCells
=
pp
.
faceCells
();
const
l
abel
U
List
&
nbrPatchFaceCells
=
pp
.
neighbPatch
().
faceCells
();
// Store old sizes. Used to detect which inter-proc patches
...
...
applications/utilities/parallelProcessing/decomposePar/fvFieldDecomposer.C
View file @
d9931658
...
...
@@ -30,7 +30,7 @@ License
Foam
::
fvFieldDecomposer
::
patchFieldDecomposer
::
patchFieldDecomposer
(
const
unallocL
abelList
&
addressingSlice
,
const
l
abel
U
List
&
addressingSlice
,
const
label
addressingOffset
)
:
...
...
@@ -48,7 +48,7 @@ Foam::fvFieldDecomposer::processorVolPatchFieldDecomposer::
processorVolPatchFieldDecomposer
(
const
fvMesh
&
mesh
,
const
unallocL
abelList
&
addressingSlice
const
l
abel
U
List
&
addressingSlice
)
:
directAddressing_
(
addressingSlice
.
size
())
...
...
@@ -95,7 +95,7 @@ processorVolPatchFieldDecomposer
Foam
::
fvFieldDecomposer
::
processorSurfacePatchFieldDecomposer
::
processorSurfacePatchFieldDecomposer
(
const
unallocL
abelList
&
addressingSlice
const
l
abel
U
List
&
addressingSlice
)
:
addressing_
(
addressingSlice
.
size
()),
...
...
@@ -171,7 +171,7 @@ Foam::fvFieldDecomposer::fvFieldDecomposer
processorSurfacePatchFieldDecomposerPtrs_
[
patchi
]
=
new
processorSurfacePatchFieldDecomposer
(
static_cast
<
const
unallocL
abelList
&>
static_cast
<
const
l
abel
U
List
&>
(
procMesh_
.
boundary
()[
patchi
].
patchSlice
(
...
...
applications/utilities/parallelProcessing/decomposePar/fvFieldDecomposer.H
View file @
d9931658
...
...
@@ -71,7 +71,7 @@ public:
//- Construct given addressing
patchFieldDecomposer
(
const
unallocL
abelList
&
addressingSlice
,
const
l
abel
U
List
&
addressingSlice
,
const
label
addressingOffset
);
...
...
@@ -88,7 +88,7 @@ public:
return
true
;
}
const
unallocL
abelList
&
directAddressing
()
const
const
l
abel
U
List
&
directAddressing
()
const
{
return
directAddressing_
;
}
...
...
@@ -112,7 +112,7 @@ public:
processorVolPatchFieldDecomposer
(
const
fvMesh
&
mesh
,
const
unallocL
abelList
&
addressingSlice
const
l
abel
U
List
&
addressingSlice
);
...
...
@@ -128,7 +128,7 @@ public:
return
true
;
}
const
unallocL
abelList
&
directAddressing
()
const
const
l
abel
U
List
&
directAddressing
()
const
{
return
directAddressing_
;
}
...
...
@@ -149,7 +149,7 @@ public:
//- Construct given addressing
processorSurfacePatchFieldDecomposer
(
const
unallocL
abelList
&
addressingSlice
const
l
abel
U
List
&
addressingSlice
);
...
...
applications/utilities/parallelProcessing/decomposePar/pointFieldDecomposer.H
View file @
d9931658
...
...
@@ -88,7 +88,7 @@ public:
return
true
;
}
const
unallocL
abelList
&
directAddressing
()
const
const
l
abel
U
List
&
directAddressing
()
const
{
return
directAddressing_
;
}
...
...
etc/apps/scotch/bashrc
0 → 100644
View file @
d9931658
#----------------------------------*-sh-*--------------------------------------
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | Copyright (C) 2010-2010 OpenCFD Ltd.
# \\/ M anipulation |
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM.
#
# OpenFOAM is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
#
# File
# scotch/bashrc
#
# Description
# Setup file for scotch include/libraries.
# Sourced during wmake process only.
#
# Note
# A csh version is not needed, since the values here are only sourced
# during the wmake process
#------------------------------------------------------------------------------
export
SCOTCH_VERSION
=
scotch_5.1.10b
export
SCOTCH_ARCH_PATH
=
$WM_THIRD_PARTY_DIR
/platforms/
$WM_ARCH$WM_COMPILER
/
$SCOTCH_VERSION
# -----------------------------------------------------------------------------
etc/bashrc
View file @
d9931658
...
...
@@ -87,8 +87,7 @@ _foamSource()
# Add in preset user or site preferences:
foamPrefs
=
`
$WM_PROJECT_DIR
/bin/foamEtcFile prefs.sh
`
&&
_foamSource
$foamPrefs
unset
foamPrefs
_foamSource
`
$WM_PROJECT_DIR
/bin/foamEtcFile prefs.sh
`
# Evaluate command-line parameters
while
[
$#
-gt
0
]
...
...
@@ -259,13 +258,8 @@ _foamSource $WM_PROJECT_DIR/etc/aliases.sh
# Source user setup files for optional packages
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
paraview3
=
`
$WM_PROJECT_DIR
/bin/foamEtcFile apps/paraview3/bashrc
`
\
&&
_foamSource
$paraview3
unset
paraview3
ensight
=
`
$WM_PROJECT_DIR
/bin/foamEtcFile apps/ensight/bashrc
`
\
&&
_foamSource
$ensight
unset
ensight
_foamSource
`
$WM_PROJECT_DIR
/bin/foamEtcFile apps/paraview3/bashrc
`
_foamSource
`
$WM_PROJECT_DIR
/bin/foamEtcFile apps/ensight/bashrc
`
# Clean environment paths again. Only remove duplicates
...
...
etc/cshrc
View file @
d9931658
...
...
@@ -69,14 +69,10 @@ setenv WM_THIRD_PARTY_DIR $WM_PROJECT_INST_DIR/ThirdParty-$WM_PROJECT_VERSION
# Source files, possibly with some verbosity
alias
_foamSource
'if ($?FOAM_VERBOSE && $?prompt) echo "Sourcing: \!*"; source \!*'
alias
_foamSource
'if ($?FOAM_VERBOSE && $?prompt) echo "Sourcing: \!*";
if (\!* != "")
source \!*'
# Add in preset user or site preferences:
set
foamPrefs
=
`
$WM_PROJECT_DIR
/bin/foamEtcFile prefs.csh
`
if
(
$status
==
0
)
then
_foamSource
$foamPrefs
endif
unset
foamPrefs
_foamSource
`
$WM_PROJECT_DIR
/bin/foamEtcFile prefs.csh
`
# Evaluate command-line parameters
while
(
$#argv
>
0
)
...
...
@@ -255,17 +251,8 @@ _foamSource $WM_PROJECT_DIR/etc/aliases.csh
# Source user setup files for optional packages
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set
paraview3
=
`
$WM_PROJECT_DIR
/bin/foamEtcFile apps/paraview3/cshrc
`
if
(
$status
==
0
)
then
_foamSource
$paraview3
endif
unset
paraview3
set
ensight
=
`
$WM_PROJECT_DIR
/bin/foamEtcFile apps/ensight/cshrc
`
if
(
$status
==
0
)
then
_foamSource
$ensight
endif
unset
ensight
_foamSource
`
$WM_PROJECT_DIR
/bin/foamEtcFile apps/paraview3/cshrc
`
_foamSource
`
$WM_PROJECT_DIR
/bin/foamEtcFile apps/ensight/cshrc
`
# Clean environment paths again. Only remove duplicates
...
...
etc/settings.csh
View file @
d9931658
...
...
@@ -37,6 +37,8 @@ alias _foamAddLib 'setenv LD_LIBRARY_PATH \!*\:${LD_LIBRARY_PATH}'
# prefix to MANPATH
alias
_foamAddMan
'setenv MANPATH \!*\:${MANPATH}'
#------------------------------------------------------------------------------
# location of the jobControl directory
setenv FOAM_JOB_DIR
$WM_PROJECT_INST_DIR
/jobControl
...
...
etc/settings.sh
View file @
d9931658
...
...
@@ -60,6 +60,7 @@ _foamAddMan()
done
}
#------------------------------------------------------------------------------
# location of the jobControl directory
export
FOAM_JOB_DIR
=
$WM_PROJECT_INST_DIR
/jobControl
...
...
src/OpenFOAM/containers/Identifiers/Keyed/Keyed.H
View file @
d9931658
...
...
@@ -79,7 +79,7 @@ public:
inline
static
List
<
Keyed
<
T
>
>
createList
(
const
List
<
T
>&
,
const
List
<
label
>
&
keys
const
labelUList
&
keys
);
...
...
src/OpenFOAM/containers/Identifiers/Keyed/KeyedI.H
View file @
d9931658
...
...
@@ -90,13 +90,13 @@ Foam::Keyed<T>::createList(const List<T>& lst, const label key)
template
<
class
T
>
inline
Foam
::
List
<
Foam
::
Keyed
<
T
>
>
Foam
::
Keyed
<
T
>::
createList
(
const
List
<
T
>&
lst
,
const
List
<
label
>
&
keys
)
Foam
::
Keyed
<
T
>::
createList
(
const
List
<
T
>&
lst
,
const
labelUList
&
keys
)
{
if
(
lst
.
size
()
!=
keys
.
size
())
{
FatalErrorIn
(
"Foam::Keyed<T>::createList(const List<T>&, const
List<label>
&)"
"Foam::Keyed<T>::createList(const List<T>&, const
labelUList
&)"
)
<<
"size mismatch adding keys to a list:"
<<
nl
<<
"List has size "
<<
lst
.
size
()
...
...
src/OpenFOAM/containers/Lists/BiIndirectList/BiIndirectList.H
View file @
d9931658
...
...
@@ -65,7 +65,7 @@ public:
(
const
UList
<
T
>&
posList
,
const
UList
<
T
>&
negList
,
const
UList
<
label
>
&
const
label
UList
&
);
//- Construct given the complete list and by transferring addressing
...
...
@@ -100,7 +100,7 @@ public:
// Edit
//- Reset addressing
inline
void
resetAddressing
(
const
UList
<
label
>
&
);
inline
void
resetAddressing
(
const
label
UList
&
);
inline
void
resetAddressing
(
const
Xfer
<
List
<
label
>
>&
);
...
...
src/OpenFOAM/containers/Lists/BiIndirectList/BiIndirectListI.H
View file @
d9931658
...
...
@@ -30,7 +30,7 @@ inline Foam::BiIndirectList<T>::BiIndirectList
(
const
UList
<
T
>&
posList
,
const
UList
<
T
>&
negList
,
const
UList
<
label
>
&
addr
const
label
UList
&
addr
)
:
posList_
(
const_cast
<
UList
<
T
>&>
(
posList
)),
...
...
@@ -94,7 +94,7 @@ inline const Foam::List<Foam::label>& Foam::BiIndirectList<T>::addressing()
template
<
class
T
>
inline
void
Foam
::
BiIndirectList
<
T
>::
resetAddressing
(
const
UList
<
label
>
&
addr
const
label
UList
&
addr
)
{
addressing_
=
addr
;
...
...
src/OpenFOAM/containers/Lists/CompactListList/CompactListList.C
View file @
d9931658
...
...
@@ -59,7 +59,7 @@ Foam::CompactListList<T, Container>::CompactListList(const List<Container>& ll)
template
<
class
T
,
class
Container
>
Foam
::
CompactListList
<
T
,
Container
>::
CompactListList
(
const
UList
<
label
>
&
rowSizes
const
label
UList
&
rowSizes
)
:
size_
(
rowSizes
.
size
()),
...
...
@@ -80,7 +80,7 @@ Foam::CompactListList<T, Container>::CompactListList
template
<
class
T
,
class
Container
>
Foam
::
CompactListList
<
T
,
Container
>::
CompactListList
(
const
UList
<
label
>
&
rowSizes
,
const
label
UList
&
rowSizes
,
const
T
&
t
)
:
...
...
@@ -178,7 +178,7 @@ void Foam::CompactListList<T, Container>::setSize
template
<
class
T
,
class
Container
>
void
Foam
::
CompactListList
<
T
,
Container
>::
setSize
(
const
UList
<
label
>
&
rowSizes
)
void
Foam
::
CompactListList
<
T
,
Container
>::
setSize
(
const
label
UList
&
rowSizes
)
{
size_
=
rowSizes
.
size
();
offsets_
.
setSize
(
rowSizes
.
size
()
+
1
);
...
...
Prev
1
2
3
4
5
…
12
Next
Write
Preview
Supports
Markdown
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