From 554b965000557038740cb6942e09a9362a2ac7ac Mon Sep 17 00:00:00 2001 From: Henry Weller <http://cfd.direct> Date: Tue, 22 Mar 2016 10:38:59 +0000 Subject: [PATCH] VectorSpaces, MatrixSpaces: Allow automatic conversion from zero --- .../CompactSpatialTensor/CompactSpatialTensor.H | 2 +- .../CompactSpatialTensorT/CompactSpatialTensorT.H | 2 +- .../spatialVectorAlgebra/SpatialTensor/SpatialTensor.H | 2 +- .../spatialVectorAlgebra/SpatialVector/SpatialVector.H | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/OpenFOAM/primitives/spatialVectorAlgebra/CompactSpatialTensor/CompactSpatialTensor.H b/src/OpenFOAM/primitives/spatialVectorAlgebra/CompactSpatialTensor/CompactSpatialTensor.H index fa2b14f6c91..03e6dcc5658 100644 --- a/src/OpenFOAM/primitives/spatialVectorAlgebra/CompactSpatialTensor/CompactSpatialTensor.H +++ b/src/OpenFOAM/primitives/spatialVectorAlgebra/CompactSpatialTensor/CompactSpatialTensor.H @@ -72,7 +72,7 @@ public: //- Construct null inline CompactSpatialTensor(); - inline explicit CompactSpatialTensor(const Foam::zero); + inline CompactSpatialTensor(const Foam::zero); //- Construct given MatrixSpace of the same rank inline CompactSpatialTensor diff --git a/src/OpenFOAM/primitives/spatialVectorAlgebra/CompactSpatialTensorT/CompactSpatialTensorT.H b/src/OpenFOAM/primitives/spatialVectorAlgebra/CompactSpatialTensorT/CompactSpatialTensorT.H index eedc3643576..2ec83b589f9 100644 --- a/src/OpenFOAM/primitives/spatialVectorAlgebra/CompactSpatialTensorT/CompactSpatialTensorT.H +++ b/src/OpenFOAM/primitives/spatialVectorAlgebra/CompactSpatialTensorT/CompactSpatialTensorT.H @@ -71,7 +71,7 @@ public: //- Construct null inline CompactSpatialTensorT(); - inline explicit CompactSpatialTensorT(const Foam::zero); + inline CompactSpatialTensorT(const Foam::zero); //- Construct given MatrixSpace of the same rank inline CompactSpatialTensorT diff --git a/src/OpenFOAM/primitives/spatialVectorAlgebra/SpatialTensor/SpatialTensor.H b/src/OpenFOAM/primitives/spatialVectorAlgebra/SpatialTensor/SpatialTensor.H index 52c81866c62..63e2d7e7b7b 100644 --- a/src/OpenFOAM/primitives/spatialVectorAlgebra/SpatialTensor/SpatialTensor.H +++ b/src/OpenFOAM/primitives/spatialVectorAlgebra/SpatialTensor/SpatialTensor.H @@ -87,7 +87,7 @@ public: inline SpatialTensor(); //- Construct initialized to zero - inline explicit SpatialTensor(const Foam::zero); + inline SpatialTensor(const Foam::zero); //- Construct given MatrixSpace of the same rank inline SpatialTensor(const typename SpatialTensor::msType&); diff --git a/src/OpenFOAM/primitives/spatialVectorAlgebra/SpatialVector/SpatialVector.H b/src/OpenFOAM/primitives/spatialVectorAlgebra/SpatialVector/SpatialVector.H index 33741f31434..ef48678f2ab 100644 --- a/src/OpenFOAM/primitives/spatialVectorAlgebra/SpatialVector/SpatialVector.H +++ b/src/OpenFOAM/primitives/spatialVectorAlgebra/SpatialVector/SpatialVector.H @@ -92,7 +92,7 @@ public: inline SpatialVector(); //- Construct initialized to zero - inline explicit SpatialVector(const Foam::zero); + inline SpatialVector(const Foam::zero); //- Construct given VectorSpace of the same rank inline SpatialVector(const typename SpatialVector::vsType&); -- GitLab