Skip to content

Commit

Permalink
Use debug-mode in CI testing (#98)
Browse files Browse the repository at this point in the history
* use debug-mode in CI testing

* balance instead of refining up to a lower level
  • Loading branch information
JoshuaLampert authored Nov 22, 2023
1 parent e1b0cc4 commit 3593290
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .ci_install_p4est.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [ "${JULIA_P4EST_TEST}" = "P4EST_CUSTOM_MPI_CUSTOM" ]; then
export CXX=mpicxx
export FC=mpif90
export F77=mpif77
$P4EST_TMP/p4est-${P4EST_RELEASE}/configure --prefix=$P4EST_TMP/prefix --enable-mpi
$P4EST_TMP/p4est-${P4EST_RELEASE}/configure --prefix=$P4EST_TMP/prefix --enable-mpi --enable-debug
make -j 2
make install
ls -l $P4EST_TMP/prefix/lib/libp4est.so
Expand Down
1 change: 1 addition & 0 deletions test/test_nested_attributes_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ end
refine_fn_c = @cfunction(refine_fn, Cint,
(Ptr{p4est_t}, Ptr{p4est_topidx_t}, Ptr{p4est_quadrant_t}))
p4est_refine(p4est, true, refine_fn_c, C_NULL)
p4est_balance(p4est, P4EST_CONNECT_FACE, C_NULL)

iter_face_c = @cfunction(iter_face, Cvoid,
(Ptr{p4est_iter_face_info_t}, Ptr{Cvoid}))
Expand Down
1 change: 1 addition & 0 deletions test/test_nested_attributes_3d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ end
refine_fn_c = @cfunction(refine_fn, Cint,
(Ptr{p8est_t}, Ptr{p4est_topidx_t}, Ptr{p8est_quadrant_t}))
p8est_refine(p4est, true, refine_fn_c, C_NULL)
p8est_balance(p4est, P8EST_CONNECT_FACE, C_NULL)

iter_face_nested_attributes_c = @cfunction(iter_face, Cvoid,
(Ptr{p8est_iter_face_info_t}, Ptr{Cvoid}))
Expand Down
2 changes: 1 addition & 1 deletion test/tests_basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ end

@testset "local_num_quadrants" begin
connectivity = @test_nowarn p8est_connectivity_new_periodic()
p4est = @test_nowarn p4est_new(MPI.COMM_WORLD, connectivity, 0, C_NULL, C_NULL)
p4est = @test_nowarn p8est_new(MPI.COMM_WORLD, connectivity, 0, C_NULL, C_NULL)
@test_nowarn Int(unsafe_load(p4est).local_num_quadrants)
end

Expand Down

0 comments on commit 3593290

Please sign in to comment.