Skip to content

Commit acfd98d

Browse files
committed
replace mesh in interpolation test
any small, simple, 2D mesh would work, already available mesh in pcms_testcase repository makes more sense.
1 parent 833b2c4 commit acfd98d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ if(PCMS_ENABLE_Fortran)
503503
add_test(
504504
NAME test_interpolation_fortran_api
505505
COMMAND
506-
$<TARGET_FILE:test_interpolation_fortran_api> ${PCMS_TEST_DATA_DIR}/square10x102D.osh 200 121
506+
$<TARGET_FILE:test_interpolation_fortran_api> ${PCMS_TEST_DATA_DIR}/cyclone/23elements/mesh.osh 23 19
507507
)
508508

509509
if(HOST_NPROC GREATER_EQUAL 4)

test/test_interpolation.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ program test_interpolation
7979
do i = 1, num_vertices
8080
print *, "(", i, ", ", target_at_vertex(i), ")"
8181
! if values are not close to 2.0, then the interpolation is not working; exit with error
82-
if (abs(target_at_vertex(i) - 2.0d0) > 1.0d-6) then
82+
if (abs(target_at_vertex(i) - 2.0d0) > 1.0d-4) then
8383
print *, "Interpolation failed, expected about 2.0, got ", target_at_vertex(i)
8484
stop 1
8585
end if

0 commit comments

Comments
 (0)