Skip to content

Compilation error #16

Description

@mikekryjak

Problem:
Compilation results in errors which I think are related to the new point source option.

Reproduction steps:

  • clone master branch
  • cmake . -B build
  • cmake --build /build/dir

Console dump:
/ssd_scratch/SD1Dtest/sd1d.cxx:172:74: error: ambiguous overload for ‘operator=’ (operand types are ‘Field2D’ and ‘Options’)
172 | .doc("Source of electron density. In SI units of particles/m^3/s");
| ^
In file included from /ssd_scratch/SD1Dtest/external/BOUT-dev/include/field3d.hxx:31,
from /ssd_scratch/SD1Dtest/external/BOUT-dev/include/difops.hxx:39,
from /ssd_scratch/SD1Dtest/external/BOUT-dev/include/bout.hxx:41,
from /ssd_scratch/SD1Dtest/external/BOUT-dev/include/bout/physicsmodel.hxx:40,
from /ssd_scratch/SD1Dtest/sd1d.cxx:42:
/ssd_scratch/SD1Dtest/external/BOUT-dev/include/field2d.hxx:171:13: note: candidate: ‘Field2D& Field2D::operator=(const Field2D&)’
171 | Field2D & operator=(const Field2D &rhs);
| ^~~~~~~~
/ssd_scratch/SD1Dtest/external/BOUT-dev/include/field2d.hxx:177:13: note: candidate: ‘Field2D& Field2D::operator=(BoutReal)’
177 | Field2D & operator=(BoutReal rhs);
| ^~~~~~~~
/ssd_scratch/SD1Dtest/sd1d.cxx:175:90: error: ambiguous overload for ‘operator=’ (operand types are ‘Field2D’ and ‘Options’)
175 | .doc("Source of pressure in SI units of Pascals/s. Multiply by 3/2 to get W/m3/s");
| ^
In file included from /ssd_scratch/SD1Dtest/external/BOUT-dev/include/field3d.hxx:31,
from /ssd_scratch/SD1Dtest/external/BOUT-dev/include/difops.hxx:39,
from /ssd_scratch/SD1Dtest/external/BOUT-dev/include/bout.hxx:41,
from /ssd_scratch/SD1Dtest/external/BOUT-dev/include/bout/physicsmodel.hxx:40,
from /ssd_scratch/SD1Dtest/sd1d.cxx:42:
/ssd_scratch/SD1Dtest/external/BOUT-dev/include/field2d.hxx:171:13: note: candidate: ‘Field2D& Field2D::operator=(const Field2D&)’
171 | Field2D & operator=(const Field2D &rhs);
| ^~~~~~~~
/ssd_scratch/SD1Dtest/external/BOUT-dev/include/field2d.hxx:177:13: note: candidate: ‘Field2D& Field2D::operator=(BoutReal)’
177 | Field2D & operator=(BoutReal rhs);
| ^~~~~~~~
/ssd_scratch/SD1Dtest/sd1d.cxx:269:78: error: ‘field3D’ was not declared in this scope; did you mean ‘Field3D’?
269 | .doc("Neutral atom pressure source. SI units of Pa/s").withDefault(field3D(0.0))
| ^~~~~~~
| Field3D
make[2]: *** [CMakeFiles/sd1d.dir/build.make:76: CMakeFiles/sd1d.dir/sd1d.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:139: CMakeFiles/sd1d.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions