Skip to content

Commit b7d89d6

Browse files
committed
see if this helps.
1 parent dd01ba7 commit b7d89d6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/tests/jf_test_19.f90

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ subroutine test_19(error_cnt)
5454
call json%print(p,error_unit)
5555

5656
!get some info:
57-
call json%get(p,'matrix',p_matrix)
57+
call json%get(p,ck_'matrix',p_matrix)
5858
call json%matrix_info(p_matrix,is_matrix,var_type,n_sets,set_size,name)
5959

6060
if (json%failed()) then
@@ -79,7 +79,7 @@ subroutine test_19(error_cnt)
7979
end if
8080

8181
!now test with a variable that is NOT a matrix:
82-
call json%get(p,'matrix(1)',p_matrix)
82+
call json%get(p,ck_'matrix(1)',p_matrix)
8383
call json%matrix_info(p_matrix,is_matrix,var_type,n_sets,set_size,name)
8484
if (json%failed()) then
8585
call json%print_error_message(error_unit)
@@ -88,17 +88,17 @@ subroutine test_19(error_cnt)
8888
if (.not. is_matrix) then
8989
write(error_unit,'(A)') '...success'
9090
else
91-
write(error_unit,'(A)') 'Error: this should not be a matrix:'
91+
write(error_unit,'(A)') 'Error: this should not be a matrix'
9292
error_cnt = error_cnt + 1
9393
end if
9494
end if
9595

9696
! now, test by path:
9797
#if defined __GFORTRAN__
9898
!stupid workaround for gfortran bugs
99-
name = 'Hello!' ! just assign something before calling info routine
99+
name = ck_'Hello!' ! just assign something before calling info routine
100100
#endif
101-
call json%matrix_info(p,'matrix',is_matrix,&
101+
call json%matrix_info(p,ck_'matrix',is_matrix,&
102102
var_type=var_type,n_sets=n_sets,&
103103
set_size=set_size,name=name)
104104

@@ -124,7 +124,7 @@ subroutine test_19(error_cnt)
124124
end if
125125

126126
!also test with "found" input:
127-
call json%matrix_info(p,'matrix',is_matrix,found=found,&
127+
call json%matrix_info(p,ck_'matrix',is_matrix,found=found,&
128128
var_type=var_type,n_sets=n_sets,&
129129
set_size=set_size,name=name)
130130
if (found) then
@@ -142,7 +142,7 @@ subroutine test_19(error_cnt)
142142
end if
143143

144144
!now test with a variable that is NOT a matrix:
145-
call json%matrix_info(p,'matrix(1)',is_matrix,found=found,&
145+
call json%matrix_info(p,ck_'matrix(1)',is_matrix,found=found,&
146146
var_type=var_type,n_sets=n_sets,&
147147
set_size=set_size,name=name)
148148
if (.not. is_matrix) then

0 commit comments

Comments
 (0)