Skip to content

Commit fb4bc92

Browse files
committed
fix issue #17, status_ok=.true. for read_header() and variable_types()
1 parent edc2061 commit fb4bc92

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/csv_module.F90

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ subroutine get_header_csv_str(me,header,status_ok)
614614
do i=1,me%n_cols
615615
header(i) = me%header(i)
616616
end do
617-
status_ok = .false.
617+
status_ok = .true.
618618

619619
else
620620
if (me%verbose) write(error_unit,'(A)') 'Error: no header in class.'
@@ -645,7 +645,7 @@ subroutine get_header_str(me,header,status_ok)
645645
do i=1,me%n_cols
646646
header(i) = me%header(i)%str
647647
end do
648-
status_ok = .false.
648+
status_ok = .true.
649649

650650
else
651651
if (me%verbose) write(error_unit,'(A)') 'Error: no header in class.'
@@ -804,6 +804,7 @@ subroutine variable_types(me,itypes,status_ok)
804804
do i=1,me%n_cols
805805
call infer_variable_type(me%csv_data(1,i)%str,itypes(i))
806806
end do
807+
status_ok = .true.
807808
else
808809
if (me%verbose) write(error_unit,'(A,1X,I5)') 'Error: class has not been initialized'
809810
status_ok = .false.

0 commit comments

Comments
 (0)