Skip to content
This repository was archived by the owner on Dec 29, 2023. It is now read-only.

Commit 1a5e605

Browse files
authored
Update to Meshes.jl v0.37 (#23)
1 parent b087c0a commit 1a5e605

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ GeoStatsBase = "0.41"
3232
GeoStatsModels = "0.2"
3333
GeoTables = "1.8"
3434
LinearAlgebra = "1.9"
35-
Meshes = "0.36"
35+
Meshes = "0.37"
3636
Random = "1.9"
3737
Statistics = "1.9"
3838
StatsLearnModels = "0.2"

src/simulation/fft.jl

+3-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function preprocess(problem::SimulationProblem, solver::FFTGS)
6363
# retrieve problem info
6464
pdata = data(problem)
6565
pdomain = domain(problem)
66-
pgrid, _ = unview(pdomain)
66+
pgrid = parent(pdomain)
6767
dims = size(pgrid)
6868
nelms = nelements(pgrid)
6969
center = CartesianIndex(dims 2)
@@ -148,7 +148,8 @@ function solvesingle(problem::SimulationProblem, covars::NamedTuple, solver::FFT
148148

149149
# retrieve problem info
150150
pdomain = domain(problem)
151-
pgrid, inds = unview(pdomain)
151+
pgrid = parent(pdomain)
152+
inds = parentindices(pdomain)
152153
dims = size(pgrid)
153154

154155
varreal = map(collect(covars.names)) do var

0 commit comments

Comments
 (0)