Skip to content

Commit

Permalink
Add stubs for constraints to MADNESS backend
Browse files Browse the repository at this point in the history
Constraints will be ignored in the MADNESS backend for now.

Signed-off-by: Joseph Schuchart <[email protected]>
  • Loading branch information
devreal committed Jul 22, 2024
1 parent fbfdf0c commit bebd5d8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ttg/ttg/madness/ttg.h
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,23 @@ namespace ttg_madness {
priomap = std::forward<Priomap>(pm);
}

/// add a constraint
/// the constraint must provide a valid override of `check_key(key)`
template<typename Constraint>
void add_constraint(Constraint&& c) {
/* currently a noop */
}

template<typename Constraint, typename Mapper>
void add_constraint(std::shared_ptr<Constraint> c, Mapper&& map) {
/* currently a noop */
}

template<typename Constraint, typename Mapper>
void add_constraint(Constraint c, Mapper&& map) {
/* currently a noop */
}

/// implementation of TTBase::make_executable()
void make_executable() override {
TTBase::make_executable();
Expand Down

0 comments on commit bebd5d8

Please sign in to comment.