We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 26a10e3 + b89844c commit c2d3b93Copy full SHA for c2d3b93
test/src/timestepper_test.f90
@@ -1,5 +1,6 @@
1
PROGRAM timestepper_test
2
3
+USE omp_lib, only : OMP_SET_NUM_THREADS
4
USE timestepper, only : Euler, Rk3Ssp, InitializeTimestepper, FinalizeTimestepper
5
6
IMPLICIT NONE
@@ -12,14 +13,17 @@ PROGRAM timestepper_test
12
13
DOUBLE PRECISION, ALLOCATABLE, DIMENSION(:) :: err_v, dt_v, convrate
14
15
DOUBLE PRECISION :: dt, dx, dy, dz, x, y, z, T0, T1, Tend
-INTEGER :: Nx, Ny, Nz, Nthreads, i, j, k, Nsteps, order_adv, nt, &
16
+INTEGER :: Nx, Ny, Nz, i, j, k, Nsteps, order_adv, nt, &
17
mpi_thread_provided, ierr, method, kk, oodt, order_diff
-
18
+
19
+! Too many threads will slow down this test significantly
20
+INTEGER, PARAMETER :: Nthreads = 2
21
22
INTEGER, DIMENSION(7) :: N_v = (/ 260, 270, 280, 290, 300, 310, 620 /)
23
24
CALL MPI_INIT_THREAD(MPI_THREAD_FUNNELED, mpi_thread_provided, ierr)
25
-Nthreads = 1
26
+CALL OMP_SET_NUM_THREADS(Nthreads)
27
Tend = 0.2
28
29
DO method = 1,3,2
0 commit comments