CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Namespace errors

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2022, 19:10
Post Namespace errors
  #1
New Member
 
lyb
Join Date: Nov 2022
Posts: 3
Rep Power: 3
lyb99 is on a distinguished road
Dear everyone,

I am creating a new solver and when I try to compile the solver I wrote, I get this error below:
Code:
opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:688:1: note: candidate: 'Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Foam::tmp<Foam::GeometricField<Type, PatchField, GeoMesh> >&, const wordList&, const wordList&) [with Type = Foam::Vector<double>; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh; Foam::wordList = Foam::List<Foam::word>]'
  688 | Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
      | ^~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:688:1: note:   candidate expects 4 arguments, 2 provided
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:646:1: note: candidate: 'Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Foam::GeometricField<Type, PatchField, GeoMesh>&, const wordList&, const wordList&) [with Type = Foam::Vector<double>; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh; Foam::wordList = Foam::List<Foam::word>]'
  646 | Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
      | ^~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:646:1: note:   candidate expects 4 arguments, 2 provided
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:612:1: note: candidate: 'Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Foam::GeometricField<Type, PatchField, GeoMesh>&, const Foam::word&) [with Type = Foam::Vector<double>; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh]'
  612 | Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
      | ^~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:612:1: note:   candidate expects 3 arguments, 2 provided
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:583:1: note: candidate: 'Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::word&, const Foam::tmp<Foam::GeometricField<Type, PatchField, GeoMesh> >&) [with Type = Foam::Vector<double>; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh]'
  583 | Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
      | ^~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:585:17: note:   no known conversion for argument 1 from 'Foam::IOobject' to 'const Foam::word&'
  585 |     const word& newName,
      |     ~~~~~~~~~~~~^~~~~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:552:1: note: candidate: 'Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::word&, const Foam::GeometricField<Type, PatchField, GeoMesh>&) [with Type = Foam::Vector<double>; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh]'
  552 | Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
      | ^~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:554:17: note:   no known conversion for argument 1 from 'Foam::IOobject' to 'const Foam::word&'
  554 |     const word& newName,
      |     ~~~~~~~~~~~~^~~~~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:521:1: note: candidate: 'Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Foam::tmp<Foam::GeometricField<Type, PatchField, GeoMesh> >&) [with Type = Foam::Vector<double>; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh]'
  521 | Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
      | ^~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:524:59: note:   no known conversion for argument 2 from 'Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >' to 'const Foam::tmp<Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> >&'
  524 |     const tmp<GeometricField<Type, PatchField, GeoMesh>>& tgf
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:490:1: note: candidate: 'Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Foam::GeometricField<Type, PatchField, GeoMesh>&) [with Type = Foam::Vector<double>; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh]'
  490 | Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
      | ^~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:493:54: note:   no known conversion for argument 2 from 'Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >' to 'const Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>&'
  493 |     const GeometricField<Type, PatchField, GeoMesh>& gf
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:462:1: note: candidate: 'Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::tmp<Foam::GeometricField<Type, PatchField, GeoMesh> >&) [with Type = Foam::Vector<double>; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh]'
  462 | Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
      | ^~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:462:1: note:   candidate expects 1 argument, 2 provided
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:434:1: note: candidate: 'Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(Foam::GeometricField<Type, PatchField, GeoMesh>&&) [with Type = Foam::Vector<double>; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh]'
  434 | Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
      | ^~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:434:1: note:   candidate expects 1 argument, 2 provided
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:404:1: note: candidate: 'Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::GeometricField<Type, PatchField, GeoMesh>&) [with Type = Foam::Vector<double>; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh]'
  404 | Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
      | ^~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:404:1: note:   candidate expects 1 argument, 2 provided
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:369:1: note: candidate: 'Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Mesh&, const Foam::dictionary&) [with Type = Foam::Vector<double>; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh; Foam::GeometricField<Type, PatchField, GeoMesh>::Mesh = Foam::fvMesh]'
  369 | Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
      | ^~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:369:1: note:   candidate expects 3 arguments, 2 provided
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:334:1: note: candidate: 'Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Mesh&) [with Type = Foam::Vector<double>; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh; Foam::GeometricField<Type, PatchField, GeoMesh>::Mesh = Foam::fvMesh]'
  334 | Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
      | ^~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:337:17: note:   no known conversion for argument 2 from 'Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >' to 'const Mesh&' {aka 'const Foam::fvMesh&'}
  337 |     const Mesh& mesh
      |     ~~~~~~~~~~~~^~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:308:1: note: candidate: 'Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Mesh&, const Foam::dimensionSet&, const Foam::Field<Type>&, const Foam::PtrList<PatchField<Type> >&) [with Type = Foam::Vector<double>; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh; Foam::GeometricField<Type, PatchField, GeoMesh>::Mesh = Foam::fvMesh]'
  308 | Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
      | ^~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:308:1: note:   candidate expects 5 arguments, 2 provided
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:284:1: note: candidate: 'Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Internal&, const Foam::PtrList<PatchField<Type> >&) [with Type = Foam::Vector<double>; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh; Foam::GeometricField<Type, PatchField, GeoMesh>::Internal = Foam::DimensionedField<Foam::Vector<double>, Foam::volMesh>]'
  284 | Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
      | ^~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:284:1: note:   candidate expects 3 arguments, 2 provided
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:257:1: note: candidate: 'Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Mesh&, const Foam::dimensioned<Type>&, const wordList&, const wordList&) [with Type = Foam::Vector<double>; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh; Foam::GeometricField<Type, PatchField, GeoMesh>::Mesh = Foam::fvMesh; Foam::wordList = Foam::List<Foam::word>]'
  257 | Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
      | ^~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:257:1: note:   candidate expects 5 arguments, 2 provided
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:231:1: note: candidate: 'Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Mesh&, const Foam::dimensioned<Type>&, const Foam::word&) [with Type = Foam::Vector<double>; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh; Foam::GeometricField<Type, PatchField, GeoMesh>::Mesh = Foam::fvMesh]'
  231 | Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
      | ^~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:231:1: note:   candidate expects 4 arguments, 2 provided
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:206:1: note: candidate: 'Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Mesh&, const Foam::dimensionSet&, const wordList&, const wordList&) [with Type = Foam::Vector<double>; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh; Foam::GeometricField<Type, PatchField, GeoMesh>::Mesh = Foam::fvMesh; Foam::wordList = Foam::List<Foam::word>]'
  206 | Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
      | ^~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:206:1: note:   candidate expects 5 arguments, 2 provided
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:182:1: note: candidate: 'Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Mesh&, const Foam::dimensionSet&, const Foam::word&) [with Type = Foam::Vector<double>; PatchField = Foam::fvPatchField; GeoMesh = Foam::volMesh; Foam::GeometricField<Type, PatchField, GeoMesh>::Mesh = Foam::fvMesh]'
  182 | Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
      | ^~~~
/opt/openfoam10/src/OpenFOAM/lnInclude/GeometricField.C:182:1: note:   candidate expects 4 arguments, 2 provided
Does anyone know what this means and how I can resolve them? Thank you!
lyb99 is offline   Reply With Quote

Reply

Tags
namespaces, openfoam 10


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 13:21
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 05:28
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


All times are GMT -4. The time now is 16:23.