mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: various compilation changes
- label-size 64 build, compiler warnings, unused template argument, faMatrix::clone() method STYLE: faScalarMatrix - moved info message to within a debug scope
This commit is contained in:
committed by
Andrew Heather
parent
9ac1fa417b
commit
a14eb71160
@ -218,7 +218,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
label curMeshEdge = meshEdges[edgeI];
|
||||
|
||||
labelList curEdgePatchIDs(2, -1);
|
||||
labelList curEdgePatchIDs(2, label(-1));
|
||||
|
||||
label patchI = -1;
|
||||
|
||||
|
||||
@ -551,7 +551,7 @@ void faMeshDecomposition::decomposeMesh()
|
||||
|
||||
const label patchStart = patches[patchI].start();
|
||||
|
||||
// if (typeid(patches[patchI]) != typeid(cyclicFaPatch))
|
||||
// if (!isA<cyclicFaPatch>(patches[patchI]))
|
||||
if (true)
|
||||
{
|
||||
// Normal patch. Add edges to processor where the face
|
||||
|
||||
@ -253,7 +253,7 @@ Foam::faFieldReconstructor::reconstructFaAreaField
|
||||
// add empty patches
|
||||
if
|
||||
(
|
||||
typeid(mesh_.boundary()[patchI]) == typeid(emptyFaPatch)
|
||||
isA<emptyFaPatch>(mesh_.boundary()[patchI])
|
||||
&& !patchFields(patchI)
|
||||
)
|
||||
{
|
||||
@ -533,7 +533,7 @@ Foam::faFieldReconstructor::reconstructFaEdgeField
|
||||
// add empty patches
|
||||
if
|
||||
(
|
||||
typeid(mesh_.boundary()[patchI]) == typeid(emptyFaPatch)
|
||||
isA<emptyFaPatch>(mesh_.boundary()[patchI])
|
||||
&& !patchFields(patchI)
|
||||
)
|
||||
{
|
||||
|
||||
@ -301,6 +301,19 @@ Foam::faMatrix<Type>::faMatrix
|
||||
}
|
||||
|
||||
|
||||
template<class Type>
|
||||
Foam::tmp<Foam::faMatrix<Type>> Foam::faMatrix<Type>::clone() const
|
||||
{
|
||||
return tmp<faMatrix<Type>>
|
||||
(
|
||||
new faMatrix<Type>(*this)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
template<class Type>
|
||||
Foam::faMatrix<Type>::~faMatrix()
|
||||
{
|
||||
|
||||
@ -207,6 +207,9 @@ public:
|
||||
Istream&
|
||||
);
|
||||
|
||||
//- Clone
|
||||
tmp<faMatrix<Type>> clone() const;
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~faMatrix();
|
||||
|
||||
@ -80,7 +80,10 @@ Foam::solverPerformance Foam::faMatrix<Foam::scalar>::solve
|
||||
solverControls
|
||||
)->solve(psi.ref(), totalSource);
|
||||
|
||||
if (solverPerformance::debug)
|
||||
{
|
||||
solverPerf.print(Info);
|
||||
}
|
||||
|
||||
diag() = saveDiag;
|
||||
|
||||
|
||||
@ -493,7 +493,7 @@ Foam::faMesh::faMesh
|
||||
{
|
||||
label curMeshEdge = meshEdges[edgeI];
|
||||
|
||||
labelList curEdgePatchIDs(2, -1);
|
||||
labelList curEdgePatchIDs(2, label(-1));
|
||||
|
||||
label patchI = -1;
|
||||
|
||||
|
||||
@ -29,7 +29,7 @@ License
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
template<template<class> class PatchField, class Type>
|
||||
template<class Type>
|
||||
Foam::tmp<Foam::Field<Type>> Foam::volSurfaceMapping::mapToSurface
|
||||
(
|
||||
const typename GeometricField<Type, fvPatchField, volMesh>::Boundary& df
|
||||
|
||||
@ -90,7 +90,7 @@ public:
|
||||
// Member Functions
|
||||
|
||||
//- Map droplet cloud sources to surface
|
||||
template<template<class> class PatchField, class Type>
|
||||
template<class Type>
|
||||
tmp<Field<Type>> mapToSurface
|
||||
(
|
||||
const typename
|
||||
|
||||
Reference in New Issue
Block a user