Skip to content

Commit afb1eea

Browse files
committed
add size for LaMEM grid
1 parent fd18329 commit afb1eea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/LaMEM_io.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ using Printf
33
using Glob
44
using Interpolations
55

6+
import Base: show, size
7+
68
# LaMEM I/O
79
#
810
# These are routines that help to create a LaMEM marker files from a ParaviewData structure, which can be used to perform geodynamic simulations
@@ -53,6 +55,7 @@ struct LaMEM_grid <: AbstractGeneralGrid
5355
Yn
5456
Zn
5557
end
58+
size(d::LaMEM_grid) = (d.nmark_x,d.nmark_y,d.nmark_z)
5659

5760
"""
5861
ParaviewData(Grid::LaMEM_grid, fields::NamedTuple)

0 commit comments

Comments
 (0)