Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load current_filename for Unstructured2D and P4est Meshes #1923

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/meshes/mesh_io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ function load_mesh_serial(mesh_file::AbstractString; n_cells_max, RealT)
mesh = UnstructuredMesh2D(mesh_filename; RealT = RealT,
periodicity = periodicity_,
unsaved_changes = false)
mesh.current_filename = mesh_file
elseif mesh_type == "P4estMesh"
p4est_filename, tree_node_coordinates,
nodes, boundary_names_ = h5open(mesh_file, "r") do file
Expand All @@ -317,7 +318,7 @@ function load_mesh_serial(mesh_file::AbstractString; n_cells_max, RealT)
p4est = load_p4est(p4est_file, Val(ndims))

mesh = P4estMesh{ndims}(p4est, tree_node_coordinates,
nodes, boundary_names, "", false, true)
nodes, boundary_names, mesh_file, false, true)
else
error("Unknown mesh type!")
end
Expand Down Expand Up @@ -405,7 +406,7 @@ function load_mesh_parallel(mesh_file::AbstractString; n_cells_max, RealT)
p4est = load_p4est(p4est_file, Val(ndims_))

mesh = P4estMesh{ndims_}(p4est, tree_node_coordinates,
nodes, boundary_names, "", false, true)
nodes, boundary_names, mesh_file, false, true)
else
error("Unknown mesh type!")
end
Expand Down
Loading