fixed whitespace bug in reading *NODE block

This commit is contained in:
Jukka Aho
2016-11-28 10:09:48 +02:00
parent df65f00c02
commit 4c4130e2f9
5 changed files with 61 additions and 18 deletions
+18
View File
@@ -61,3 +61,21 @@ end
mesh = abaqus_read_mesh(fn)
@test length(mesh.nodes) == 3
end
@testset "parse abaqus .inp created using hypermesh" begin
data = """
**
** ABAQUS Input Deck Generated by HyperMesh Version : 14.0.120.28
** Generated using HyperMesh-Abaqus Template Version : 14.0.120
**
** Template: ABAQUS/STANDARD 3D
**
*NODE , Nset = nset_csys0
1, 2.649428 , -21.93735 , 217.2934
2, 27.54531 , 1.108443 , 228.8077
"""
fn = tempname() * ".inp"
open(fn, "w") do fid write(fid, data) end
mesh = abaqus_read_mesh(fn)
@test length(mesh.nodes) == 2
end