Skip to content

Commit

Permalink
add integral alias constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
jClugstor committed Dec 11, 2024
1 parent 990f479 commit 081910e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/problems/integral_problems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,14 @@ end
struct IntegralAliasSpecifier <: AbstractAliasSpecifier
alias_p
alias_f
end

function IntegralAliasSpecifier(alias_p = nothing, alias_f = nothing, alias = nothing)
if alias == true
IntegralAliasSpecifier(true, true)
elseif alias == false
IntegralAliasSpecifier(false, false)
elseif isnothing(alias)
IntegralAliasSpecifier(alias_p, alias_f)
end
end

0 comments on commit 081910e

Please sign in to comment.