Fix bug in writing two-dimensional problems (#198)

This commit is contained in:
Jukka Aho
2018-05-25 17:54:36 +03:00
committed by GitHub
parent c914017171
commit 417014718d
+1 -1
View File
@@ -457,7 +457,7 @@ function update_xdmf!(xdmf::Xdmf, problem::Problem, time::Float64, fields::Vecto
for nid in field_node_ids
field_dict[nid] = [field_dict[nid]; 0.0]
end
field_dim == 3
field_dim = 3
end
field_type = Dict(1 => "Scalar", 3 => "Vector", 6 => "Tensor6")[field_dim]
info("Xdmf: Saving field $field_name, type = $field_type, dimension = $field_dim, center = $field_center")