Commit 7f7cbddd authored by Mark Olesen's avatar Mark Olesen
Browse files

COMP: adjustments to compile with clang

parent 64b43070
......@@ -499,7 +499,7 @@ int main(int argc, char *argv[])
// Layers per point
labelList nPointLayers(extrudePatch.nPoints(), model().nLayers());
// Displacement for first layer
vectorField firstLayerDisp = displacement*model().sumThickness(1);
vectorField firstLayerDisp(displacement*model().sumThickness(1));
// Expansion ratio not used.
scalarField ratio(extrudePatch.nPoints(), 1.0);
......
......@@ -18,6 +18,7 @@ LINK_DIRECTORIES(
)
INCLUDE_DIRECTORIES(
$ENV{WM_PROJECT_DIR}/src/OSspecific/$ENV{WM_OSTYPE}/lnInclude
$ENV{WM_PROJECT_DIR}/src/OpenFOAM/lnInclude
$ENV{WM_PROJECT_DIR}/src/finiteVolume/lnInclude
${PROJECT_SOURCE_DIR}/../vtkPV3Foam
......
......@@ -71,7 +71,11 @@ Foam::ParticleForceList<CloudType>::ParticleForceList
forAllConstIter(wordHashSet, models, iter)
{
const word& model = iter.key();
set(i, ParticleForce<CloudType>::New(owner, mesh, dict, model));
this->set
(
i,
ParticleForce<CloudType>::New(owner, mesh, dict, model)
);
i++;
}
}
......
......@@ -41,7 +41,7 @@ const
"const"
) << "gradU field not allocated" << abort(FatalError);
return reinterpret_cast<const volTensorField>(0);
return *reinterpret_cast<const volTensorField*>(0);
}
}
......
......@@ -72,7 +72,7 @@ Foam::BrownianMotionForce<CloudType>::BrownianMotionForce
if (turbulence_)
{
HashTable<const compressible::turbulenceModel*> models =
this->mesh().objectRegistry::lookupClass
this->mesh().objectRegistry::template lookupClass
<
compressible::turbulenceModel
>();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment