Skip to content

Commit a2b2069

Browse files
try t8code const
1 parent dbbc0dd commit a2b2069

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/meshes/t8code_mesh.jl

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ mutable struct T8codeMesh{NDIMS, RealT <: Real, IsParallel, NDIMSP2, NNODES} <:
1111
const is_parallel::IsParallel
1212

1313
# This specifies the geometry interpolation for each tree.
14-
tree_node_coordinates::Array{RealT, NDIMSP2} # [dimension, i, j, k, tree]
14+
const tree_node_coordinates::Array{RealT, NDIMSP2} # [dimension, i, j, k, tree]
1515

1616
# Stores the quadrature nodes.
17-
nodes::SVector{NNODES, RealT}
17+
const nodes::SVector{NNODES, RealT}
1818

1919
boundary_names::Array{Symbol, 2} # [face direction, tree]
2020
current_filename::String
@@ -35,13 +35,17 @@ mutable struct T8codeMesh{NDIMS, RealT <: Real, IsParallel, NDIMSP2, NNODES} <:
3535
is_parallel = mpi_isparallel() ? True() : False()
3636

3737
mesh = new{NDIMS, RealT, typeof(is_parallel), NDIMS + 2, length(nodes)}(T8code.ForestWrapper(forest),
38-
is_parallel)
39-
40-
mesh.tree_node_coordinates = tree_node_coordinates
41-
mesh.nodes = nodes
42-
mesh.boundary_names = boundary_names
43-
mesh.current_filename = current_filename
44-
mesh.unsaved_changes = true
38+
is_parallel,
39+
tree_node_coordinates,
40+
nodes,
41+
boundary_names,
42+
current_filename,
43+
-1, # ninterfaces
44+
-1, # nmortars
45+
-1, # nboundaries
46+
-1, # nmpiinterfaces
47+
-1, # nmpimortars
48+
true)
4549

4650
finalizer(mesh) do mesh
4751
# In serial mode we can finalize the forest right away. In parallel

0 commit comments

Comments
 (0)