|
[Sponsors] |
January 26, 2019, 10:40 |
Compile error when modifying LESdelta
|
#1 |
Member
王莹
Join Date: May 2017
Posts: 51
Rep Power: 9 |
Hello,
I am modifying delta for my turbulence model. However, when I compiled it, I faced some unexpected errors, which I thought brought by my wrong use of grammar or the declaration of '*.H'. I am not so familiar with OF language. Maybe they are quite easy problems. I hope anyone can help me or give me some suggestion. Thanks a lot!!! p.s. I modified two versions: Adelta & A2delta. They have similar error, so I think if one version's corrected, another can also work. Here is the info of error in Adelta: OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/PtrList.C: In instantiation of Foam::PtrList<T>::~PtrList() [with T = Foam::fvsPatchField<Foam::Vector<double> >]鈥? /home/alisa/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/FieldField.H:74:7: required from 鈥楩oam::GeometricField<Type, PatchField, GeoMesh>::~GeometricField() [with Type = Foam::Vector<double>; PatchField = Foam::fvsPatchField; GeoMesh = Foam::surfaceMesh]鈥?/home/alisa/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/tmpI.H:111:13: required from 鈥楩oam::tmp<T>::~tmp() [with T = Foam::GeometricField<Foam::Vector<double>, Foam::fvsPatchField, Foam::surfaceMesh>]鈥?LES/LESdeltas/ADelta/ADelta.C:72:56: required from here /home/alisa/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/PtrList.C:133:13: warning: possible problem detected in invocation of delete operator: [-Wdelete-incomplete] delete ptrs_[i]; ^ /home/alisa/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/PtrList.C:133:13: warning: invalid use of incomplete type 鈥榗lass Foam::fvsPatchField<Foam::Vector<double> >鈥?In file included from lnInclude/turbulenceModel.H:44:0, from lnInclude/LESdelta.H:38, from LES/LESdeltas/ADelta/ADelta.H:41, from LES/LESdeltas/ADelta/ADelta.C:26: /home/alisa/OpenFOAM/OpenFOAM-v3.0+/src/finiteVolume/lnInclude/surfaceFieldsFwd.H:49:7: note: declaration of 鈥榗lass Foam::fvsPatchField<Foam::Vector<double> >鈥? class fvsPatchField; ********************.................************* **** /home/alisa/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/PtrList.C:133:13: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined delete ptrs_[i]; ^ ********************.................************* **** /home/alisa/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/GeometricField.C:940:8: required from 鈥榖ool Foam::GeometricField<Type, PatchField, GeoMesh>::writeData(Foam::Ostream&) const [with Type = Foam::Vector<double>; PatchField = Foam::fvsPatchField; GeoMesh = Foam::surfaceMesh]鈥?LES/LESdeltas/ADelta/ADelta.C:143:1: required from here /home/alisa/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/GeometricBoundaryField.C:627:23: error: invalid use of incomplete type 鈥榗onst class Foam::fvsPatchField<Foam::Vector<double> >鈥? os << indent << this->operator[](patchi).patch().name() << nl ^ In file included from lnInclude/turbulenceModel.H:44:0, from lnInclude/LESdelta.H:38, from LES/LESdeltas/ADelta/ADelta.H:41, from LES/LESdeltas/ADelta/ADelta.C:26: /home/alisa/OpenFOAM/OpenFOAM-v3.0+/src/finiteVolume/lnInclude/surfaceFieldsFwd.H:49:7: note: declaration of 鈥榗lass Foam::fvsPatchField<Foam::Vector<double> >鈥? class fvsPatchField; ^ *********************.............**************** ****** /home/alisa/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/GeometricField.C:940:8: required from 鈥榖ool Foam::GeometricField<Type, PatchField, GeoMesh>::writeData(Foam::Ostream&) const [with Type = Foam::Vector<double>; PatchField = Foam::fvsPatchField; GeoMesh = Foam::surfaceMesh]鈥?LES/LESdeltas/ADelta/ADelta.C:143:1: required from here /home/alisa/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/PtrListI.H:159:60: error: invalid use of incomplete type 鈥榗lass Foam::fvsPatchField<Foam::Vector<double> >鈥? << "hanging pointer of type " << typeid(T).name() ^ In file included from lnInclude/turbulenceModel.H:44:0, from lnInclude/LESdelta.H:38, from LES/LESdeltas/ADelta/ADelta.H:41, from LES/LESdeltas/ADelta/ADelta.C:26: /home/alisa/OpenFOAM/OpenFOAM-v3.0+/src/finiteVolume/lnInclude/surfaceFieldsFwd.H:49:7: note: declaration of 鈥榗lass Foam::fvsPatchField<Foam::Vector<double> >鈥? class fvsPatchField; ^ /home/alisa/OpenFOAM/OpenFOAM-v3.0+/wmake/rules/General/transform:8: recipe for target '/home/alisa/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64GccDPInt32Opt/src/TurbulenceModels/turbulenceModels/LES/LESdeltas/ADelta/ADelta.o' failed make: *** [/home/alisa/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64GccDPInt32Opt/src/TurbulenceModels/turbulenceModels/LES/LESdeltas/ADelta/ADelta.o] Error 1 |
|
Tags |
compile, delta, error, modify |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 07:05 |
How to compile OpenFOAM-1.7.x on CrunchBang linux 10 | gwierink | OpenFOAM Installation | 0 | April 5, 2011 05:38 |
PV3FoamReader compile error.... | PEM_GUY | OpenFOAM Installation | 6 | April 5, 2010 18:22 |
Error compile file udf | czfluent | Fluent UDF and Scheme Programming | 24 | September 26, 2009 14:24 |
Can someone PLEASE document the development version installation | bernd | OpenFOAM Installation | 76 | November 14, 2008 22:51 |