mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-11-03 20:54:07 +01:00
Better Fortran tests for arrays of strings
This commit is contained in:
parent
3cd7cac8f1
commit
3ccbb4e718
@ -349,9 +349,11 @@ subroutine test_read(file_name, back_end)
|
||||
endif
|
||||
|
||||
|
||||
rc = trexio_read_nucleus_label(trex_file, label, 2)
|
||||
rc = trexio_read_nucleus_label(trex_file, label, 4)
|
||||
call trexio_assert(rc, TREXIO_SUCCESS)
|
||||
if (trim(label(2)) == 'Na') then
|
||||
if (trim(label(2)) == 'Na' .and. &
|
||||
trim(label(4)) == 'C 66' .and. &
|
||||
trim(label(5)) == 'C') then
|
||||
write(*,*) 'SUCCESS READ LABEL'
|
||||
else
|
||||
print *, 'FAILURE LABEL CHECK'
|
||||
|
Loading…
Reference in New Issue
Block a user