single-threaded original exec with tally-opts

This commit is contained in:
Jose Salcedo Perez 2018-01-21 19:46:55 +00:00
parent b9286c0322
commit e8423ceca4
2 changed files with 7 additions and 7 deletions

View file

@ -30,7 +30,7 @@ endif()
# Command line options
#===============================================================================
option(openmp "Enable shared-memory parallelism with OpenMP" ON)
option(openmp "Enable shared-memory parallelism with OpenMP" OFF)
option(profile "Compile with profiling flags" OFF)
option(debug "Compile with debug flags" OFF)
option(optimize "Turn on all compiler optimization flags" OFF)
@ -116,12 +116,12 @@ if(CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
endif()
# GCC compiler options
list(APPEND f90flags -cpp -std=f2008ts -fbacktrace -O2)
list(APPEND f90flags -cpp -std=f2008ts -fbacktrace -O2 -fstack-arrays -g)
if(debug)
list(REMOVE_ITEM f90flags -O2)
list(APPEND f90flags -g -Wall -Wno-unused-dummy-argument -pedantic
list(APPEND f90flags -g -enable-checking -fbacktrace -Wall -Wno-unused-dummy-argument -pedantic
-fbounds-check -ffpe-trap=invalid,overflow,underflow)
list(APPEND ldflags -g)
list(APPEND ldflags -g -v -da -Q)
endif()
if(profile)
list(APPEND f90flags -pg)

View file

@ -498,9 +498,9 @@ contains
! Broadcast tally results so that each process has access to results
if (allocated(tallies)) then
do i = 1, size(tallies)
n = size(tallies(i) % obj % results)
call MPI_BCAST(tallies(i) % obj % results, n, MPI_DOUBLE, 0, &
mpi_intracomm, mpi_err)
!n = size(tallies(i) % obj % results)
!call MPI_BCAST(tallies(i) % obj % results, n, MPI_DOUBLE, 0, &
! mpi_intracomm, mpi_err)
end do
end if