Skip to content

Commit d49bc4b

Browse files
author
Roberto Di Remigio
committed
Change stop -1 to stop in Fortran host tests
1 parent f00a650 commit d49bc4b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

tests/Fortran_host/Fortran_host-modules.F90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ subroutine test_surface_functions(grid_size, mep, asc_Ag, asc_B3g, asc_neq_B3g,
166166
do ipoint = 1, grid_size
167167
if (.not. check(ipoint)) then
168168
write(error_unit, *) 'Error in MEP, please file an issue on: https://github.com/PCMSolver/pcmsolver'
169-
stop -1
169+
stop
170170
end if
171171
end do
172172
write(output_unit, *) 'Test on MEP: PASSED'
@@ -175,7 +175,7 @@ subroutine test_surface_functions(grid_size, mep, asc_Ag, asc_B3g, asc_neq_B3g,
175175
do ipoint = 1, grid_size
176176
if (.not. check(ipoint)) then
177177
write(error_unit, *) 'Error in ASC Ag, please file an issue on: https://github.com/PCMSolver/pcmsolver'
178-
stop -1
178+
stop
179179
end if
180180
end do
181181
write(output_unit, *) 'Test on ASC in Ag symmetry: PASSED'
@@ -184,7 +184,7 @@ subroutine test_surface_functions(grid_size, mep, asc_Ag, asc_B3g, asc_neq_B3g,
184184
do ipoint = 1, grid_size
185185
if (.not. check(ipoint)) then
186186
write(error_unit, *) 'Error in ASC B3g, please file an issue on: https://github.com/PCMSolver/pcmsolver'
187-
stop -1
187+
stop
188188
end if
189189
end do
190190
write(output_unit, *) 'Test on ASC in B3g symmetry: PASSED'
@@ -193,7 +193,7 @@ subroutine test_surface_functions(grid_size, mep, asc_Ag, asc_B3g, asc_neq_B3g,
193193
do ipoint = 1, grid_size
194194
if (.not. check(ipoint)) then
195195
write(error_unit, *) 'Error in nonequilibrium ASC B3g, please file an issue on: https://github.com/PCMSolver/pcmsolver'
196-
stop -1
196+
stop
197197
end if
198198
end do
199199
write(output_unit, *) 'Test on nonequilibrium ASC in B3g symmetry: PASSED'
@@ -202,7 +202,7 @@ subroutine test_surface_functions(grid_size, mep, asc_Ag, asc_B3g, asc_neq_B3g,
202202
do ipoint = 1, grid_size
203203
if (.not. check(ipoint)) then
204204
write(error_unit, *) 'Error in finite elements areas, please file an issue on: https://github.com/PCMSolver/pcmsolver'
205-
stop -1
205+
stop
206206
end if
207207
end do
208208
write(output_unit, *) 'Test on finite elements areas: PASSED'

tests/Fortran_host/Fortran_host.F90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ program pcm_fortran_host
2828

2929
if (.not. pcmsolver_is_compatible_library()) then
3030
write(error_unit, *) 'PCMSolver library not compatible!'
31-
stop -1
31+
stop
3232
end if
3333

3434
! Open a file for the output...
@@ -125,21 +125,21 @@ program pcm_fortran_host
125125
! Cavity size
126126
if (grid_size .ne. ref_size) then
127127
write(error_unit, *) 'Error in the cavity size, please file an issue on: https://github.com/PCMSolver/pcmsolver'
128-
stop -1
128+
stop
129129
else
130130
write(output_unit, *) 'Test on cavity size: PASSED'
131131
end if
132132
! Irreducible cavity size
133133
if (irr_grid_size .ne. ref_irr_size) then
134134
write(error_unit, *) 'Error in the irreducible cavity size, please file an issue on: https://github.com/PCMSolver/pcmsolver'
135-
stop -1
135+
stop
136136
else
137137
write(output_unit, *) 'Test on irreducible cavity size: PASSED'
138138
end if
139139
! Polarization energy
140140
if (.not. check_unsigned_error(energy, ref_energy, 1.0e-7_c_double)) then
141141
write(error_unit, *) 'Error in the polarization energy, please file an issue on: https://github.com/PCMSolver/pcmsolver'
142-
stop -1
142+
stop
143143
else
144144
write(output_unit, *) 'Test on polarization energy: PASSED'
145145
end if

0 commit comments

Comments
 (0)