@@ -24,7 +24,7 @@ program csv_test
24
24
integer ,dimension (:),allocatable :: itypes
25
25
26
26
! read the file:
27
- call f% read (' test.csv' ,header_row= 1 ,status_ok= status_ok)
27
+ call f% read (' ../files/ test.csv' ,header_row= 1 ,status_ok= status_ok)
28
28
29
29
! print the header and type info:
30
30
call f% get_header(header,status_ok)
@@ -44,21 +44,13 @@ program csv_test
44
44
end do
45
45
46
46
write (* ,* ) ' '
47
- write (* ,* ) ' get the position vectors:'
47
+ write (* ,* ) ' get some vectors:'
48
48
49
49
write (* ,* ) ' '
50
- write (* ,* ) ' x :'
51
- call f% get(2 ,x,status_ok)
50
+ write (* ,* ) ' age :'
51
+ call f% get(3 ,x,status_ok)
52
52
write (* ,' (F27.16,1x)' ,advance= ' NO' ) x
53
53
write (* ,* ) ' '
54
- write (* ,* ) ' y:'
55
- call f% get(3 ,y,status_ok)
56
- write (* ,' (F27.16,1x)' ,advance= ' NO' ) y
57
- write (* ,* ) ' '
58
- write (* ,* ) ' z:'
59
- call f% get(4 ,z,status_ok)
60
- write (* ,' (F27.16,1x)' ,advance= ' NO' ) z
61
- write (* ,* ) ' '
62
54
63
55
! now test creating a CSV:
64
56
call f2% open (' test2.csv' ,n_cols= 4 ,status_ok= status_ok)
0 commit comments