Skip to content

Commit

Permalink
revert broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillZubov committed Sep 22, 2021
1 parent 087c775 commit 7d728dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/pinn/neural_adapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ for i in 1:count_decomp
phi_in(cord) = phis[i-1](cord,reses[i-1].minimizer)
phi_bound(x,y) = phi_in(vcat(x,y))
@register phi_bound(x,y)
Base.Broadcast.broadcasted(::typeof(phi_bound), x,y) = phi_bound(x,y)
bcs_ = create_bcs(domains_[1].domain, phi_bound)
@named pde_system_ = PDESystem(eq, bcs_, domains_, [x, y], [u(x, y)])
push!(pde_system_map,pde_system_)
Expand Down
1 change: 1 addition & 0 deletions test/neural_adapter_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ for i in 1:count_decomp
# phi_bound(x,y) = if (x isa Matrix) phi_in(vcat(x, fill(y,size(x)))) else phi_in(vcat(fill(x,size(y)),y)) end
phi_bound(x,y) = phi_in(vcat(x,y))
@register phi_bound(x,y)
Base.Broadcast.broadcasted(::typeof(phi_bound), x,y) = phi_bound(x,y)
bcs_ = create_bcs(domains_[1].domain, phi_bound)
@named pde_system_ = PDESystem(eq, bcs_, domains_, [x, y], [u(x,y)])
push!(pde_system_map,pde_system_)
Expand Down

0 comments on commit 7d728dd

Please sign in to comment.