Skip to content

Commit

Permalink
fix map test for non-openmp builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mattldawson committed Mar 20, 2024
1 parent 7517010 commit e1a8937
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/unit/util/map.F90
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,12 @@ subroutine test_map_t( )

from = (/ 10.0_dk, 20.0_dk, 30.0_dk /)

#ifdef MUSICA_USE_OPENMP
n_threads = omp_get_num_threads( )
#else
n_threads = 1
#endif

allocate( omp_to( n_threads, 3 ) )

map = map_t( config, from_labels, to_labels )
Expand Down

0 comments on commit e1a8937

Please sign in to comment.