mirror of
https://github.com/TREX-CoE/trexio.git
synced 2025-04-25 18:04:44 +02: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
|
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)
|
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'
|
write(*,*) 'SUCCESS READ LABEL'
|
||||||
else
|
else
|
||||||
print *, 'FAILURE LABEL CHECK'
|
print *, 'FAILURE LABEL CHECK'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user