Skip to content

Building error: Too few argument setProblemSizes ParOpt function #2

@Ricman0

Description

@Ricman0

Hi, during the TMR building I get the following error:

tmr/src/topology/TMRTopoProblem.cpp:754:54: error: no matching function for call to ‘TMRTopoProblem::setProblemSizes(int&, int&, int&, int&)’ 754 | setProblemSizes(nvars, num_constraints, nw, nwblock); | ^ In file included from tmr/src/topology/TMRTopoProblem.h:24, from tmr/src/topology/TMRTopoProblem.cpp:21: paropt/src/ParOptProblem.h:112:8: note: candidate: ‘void ParOptProblem::setProblemSizes(int, int, int, int, int)’ 112 | void setProblemSizes( int _nvars, int _ncon, int _ninequality, | ^~~~~~~~~~~~~~~ paropt/src/ParOptProblem.h:112:8: note: candidate expects 5 arguments, 4 provided

I suppose that probably I'm linking a version of ParOpt library too recent (v. 2.0.2). Unfortunately I'm not able to retrive an older version in which ParOptProblem::setProblemSizes() takes only 4 arguments.

Are my supposition correct? What can I do to solve this error?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions