STYLE: volSurfaceMapping is const

This commit is contained in:
Mark Olesen 2022-12-13 11:18:16 +01:00
parent 05322608a2
commit ed5690ffbc
4 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,6 @@
// Volume-to surface mapping object
const volSurfaceMapping vsm(aMesh);
volVectorField U
(
IOobject
@ -26,6 +29,3 @@ volScalarField H
mesh,
dimensionedScalar(dimLength, Zero)
);
// Create volume-to surface mapping object
volSurfaceMapping vsm(aMesh);

View File

@ -1,5 +1,5 @@
// Create volume-to surface mapping object
volSurfaceMapping vsm(aMesh);
// Volume-to surface mapping object
const volSurfaceMapping vsm(aMesh);
volScalarField Cvf
(

View File

@ -1,5 +1,5 @@
// Create volume-to surface mapping object
volSurfaceMapping vsm(aMesh);
// Volume-to surface mapping object
const volSurfaceMapping vsm(aMesh);
volScalarField Cvf
(

View File

@ -305,7 +305,7 @@ void sensitivitySurface::smoothSensitivities()
dimensionedScalar one("1", dimless, 1.);
// Mapping engine
volSurfaceMapping vsm(aMesh);
const volSurfaceMapping vsm(aMesh);
// Source term in faMatrix needs to be an areaField
areaScalarField sens