Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
I IPPL-solvers
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OPAL
  • Libraries
  • IPPL-solvers
  • Merge requests
  • !4

Merged
Created Mar 04, 2021 by vinciguerra_a@vinciguerra_aDeveloper

Resolve "Add support for arbitrary operators"

  • Overview 16
  • Commits 3
  • Changes 3

It seems C++ doesn't allow pointers to templated functions since they aren't concrete instances of the function (see this Stackoverflow post). To get around this, we can create a wrapper function.

This MR changes the template arguments for the Solver class to allow the operator to return a type that's different from its argument (so the operator can return expressions like ippl::meta_laplace even if the LHS is a ippl::Field) and defines a macro so end users don't have to write the wrapper themselves (saves 2 lines).

Closes #3 (closed)

Edited Mar 04, 2021 by vinciguerra_a
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: new-signature