Skip to content

Commit

Permalink
Update src/coarsening/regular.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Júlio Hoffimann <[email protected]>
  • Loading branch information
eliascarv and juliohm authored Nov 6, 2024
1 parent d8a8537 commit 8c81a28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coarsening/regular.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ RegularCoarsening(factors::Vararg{Int,N}) where {N} = RegularCoarsening(factors)

function coarsen(grid::OrthoRegularGrid, method::RegularCoarsening)
factors = fitdims(method.factors, paramdim(grid))
tdims = _targetsize(grid, factors)
RegularGrid(minimum(grid), maximum(grid), dims=tdims)
dims = _targetsize(grid, factors)
RegularGrid(minimum(grid), maximum(grid), dims=dims)
end

function coarsen(grid::RectilinearGrid, method::RegularCoarsening)
Expand Down

0 comments on commit 8c81a28

Please sign in to comment.