|
[Sponsors] |
Solved: "error: no matching function for call to ... <double,..> candidate is <Type> |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 21, 2016, 08:37 |
Solved: "error: no matching function for call to ... <double,..> candidate is <Type>
|
#1 |
Member
Olabanji
Join Date: Jan 2013
Location: U.S.A
Posts: 31
Rep Power: 13 |
Hi Foamers,
Recently, I was trying to compile a part of the OpenFOAM library for fast and easy profiling and error message below kept recurring Code:
fvmwLaplacian.C: In function 'Foam::tmp<Foam::fvMatrix<Type> > Foam::fvmw::laplacianw(const Foam::GeometricField<GType, Foam::fvsPatchField, Foam::surfaceMesh>&, const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&) [with Type = double, GType = double]': banola.C:70:32: instantiated from here fvmwLaplacian.C:131:70: error: no matching function for call to 'fvmLaplacianUncorrected(const Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>&, const Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&)' fvmwLaplacian.C:131:70: note: candidate is: fvmwLaplacian.C:45:26: note: template<class Type, class GType> Foam::tmp<Foam::fvMatrix<Type> > Foam::fvmw::fvmLaplacianUncorrected(const surfaceScalarField&, const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&) When you look into the fvmLaplacian.H file (see below) Code:
namespace fvmw { ... template<class Type, class GType> //Here is the problem :confused: tmp<fvMatrix<Type> > fvmLaplacianUncorrected ( const surfaceScalarField& gammaMagSf, const GeometricField<Type, fvPatchField, volMesh>& ); Code:
namespace fvmw { ... //template<class Type, class GType> //Here is the problem :confused: template<class Type> //New tmp<fvMatrix<Type> > fvmLaplacianUncorrected ( const surfaceScalarField& gammaMagSf, const GeometricField<Type, fvPatchField, volMesh>& ); |
|
Tags |
double, error, matching, type |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with if statement | CHARLES | OpenFOAM Programming & Development | 17 | August 22, 2021 04:14 |
Error no matching function | zoptirik | OpenFOAM Programming & Development | 3 | January 24, 2018 10:11 |
[Commercial meshers] star-ccm mesh to O\/F | DLC | OpenFOAM Meshing & Mesh Conversion | 77 | September 19, 2016 10:25 |
[snappyHexMesh] How to define to right point for locationInMesh | Mirage12 | OpenFOAM Meshing & Mesh Conversion | 7 | March 13, 2016 15:07 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |