Added backward compatibility

This commit is contained in:
Jukka Aho
2017-02-27 08:27:08 +02:00
parent 3fafcf243e
commit 93b520fa2c
4 changed files with 12 additions and 6 deletions
+2 -2
View File
@@ -39,8 +39,8 @@ end
mesh = aster_read_mesh(meshfile)
create_node_set_from_element_set!(mesh, "LOWER_LEFT", "UPPER_BOTTOM")
# nid 1 coords = (0.0, 0.5), nid 13 coords = (0.0, 0.5)
nid = find_nearest_nodes(mesh, [0.0, 0.5]; node_set="LOWER_LEFT")
nid = find_nearest_node(mesh, [0.0, 0.5]; node_set="LOWER_LEFT")
@test first(nid) == 1
nid = find_nearest_nodes(mesh, [0.0, 0.5]; node_set="UPPER_BOTTOM")
nid = find_nearest_node(mesh, [0.0, 0.5]; node_set="UPPER_BOTTOM")
@test first(nid) == 13
end
Binary file not shown.