Error while compiling library

Hello.

I don't have too much experience in C++ programming. I need to modify one OpenFOAM's library. However, when I add changes and compile I have error:

--------------------------------------------------------------------------------
.../intermediate/lnInclude/KinematicCloud.C: In instantiation of ‘Foam::KinematicCloud<CloudType>::KinematicCloud(Foam::KinematicCloud<CloudType>&, const Foam::word&) [with CloudType = Foam::Cloud<Foam::KinematicParcel<Foam::particle> >]’:
/home/dradenkovic/OpenFOAM30/OpenFOAM/dradenkovic-3.0.1/src/intermediate/lnInclude/KinematicCloud.H:326:13: required from ‘Foam::autoPtr<Foam::Cloud<typename CloudType::particleType> > Foam::KinematicCloud<CloudType>::clone(const Foam::word&) [with CloudType = Foam::Cloud<Foam::KinematicParcel<Foam::particle> >; typename CloudType::particleType = Foam::KinematicParcel<Foam::particle>]’
parcels/derived/basicKinematicParcel/makeBasicKinematicParcelSubmodels.C:48:49: required from here
/home/dradenkovic/OpenFOAM30/OpenFOAM/dradenkovic-3.0.1/src/intermediate/lnInclude/KinematicCloud.C:616:5: error: no matching function for call to ‘Foam::DimensionedField<Foam::SymmTensor<double>, Foam::volMesh>::DimensionedField(Foam::IOobject, const Foam::fvMesh&, Foam::DimensionedField<Foam::SymmTensor<double>, Foam::volMesh>&)’
)
^
/home/dradenkovic/OpenFOAM30/OpenFOAM/dradenkovic-3.0.1/src/intermediate/lnInclude/KinematicCloud.C:616:5: note: candidates are:...


---------------------------------------------------------------------------------
Sorry, formatting doesn't work at this moment at my computer.

The most important files are on this link:

https://www.dropbox.com/s/zi5f0bqkdc7onmr/intermediate.zip?dl=0

I appreciate any help.

Darko
In file KinematicCloud.C , line 601, it should have been in initialization list:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
    SourceTKELRR_
    (
        new DimensionedField<symmTensor, volMesh>
        (
            IOobject
            (
                name + ":SourceTKELRR",
                this->db().time().timeName(),
                this->db(),
                IOobject::NO_READ,
                IOobject::NO_WRITE, 
	        false
            ),         
            c.SourceTKELRR_()
        )
    )


Now it compiles without error.

Darko
Topic archived. No new replies allowed.