GALGO-2.0 icon indicating copy to clipboard operation
GALGO-2.0 copied to clipboard

Objective function defined within main

Open tomflint22 opened this issue 1 year ago • 1 comments

Hi,

I was wondering if it's possible to define the objective function within the main() function. I've been trying to do this with lambda functions, but I haven't had any luck.

The reason I want to do this is because I'm trying to incorporate GALGO into a larger OpenFoam code, where for a variety of reasons, I can only really access certain things from within my main() function.

I'd really appreciate any help anyone could offer.

All the best,

Tom

tomflint22 avatar Mar 28 '23 15:03 tomflint22