CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   myKinematicCloud (https://www.cfd-online.com/Forums/openfoam-programming-development/98557-mykinematiccloud.html)

catapult March 13, 2012 15:08

myKinematicCloud
 
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()
{
//td
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:

blablabla...
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 05: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 02:56.