CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   myKinematicCloud (

catapult March 13, 2012 16:08

Hi there,

I modified the class lagrangian/intermediate. I have a compilation problem in the function "move" that evolves the cloud:

template<class CloudType>
void Foam::KinematicCloud<CloudType>::evolveCloud()
typename parcelType::template TrackingData<KinematicCloud<CloudType> > td(*this);
const scalar deltaT = mesh_.time().deltaTValue();
CloudType::move(td, deltaT); <- Error here

Error message upon compilation is as follows:

moveP.C:51:33: instantiated from here
/opt/openfoam210/src/OpenFOAM/lnInclude/ILListIO.C:69:40: error: invalid conversion from ‘Foam: particle*’ to ‘Foam::KinematicParcel<Foam: particle>*’ [-fpermissive]
make: *** [Make/linuxGccDPOpt/moveP.o] Error 1

Could someone bring me some valuable light on this error ? or any tip would be greatly appreciated.

Thanks a lot

catapult March 15, 2012 06:44

Ok I found the problem. I deleted the "Factory class iNew" in the constructor. That's why it stopped working

All times are GMT -4. The time now is 03:12.