Skip to content

Commit

Permalink
Update pinnsampler.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
YichengDWu committed May 14, 2023
1 parent 919e8e3 commit ef4383f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pde/pinnsampler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function sample(pde::ModelingToolkit.PDESystem, sampler::QuasiRandomSampler{fals

pde_dataset = QuasiMonteCarlo.sample(pde_points, pde_bounds[1][1], pde_bounds[1][2],
sampling_alg)
pde_datasets = [copy(pde_dataset) for _ in 1:length(pde_bounds)]
pde_datasets = [pde_dataset for _ in 1:length(pde_bounds)]

boundary_datasets = [QuasiMonteCarlo.sample(points, bound[1], bound[2], sampling_alg)
for (points, bound) in zip(bcs_points, bcs_bounds)]
Expand Down

0 comments on commit ef4383f

Please sign in to comment.